/*
Theme Name: MAK Kotwal Realty
Theme URI: https://makkotwalrealty.com
Author: MAK Kotwal Realty
Description: A dark-luxe WordPress theme for MAK Kotwal Realty, South Mumbai's luxury real estate wealth advisory. Art Deco inspired, Bootstrap 5.3, mobile-first.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: makkotwal
Tags: real-estate, luxury, dark, bootstrap, custom-post-type
*/

/* ============================================================
   1. DESIGN TOKENS
   Palette drawn from South Mumbai's Art Deco vernacular:
   warm ink (weathered basalt), aged brass, unbleached ivory.
   ============================================================ */

:root {
  /* Surface */
  --mk-ink:        #12100E;
  --mk-ink-2:      #1A1613;
  --mk-surface:    #221D19;
  --mk-surface-2:  #2C2621;

  /* Brass accent — aged, not bright. Deliberately desaturated. */
  --mk-brass:      #C6A15B;
  --mk-brass-soft: #E0C68F;
  --mk-brass-deep: #8C6E36;

  /* Type */
  --mk-ivory:      #EDE6D8;
  --mk-body:       #C4BBAE;
  --mk-muted:      #8F857A;

  /* Lines */
  --mk-line:       rgba(198, 161, 91, 0.26);
  --mk-line-soft:  rgba(237, 230, 216, 0.10);

  /* Type scale — 1.25 minor third, fluid */
  --mk-fs-xs:   0.75rem;
  --mk-fs-sm:   0.875rem;
  --mk-fs-base: 1rem;
  --mk-fs-md:   clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --mk-fs-lg:   clamp(1.35rem, 1.15rem + 0.9vw, 1.95rem);
  --mk-fs-xl:   clamp(1.85rem, 1.4rem + 2vw, 3rem);
  --mk-fs-2xl:  clamp(2.4rem, 1.6rem + 3.6vw, 4.75rem);

  /* Rhythm */
  --mk-section:   clamp(4.5rem, 3rem + 6vw, 9rem);
  --mk-gutter:    clamp(1.25rem, 0.8rem + 2vw, 3rem);

  /* Motion */
  --mk-ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --mk-dur:       0.7s;

  /* Fonts */
  --mk-display:   "Marcellus", "Times New Roman", serif;
  --mk-sans:      "Jost", "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--mk-ink);
  color: var(--mk-body);
  font-family: var(--mk-sans);
  font-size: var(--mk-fs-md);
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   3. TYPOGRAPHY
   Marcellus carries the brand voice; Jost carries the reading.
   ============================================================ */

h1, h2, h3, h4, h5, h6,
.mk-display {
  font-family: var(--mk-display);
  font-weight: 400;
  color: var(--mk-ivory);
  line-height: 1.16;
  letter-spacing: 0.005em;
  margin: 0 0 1rem;
}

h1, .mk-h1 { font-size: var(--mk-fs-2xl); line-height: 1.06; }
h2, .mk-h2 { font-size: var(--mk-fs-xl); }
h3, .mk-h3 { font-size: var(--mk-fs-lg); }
h4, .mk-h4 { font-size: var(--mk-fs-md); }

p { margin: 0 0 1.35rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--mk-brass);
  text-decoration: none;
  transition: color 0.3s var(--mk-ease);
}
a:hover, a:focus { color: var(--mk-brass-soft); }

strong { font-weight: 500; color: var(--mk-ivory); }

blockquote {
  font-family: var(--mk-display);
  font-size: var(--mk-fs-lg);
  color: var(--mk-ivory);
  line-height: 1.45;
  border-left: 1px solid var(--mk-brass);
  margin: 2.5rem 0;
  padding-left: var(--mk-gutter);
}

/* Eyebrow — used above every section heading. Encodes the section's
   role in the page, set in the utility voice. */
.mk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mk-sans);
  font-size: var(--mk-fs-xs);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--mk-brass);
  margin-bottom: 1.25rem;
}
.mk-eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--mk-brass);
  opacity: 0.7;
}

.mk-lede {
  font-size: var(--mk-fs-md);
  color: var(--mk-body);
  max-width: 58ch;
}

.mk-fine {
  font-size: var(--mk-fs-sm);
  letter-spacing: 0.06em;
  color: var(--mk-muted);
}

/* ============================================================
   4. LAYOUT
   ============================================================ */

.mk-section { padding-block: var(--mk-section); position: relative; }
.mk-section--tight { padding-block: calc(var(--mk-section) * 0.6); }
.mk-section--ink { background: var(--mk-ink); }
.mk-section--raised { background: var(--mk-ink-2); }
.mk-section--surface { background: var(--mk-surface); }

.container, .container-lg, .container-xl {
  padding-inline: var(--mk-gutter);
}

@media (min-width: 1400px) {
  .container, .container-xl { max-width: 1240px; }
}

/* ============================================================
   5. SIGNATURE MOTIF — the stepped Deco rule
   A three-tier stepped hairline, echoing the setbacks on the
   Marine Drive facades. Used as the divider between movements.
   ============================================================ */

.mk-step-rule {
  display: block;
  width: 100%;
  max-width: 210px;
  height: 14px;
  margin: 0 0 2rem;
}
.mk-step-rule--center { margin-inline: auto; }
.mk-step-rule path { stroke: var(--mk-brass); stroke-width: 1; fill: none; }

/* ============================================================
   6. BUTTONS
   ============================================================ */

.mk-btn {
  --btn-fg: var(--mk-ink);
  --btn-bg: var(--mk-brass);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2.1rem;
  font-family: var(--mk-sans);
  font-size: var(--mk-fs-sm);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.35s var(--mk-ease), color 0.35s var(--mk-ease),
              border-color 0.35s var(--mk-ease);
}
.mk-btn:hover, .mk-btn:focus-visible {
  --btn-bg: var(--mk-brass-soft);
  color: var(--mk-ink);
}

.mk-btn--ghost {
  --btn-fg: var(--mk-ivory);
  --btn-bg: transparent;
  border-color: var(--mk-line);
}
.mk-btn--ghost:hover, .mk-btn--ghost:focus-visible {
  --btn-bg: transparent;
  color: var(--mk-brass);
  border-color: var(--mk-brass);
}

.mk-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--mk-fs-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mk-link-arrow i { transition: transform 0.35s var(--mk-ease); }
.mk-link-arrow:hover i { transform: translateX(5px); }

/* ============================================================
   7. FORMS
   ============================================================ */

.mk-field { margin-bottom: 1.5rem; }

.mk-label {
  display: block;
  font-size: var(--mk-fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mk-muted);
  margin-bottom: 0.6rem;
}

.mk-input,
.mk-select,
.mk-textarea,
input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="search"], textarea, select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: var(--mk-sans);
  font-size: var(--mk-fs-base);
  font-weight: 300;
  color: var(--mk-ivory);
  background: transparent;
  border: 1px solid var(--mk-line-soft);
  border-radius: 0;
  transition: border-color 0.3s var(--mk-ease);
}
.mk-input:focus, .mk-textarea:focus, .mk-select:focus,
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--mk-brass);
}
.mk-textarea { min-height: 140px; resize: vertical; }

select option { background: var(--mk-surface); color: var(--mk-ivory); }

::placeholder { color: var(--mk-muted); opacity: 1; }

/* ============================================================
   8. ACCESSIBILITY FLOOR
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--mk-brass);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.mk-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1.5rem;
  background: var(--mk-brass);
  color: var(--mk-ink);
  transition: top 0.2s var(--mk-ease);
}
.mk-skip-link:focus { top: 1rem; color: var(--mk-ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   9. WORDPRESS CORE CLASSES
   ============================================================ */

.alignleft  { float: left;  margin: 0.5rem 2rem 1.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 1.5rem 2rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption {
  font-size: var(--mk-fs-sm);
  color: var(--mk-muted);
  margin-top: 0.75rem;
}
.sticky, .gallery-caption, .bypostauthor { display: block; }
