/*
 * ════════════════════════════════════════════════════════
 *  EMAJ Investments — Stylesheet
 *  style.css
 * ════════════════════════════════════════════════════════
 *
 *  QUICK REFERENCE — sections in this file:
 *
 *  1. DESIGN TOKENS  (:root variables)
 *     → Change colours, fonts, max-width here first
 *
 *  2. RESET & BASE
 *  3. NAV
 *  4. HERO
 *  5. SHARED SECTION STYLES
 *  6. SERVICES GRID
 *  7. ABOUT
 *  8. TESTIMONIALS
 *  9. CONTACT & FORM
 * 10. FOOTER
 * 11. MOBILE (max-width: 768px)
 * 12. ANIMATIONS
 *
 * ════════════════════════════════════════════════════════
 *
 *  COMMON TWEAKS:
 *
 *  Change accent colour    →  --red (line ~15)
 *  Change body font        →  --sans (line ~20)
 *  Change heading font     →  --serif (line ~19)
 *  Change max page width   →  --max (line ~21)
 *  Adjust section padding  →  .section-inner padding (section 5)
 *  Adjust hero text size   →  .hero h1 font-size (section 4)
 *  Adjust button radius    →  border-radius on .btn-primary (section 4)
 *
 * ════════════════════════════════════════════════════════
 */

/* ── 1. DESIGN TOKENS ────────────────────────────────── */
/*    Edit these variables to restyle the whole site      */

:root {
    /* Accent colour — used for buttons, eyebrows, dots, borders */
      --red: #c0392b;
      /* Light tint of accent — used for hover backgrounds */
      --red-light: #f9eceb;
      /* Main text colour */
      --dark: #1c1c1c;
      /* Body / secondary text */
      --mid: #555;
      /* Captions, labels, placeholders */
      --muted: #999;
      /* Lines and card borders */
      --border: #e5e5e5;
      /* Page background */
      --bg: #fff;
      /* Subtle off-white used in hero aside and soft sections */
      --bg-soft: #fafafa;
      /* Heading font — DM Serif Display loaded from Google Fonts */
      --serif: 'DM Serif Display', Georgia, serif;
      /* Body font — DM Sans loaded from Google Fonts */
      --sans: 'DM Sans', system-ui, sans-serif;
      /* Maximum content width */
      --max: 1040px;
    }

/* ── 2. RESET & BASE ─────────────────────────────────── */

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

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--sans);
      font-size: 15px;
      line-height: 1.7;
      color: var(--dark);
      background: var(--bg);
      -webkit-font-smoothing: antialiased;
    }

    a { color: inherit; text-decoration: none; }

/* ── 3. NAV ──────────────────────────────────────────── */
    /* ── NAV ── */

    /* Mobile dropdown — always hidden on desktop, only shown via .open on mobile */
    .nav-mobile-menu {
      display: none;
      position: absolute;
      top: 60px;
      left: 0;
      right: 0;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      padding: 20px;
      flex-direction: column;
      gap: 16px;
      z-index: 99;
      box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }

    nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255,255,255,0.96);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--border);
      padding: 0 32px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-logo {
      font-family: var(--serif);
      font-size: 22px;
      letter-spacing: 0.3px;
      color: var(--dark);
      display: flex;
      align-items: baseline;
      gap: 6px;
    }
    .nav-logo strong {
      font-weight: 700;
      font-size: 24px;
      color: var(--dark);
    }
    .nav-logo span { color: var(--red); font-size: 18px; font-weight: 400; }

    .nav-links {
      display: flex;
      gap: 28px;
      list-style: none;
    }
    .nav-links a {
      font-size: 13px;
      color: var(--mid);
      font-weight: 400;
      transition: color 0.15s;
    }
    .nav-links a:hover { color: var(--dark); }

    .nav-tenant-link {
      font-size: 12px !important;
      font-weight: 500 !important;
      color: var(--muted) !important;
      border: 1px solid var(--border);
      padding: 5px 12px !important;
      border-radius: 3px;
      transition: border-color 0.15s, color 0.15s !important;
      white-space: nowrap;
    }
    .nav-tenant-link:hover {
      color: var(--dark) !important;
      border-color: #aaa !important;
    }

    .nav-cta {
      background: var(--red);
      color: #fff;
      font-family: var(--sans);
      font-size: 13px;
      font-weight: 500;
      padding: 8px 18px;
      border: none;
      border-radius: 3px;
      cursor: pointer;
      transition: opacity 0.15s;
    }
    .nav-cta:hover { opacity: 0.88; }

    .nav-hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 4px;
    }
    .nav-hamburger span {
      display: block;
      width: 22px;
      height: 1.5px;
      background: var(--dark);
      transition: all 0.2s;
    }

/* ── 4. HERO ─────────────────────────────────────────── */
    /* ── HERO ── */
    .hero {
      padding: 90px 32px 80px;
      max-width: var(--max);
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr 380px;
      gap: 60px;
      align-items: center;
      border-bottom: 1px solid var(--border);
    }

    .hero-eyebrow {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--red);
      margin-bottom: 20px;
    }

    .hero h1 {
      font-family: var(--serif);
      font-size: 48px;
      font-weight: 400;
      line-height: 1.1;
      margin-bottom: 20px;
      color: var(--dark);
    }

    .hero-sub {
      font-size: 16px;
      color: var(--mid);
      line-height: 1.75;
      margin-bottom: 32px;
      max-width: 440px;
    }

    .hero-btns {
      display: flex;
      gap: 12px;
      margin-bottom: 28px;
      flex-wrap: wrap;
    }

    .btn-primary {
      background: var(--red);
      color: #fff;
      font-family: var(--sans);
      font-size: 14px;
      font-weight: 500;
      padding: 13px 26px;
      border: none;
      border-radius: 3px;
      cursor: pointer;
      transition: opacity 0.15s;
      display: inline-block;
    }
    .btn-primary:hover { opacity: 0.88; }

    .btn-ghost {
      background: transparent;
      color: var(--mid);
      font-family: var(--sans);
      font-size: 14px;
      font-weight: 400;
      padding: 13px 26px;
      border: 1px solid var(--border);
      border-radius: 3px;
      cursor: pointer;
      transition: border-color 0.15s, color 0.15s;
      display: inline-block;
    }
    .btn-ghost:hover { border-color: #aaa; color: var(--dark); }

    .hero-note {
      font-size: 12px;
      color: var(--muted);
      font-style: italic;
    }

    .hero-aside {
      background: var(--bg-soft);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 32px;
    }

    .hero-aside-title {
      font-family: var(--serif);
      font-size: 18px;
      margin-bottom: 20px;
      color: var(--dark);
    }

    .check-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .check-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 13px;
      color: var(--mid);
      line-height: 1.5;
    }
    .check-dot {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--red);
      flex-shrink: 0;
      margin-top: 1px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .check-dot svg { display: block; }

/* ── 5. SHARED SECTION STYLES ────────────────────────── */
    /* ── SECTIONS SHARED ── */
    section {
      border-bottom: 1px solid var(--border);
    }
    .section-inner {
      max-width: var(--max);
      margin: 0 auto;
      padding: 80px 32px;
    }

    .eyebrow {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--red);
      margin-bottom: 14px;
    }

    .section-heading {
      font-family: var(--serif);
      font-size: 32px;
      font-weight: 400;
      line-height: 1.2;
      margin-bottom: 12px;
    }

    .section-sub {
      font-size: 15px;
      color: var(--mid);
      line-height: 1.75;
      max-width: 520px;
      margin-bottom: 48px;
    }

/* ── 6. SERVICES GRID ────────────────────────────────── */
    /* ── SERVICES ── */
    .services-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      border-top: 1px solid var(--border);
      border-left: 1px solid var(--border);
    }

    .svc {
      padding: 28px 28px 28px 0;
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 28px;
    }

    .svc-num {
      font-size: 11px;
      color: var(--red);
      font-weight: 500;
      letter-spacing: 1px;
      margin-bottom: 10px;
    }

    .svc h3 {
      font-size: 15px;
      font-weight: 500;
      margin-bottom: 6px;
      color: var(--dark);
    }

    .svc p {
      font-size: 13px;
      color: var(--mid);
      line-height: 1.65;
    }

/* ── 7. ABOUT ────────────────────────────────────────── */
    /* ── ABOUT ── */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
    }

    .about-body p {
      font-size: 15px;
      color: var(--mid);
      line-height: 1.8;
      margin-bottom: 16px;
    }
    .about-body p:last-child { margin-bottom: 0; }

    .about-pullquote {
      border-left: 2px solid var(--red);
      padding-left: 24px;
      margin-top: 8px;
    }

    .pullquote-text {
      font-family: var(--serif);
      font-size: 20px;
      font-style: italic;
      line-height: 1.5;
      color: var(--dark);
      margin-bottom: 12px;
    }

    .pullquote-sig {
      font-size: 12px;
      color: var(--muted);
    }

/* ── 8. TESTIMONIALS ─────────────────────────────────── */
    /* ── TESTIMONIALS ── */
    .testi-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .testi {
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 28px;
    }

    .testi-mark {
      font-family: var(--serif);
      font-size: 36px;
      color: var(--red);
      line-height: 1;
      margin-bottom: 10px;
    }

    .testi-body {
      font-size: 13px;
      color: var(--mid);
      line-height: 1.7;
      font-style: italic;
      margin-bottom: 20px;
    }

    .testi-author {
      font-size: 13px;
      font-weight: 500;
      color: var(--dark);
    }

    .testi-role {
      font-size: 11px;
      color: var(--muted);
      margin-top: 2px;
    }

/* ── 9. CONTACT & FORM ───────────────────────────────── */
    /* ── CONTACT ── */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
    }

    .contact-intro h2 {
      font-family: var(--serif);
      font-size: 32px;
      font-weight: 400;
      line-height: 1.2;
      margin-bottom: 14px;
    }

    .contact-intro p {
      font-size: 15px;
      color: var(--mid);
      line-height: 1.75;
      margin-bottom: 32px;
    }

    .contact-details {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .contact-details li {
      display: flex;
      gap: 12px;
      align-items: flex-start;
    }

    .cd-dot {
      width: 6px;
      height: 6px;
      background: var(--red);
      border-radius: 50%;
      flex-shrink: 0;
      margin-top: 8px;
    }

    .cd-label {
      font-size: 11px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 1px;
    }

    .cd-val {
      font-size: 14px;
      font-weight: 500;
      color: var(--dark);
    }

    /* ── FORM ── */
    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .form-row {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .form-row label {
      font-size: 11px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      font-weight: 500;
    }

    .form-row input,
    .form-row select,
    .form-row textarea {
      font-family: var(--sans);
      font-size: 14px;
      color: var(--dark);
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 3px;
      padding: 10px 14px;
      width: 100%;
      transition: border-color 0.15s;
      outline: none;
      appearance: none;
    }

    .form-row input:focus,
    .form-row select:focus,
    .form-row textarea:focus {
      border-color: var(--red);
    }

    .form-row textarea {
      height: 100px;
      resize: vertical;
    }

    .form-submit {
      background: var(--red);
      color: #fff;
      font-family: var(--sans);
      font-size: 14px;
      font-weight: 500;
      padding: 13px;
      border: none;
      border-radius: 3px;
      cursor: pointer;
      transition: opacity 0.15s;
      width: 100%;
    }
    .form-submit:hover { opacity: 0.88; }

    .form-success {
      display: none;
      background: #edf7f0;
      border: 1px solid #b2dfbe;
      color: #2e7d3e;
      border-radius: 3px;
      padding: 14px 18px;
      font-size: 14px;
    }

    .form-error {
      display: none;
      background: var(--red-light);
      border: 1px solid #f5c0bb;
      color: var(--red);
      border-radius: 3px;
      padding: 14px 18px;
      font-size: 14px;
    }

/* ── 10. FOOTER ──────────────────────────────────────── */
    /* ── FOOTER ── */
    footer {
      padding: 28px 32px;
      max-width: var(--max);
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .footer-logo {
      font-family: var(--serif);
      font-size: 16px;
      color: var(--dark);
      display: flex;
      align-items: baseline;
      gap: 5px;
    }
    .footer-logo strong { font-weight: 700; font-size: 18px; color: var(--dark); }
    .footer-logo span { color: var(--red); font-size: 14px; font-weight: 400; }

    .footer-copy {
      font-size: 12px;
      color: var(--muted);
    }

/* ── 11. MOBILE (max-width: 768px) ───────────────────── */
    /* ── MOBILE ── */
    @media (max-width: 768px) {
      nav { padding: 0 20px; }
      .nav-links, .nav-cta { display: none; }
      .nav-hamburger { display: flex; }

      .nav-mobile-menu.open { display: flex; }
      .nav-mobile-menu a {
        font-size: 15px;
        color: var(--mid);
        padding: 6px 0;
        border-bottom: 1px solid var(--border);
      }
      .nav-mobile-menu a.nav-tenant-link {
        font-size: 13px !important;
        color: var(--muted) !important;
        border-bottom: 1px solid var(--border);
        border-left: none;
        border-right: none;
        border-top: none;
        border-radius: 0;
        padding: 6px 0 !important;
      }
      .nav-mobile-menu .nav-cta {
        display: block;
        text-align: center;
        margin-top: 4px;
      }

      .hero {
        grid-template-columns: 1fr;
        padding: 52px 20px 48px;
        gap: 36px;
      }
      .hero h1 { font-size: 34px; }
      .hero-aside { display: none; }

      .section-inner { padding: 52px 20px; }
      .section-heading { font-size: 26px; }

      .services-grid { grid-template-columns: 1fr; }

      .about-grid,
      .contact-grid,
      .testi-grid { grid-template-columns: 1fr; gap: 36px; }

      footer { flex-direction: column; gap: 8px; text-align: center; padding: 24px 20px; }
    }

/* ── IMAGE STYLES ────────────────────────────────────── */

    .hero-img {
      width: 100%;
      height: 220px;
      object-fit: cover;
      border-radius: 6px;
      margin-bottom: 24px;
      display: block;
    }

    .about-right {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .about-img {
      width: 100%;
      height: 260px;
      object-fit: cover;
      border-radius: 6px;
      display: block;
    }

    .testi-author-row {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .testi-avatar {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
      border: 2px solid var(--border);
    }

/* ── 12. ANIMATIONS ──────────────────────────────────── */
    /* ── ANIMATIONS ── */
    .fade-in {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }
    .fade-in.visible {
      opacity: 1;
      transform: none;
    }