/* ==========================================
       DESIGN SYSTEM
       ========================================== */
    :root {
      --bg-primary: #001B3A;
      --bg-secondary: #00213F;
      --bg-elevated: #002A4D;
      --bg-light: #F4F6F8;
      --bg-cream: #E8ECF0;

      --text-light: #F4F6F8;
      --text-secondary: #8DA4BE;
      --text-muted: #5A7A96;
      --text-dark: #001B3A;

      --accent: #C9A84C;
      --accent-hover: #DBBF64;
      --border-dark: #0D3460;
      --border-light: #C8D3DE;

      --font-display: 'Cormorant Garamond', Georgia, serif;
      --font-body: 'Outfit', 'Helvetica Neue', Arial, sans-serif;

      --text-hero: clamp(2.8rem, 5.5vw, 5rem);
      --text-h1: clamp(2.2rem, 4vw, 3.5rem);
      --text-h2: clamp(1.75rem, 3vw, 2.5rem);
      --text-h3: clamp(1.2rem, 2vw, 1.5rem);
      --text-body: 1.0625rem;
      --text-sm: 0.875rem;

      --nav-height: 100px;
      --max-width: 1280px;
      --max-narrow: 800px;

      --ease: cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* ==========================================
       RESET & BASE
       ========================================== */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    html {
      scroll-behavior: smooth;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    body {
      font-family: var(--font-body);
      font-size: var(--text-body);
      font-weight: 300;
      line-height: 1.7;
      color: var(--text-light);
      background: var(--bg-primary);
    }

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

    a {
      color: inherit;
      text-decoration: none;
      transition: color 0.3s var(--ease);
    }

    h1, h2, h3, h4 {
      font-family: var(--font-display);
      font-weight: 600;
      line-height: 1.15;
      letter-spacing: -0.01em;
    }

    .container {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 clamp(1.5rem, 4vw, 3rem);
    }

    /* ==========================================
       NAVIGATION
       ========================================== */
    .nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: var(--nav-height);
      z-index: 100;
      transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
    }

    .nav--scrolled {
      background: rgba(0, 27, 58, 0.92);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border-dark);
    }

    .nav__inner {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 clamp(1.5rem, 4vw, 3rem);
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav__logo img {
      height: 80px;
      width: auto;
      opacity: 1;
    }

    .nav__links {
      display: flex;
      align-items: center;
      gap: 2.5rem;
    }

    .nav__link {
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 400;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-secondary);
      transition: color 0.3s;
    }

    .nav__link:hover { color: var(--text-light); }

    .nav__link--cta {
      color: var(--accent);
      border: 1px solid var(--accent);
      padding: 0.5rem 1.25rem;
      transition: all 0.3s;
    }

    .nav__link--cta:hover {
      background: var(--accent);
      color: var(--bg-primary);
    }

    .nav__phone {
      font-size: var(--text-sm);
      font-weight: 400;
      letter-spacing: 0.05em;
      color: var(--text-secondary);
    }

    .nav__phone:hover { color: var(--accent); }

    .nav__toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
    }

    .nav__toggle span {
      display: block;
      width: 24px;
      height: 1.5px;
      background: var(--text-light);
      margin: 5px 0;
      transition: all 0.3s;
    }

    /* ==========================================
       HERO
       ========================================== */
    .hero {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: flex-end;
      padding-bottom: clamp(4rem, 8vh, 8rem);
      overflow: hidden;
    }

    .hero__bg {
      position: absolute;
      inset: 0;
      z-index: 0;
    }

    .hero__bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero__bg::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to top,
        rgba(0, 27, 58, 0.85) 0%,
        rgba(0, 27, 58, 0.4) 40%,
        rgba(0, 27, 58, 0.15) 100%
      );
    }

    .hero__content {
      position: relative;
      z-index: 1;
      max-width: 820px;
    }

    .hero__eyebrow {
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 400;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1.5rem;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 0.8s var(--ease) 0.3s forwards;
    }

    .hero h1 {
      font-size: var(--text-hero);
      font-weight: 600;
      line-height: 1.08;
      color: var(--text-light);
      margin-bottom: 1.5rem;
      opacity: 0;
      transform: translateY(30px);
      animation: fadeUp 0.8s var(--ease) 0.5s forwards;
    }

    .hero__sub {
      font-size: clamp(1rem, 1.5vw, 1.2rem);
      font-weight: 300;
      color: var(--text-secondary);
      line-height: 1.7;
      max-width: 580px;
      margin-bottom: 2.5rem;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 0.8s var(--ease) 0.7s forwards;
    }

    .hero__cta {
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 0.8s var(--ease) 0.9s forwards;
    }

    @keyframes fadeUp {
      to { opacity: 1; transform: translateY(0); }
    }

    /* ==========================================
       BUTTONS
       ========================================== */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 1rem 2.25rem;
      border: 1px solid var(--accent);
      color: var(--accent);
      background: transparent;
      cursor: pointer;
      transition: all 0.4s var(--ease);
    }

    .btn:hover {
      background: var(--accent);
      color: var(--bg-primary);
    }

    .btn--filled {
      background: var(--accent);
      color: var(--bg-primary);
    }

    .btn--filled:hover {
      background: var(--accent-hover);
      border-color: var(--accent-hover);
    }

    .btn__arrow {
      transition: transform 0.3s var(--ease);
    }

    .btn:hover .btn__arrow {
      transform: translateX(4px);
    }

    /* ==========================================
       SECTIONS
       ========================================== */
    .section {
      padding: clamp(5rem, 10vh, 8rem) 0;
    }

    .section--light {
      background: var(--bg-light);
      color: var(--text-dark);
    }

    .section--dark {
      background: var(--bg-secondary);
    }

    .section__eyebrow {
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 400;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1rem;
    }

    .section h2 {
      font-size: var(--text-h2);
      margin-bottom: 1.5rem;
    }

    .section--light h2 { color: var(--text-dark); }

    .section__intro {
      font-size: clamp(1rem, 1.3vw, 1.125rem);
      color: var(--text-secondary);
      max-width: 600px;
      margin-bottom: 3rem;
    }

    .section--light .section__intro { color: var(--text-muted); }

    /* ==========================================
       BRAND STATEMENT
       ========================================== */
    .brand {
      text-align: center;
      padding: clamp(5rem, 10vh, 8rem) 0;
    }

    .brand__statement {
      font-family: var(--font-display);
      font-size: clamp(1.4rem, 2.5vw, 2rem);
      font-weight: 300;
      font-style: italic;
      line-height: 1.5;
      color: var(--text-light);
      max-width: 780px;
      margin: 0 auto 4rem;
    }

    .brand__divider {
      width: 60px;
      height: 1px;
      background: var(--accent);
      margin: 0 auto 4rem;
    }

    /* ==========================================
       VALUE PILLARS
       ========================================== */
    .pillars {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 3rem;
    }

    .pillar {
      text-align: center;
      padding: 2rem 1rem;
    }

    .pillar__number {
      font-family: var(--font-display);
      font-size: 3rem;
      font-weight: 300;
      color: var(--accent);
      line-height: 1;
      margin-bottom: 1.5rem;
      opacity: 0.5;
    }

    .pillar h3 {
      font-size: var(--text-h3);
      margin-bottom: 1rem;
    }

    .pillar p {
      font-size: var(--text-sm);
      color: var(--text-secondary);
      line-height: 1.8;
    }

    /* ==========================================
       FEATURED PROJECTS
       ========================================== */
    .projects__grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }

    .project-card {
      position: relative;
      overflow: hidden;
      aspect-ratio: 4/3;
      cursor: pointer;
    }

    .project-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.8s var(--ease);
    }

    .project-card:hover img {
      transform: scale(1.04);
    }

    .project-card__overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,27,58,0.8) 0%, transparent 50%);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 2rem;
      transition: background 0.4s;
    }

    .project-card:hover .project-card__overlay {
      background: linear-gradient(to top, rgba(0,27,58,0.9) 0%, rgba(0,27,58,0.2) 60%);
    }

    .project-card__name {
      font-family: var(--font-display);
      font-size: 1.5rem;
      margin-bottom: 0.25rem;
    }

    .project-card__details {
      font-size: var(--text-sm);
      color: var(--text-secondary);
      letter-spacing: 0.05em;
    }

    /* ==========================================
       PROCESS PREVIEW
       ========================================== */
    .process-steps {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      margin-bottom: 3rem;
    }

    .step {
      position: relative;
      padding: 2rem 1.5rem;
      border: 1px solid var(--border-dark);
      transition: border-color 0.3s;
    }

    .step:hover { border-color: var(--accent); }

    .step__num {
      font-family: var(--font-display);
      font-size: 2.5rem;
      font-weight: 300;
      color: var(--accent);
      opacity: 0.6;
      margin-bottom: 1rem;
    }

    .step h3 {
      font-size: 1.2rem;
      margin-bottom: 0.75rem;
    }

    .step p {
      font-size: var(--text-sm);
      color: var(--text-secondary);
      line-height: 1.7;
    }

    /* ==========================================
       COMMUNITIES
       ========================================== */
    .communities__grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .community-card {
      position: relative;
      overflow: hidden;
      aspect-ratio: 3/4;
    }

    .community-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s var(--ease);
    }

    .community-card:hover img {
      transform: scale(1.05);
    }

    .community-card__content {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,27,58,0.98) 0%, rgba(0,27,58,0.85) 45%, rgba(0,27,58,0.3) 75%, transparent 100%);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 2rem;
    }

    .community-card h3 {
      font-size: 1.75rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      color: #FFFFFF;
      text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    }

    .community-card p {
      font-size: var(--text-sm);
      color: var(--text-light);
      margin-bottom: 1rem;
      text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    }

    .community-card__link {
      font-size: var(--text-sm);
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      transition: color 0.3s;
    }

    .community-card__link:hover { color: var(--accent-hover); }

    /* ==========================================
       CTA SECTION
       ========================================== */
    .cta-section {
      background: var(--bg-elevated);
      text-align: center;
      padding: clamp(5rem, 10vh, 8rem) 0;
      border-top: 1px solid var(--border-dark);
      border-bottom: 1px solid var(--border-dark);
    }

    .cta-section__badge {
      display: inline-block;
      font-size: var(--text-sm);
      font-weight: 500;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--accent);
      border: 1px solid var(--accent);
      padding: 0.4rem 1.25rem;
      margin-bottom: 2rem;
    }

    .cta-section h2 {
      font-size: var(--text-h2);
      margin-bottom: 1rem;
    }

    .cta-section p {
      color: var(--text-secondary);
      max-width: 500px;
      margin: 0 auto 2.5rem;
    }

    .cta-section__actions {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.5rem;
      flex-wrap: wrap;
    }

    .cta-section__phone {
      font-size: var(--text-sm);
      color: var(--text-secondary);
      letter-spacing: 0.05em;
    }

    .cta-section__phone a { color: var(--text-light); }
    .cta-section__phone a:hover { color: var(--accent); }

    /* ==========================================
       FOOTER
       ========================================== */
    .footer {
      padding: 4rem 0 2rem;
      border-top: 1px solid var(--border-dark);
    }

    .footer__inner {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 clamp(1.5rem, 4vw, 3rem);
    }

    .footer__top {
      display: grid;
      grid-template-columns: 1.5fr repeat(3, 1fr);
      gap: 3rem;
      margin-bottom: 4rem;
    }

    .footer__brand p {
      font-size: var(--text-sm);
      color: var(--text-muted);
      margin-top: 1rem;
      max-width: 280px;
      line-height: 1.7;
    }

    .footer__col h4 {
      font-family: var(--font-body);
      font-size: var(--text-sm);
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-light);
      margin-bottom: 1.25rem;
    }

    .footer__col a,
    .footer__col p {
      display: block;
      font-size: var(--text-sm);
      color: var(--text-muted);
      margin-bottom: 0.6rem;
      transition: color 0.3s;
    }

    .footer__col a:hover { color: var(--accent); }

    .footer__bottom {
      border-top: 1px solid var(--border-dark);
      padding-top: 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .footer__bottom p {
      font-size: var(--text-sm);
      color: var(--text-muted);
    }

    /* ==========================================
       MOBILE
       ========================================== */
    @media (max-width: 900px) {
      .nav__links { display: none; }
      .nav__toggle { display: block; }

      .nav__links--open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: var(--bg-primary);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 200;
      }

      .pillars,
      .process-steps { grid-template-columns: 1fr; }

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

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

      .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
      }

      .footer__bottom { flex-direction: column; gap: 0.5rem; }
    }

    @media (max-width: 600px) {
      .footer__top { grid-template-columns: 1fr; }
    }

    /* ==========================================
       PAGE HEADERS (inner pages)
       ========================================== */
    .page-header {
      padding: calc(var(--nav-height) + 4rem) 0 4rem;
      background: var(--bg-primary);
      border-bottom: 1px solid var(--border-dark);
    }
    .page-header h1 {
      font-size: var(--text-h1);
      margin-bottom: 1rem;
    }
    .page-header p {
      font-size: clamp(1rem, 1.3vw, 1.125rem);
      color: var(--text-secondary);
      max-width: 600px;
    }

    /* ==========================================
       CONTACT FORM
       ========================================== */
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-bottom: 2rem;
    }
    .form-grid .full-width { grid-column: 1 / -1; }
    .form-field label {
      display: block;
      font-size: var(--text-sm);
      font-weight: 400;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-secondary);
      margin-bottom: 0.5rem;
    }
    .form-field input,
    .form-field textarea,
    .form-field select {
      width: 100%;
      padding: 0.9rem 1rem;
      background: var(--bg-elevated);
      border: 1px solid var(--border-dark);
      color: var(--text-light);
      font-family: var(--font-body);
      font-size: var(--text-body);
      font-weight: 300;
      transition: border-color 0.3s;
    }
    .form-field input:focus,
    .form-field textarea:focus,
    .form-field select:focus {
      outline: none;
      border-color: var(--accent);
    }
    .form-field textarea { resize: vertical; min-height: 140px; }
    .form-field select option { background: var(--bg-primary); }

    .contact-info {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      padding: 3rem 0;
      border-top: 1px solid var(--border-dark);
      margin-top: 3rem;
    }
    .contact-info__item h3 {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
    }
    .contact-info__item p,
    .contact-info__item a {
      font-size: var(--text-sm);
      color: var(--text-secondary);
    }
    .contact-info__item a:hover { color: var(--accent); }

    /* ==========================================
       PROCESS DETAIL
       ========================================== */
    .process-detail {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 2rem 3rem;
      margin-bottom: 3rem;
      padding-bottom: 3rem;
      border-bottom: 1px solid var(--border-dark);
    }
    .process-detail:last-child { border-bottom: none; }
    .process-detail__num {
      font-family: var(--font-display);
      font-size: 4rem;
      font-weight: 500;
      color: var(--accent);
      opacity: 0.5;
      line-height: 1;
    }
    .process-detail h3 {
      font-size: var(--text-h3);
      margin-bottom: 0.75rem;
    }
    .process-detail p {
      color: var(--text-secondary);
      margin-bottom: 0.75rem;
      line-height: 1.8;
    }

    /* ==========================================
       ABOUT
       ========================================== */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: start;
    }
    .about-grid h2 {
      font-size: var(--text-h2);
      margin-bottom: 1.5rem;
    }
    .about-grid p {
      color: var(--text-secondary);
      margin-bottom: 1.25rem;
      line-height: 1.8;
    }
    .values-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
      margin-top: 3rem;
    }
    .value-card {
      padding: 2rem;
      border: 1px solid var(--border-dark);
      transition: border-color 0.3s;
    }
    .value-card:hover { border-color: var(--accent); }
    .value-card h3 {
      font-size: 1.1rem;
      margin-bottom: 0.75rem;
    }
    .value-card p {
      font-size: var(--text-sm);
      color: var(--text-secondary);
      line-height: 1.7;
    }

    /* ==========================================
       JOURNAL
       ========================================== */
    .journal-empty {
      text-align: center;
      padding: 6rem 0;
    }
    .journal-empty h2 {
      font-size: var(--text-h2);
      margin-bottom: 1rem;
    }
    .journal-empty p {
      color: var(--text-secondary);
      max-width: 500px;
      margin: 0 auto;
    }

    /* ==========================================
       COMMUNITY DETAIL
       ========================================== */
    .community-hero {
      position: relative;
      height: 60vh;
      min-height: 400px;
      overflow: hidden;
      display: flex;
      align-items: flex-end;
    }
    .community-hero img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .community-hero::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,27,58,0.85) 0%, rgba(0,27,58,0.3) 50%, transparent 100%);
    }
    .community-hero__content {
      position: relative;
      z-index: 1;
      padding-bottom: 3rem;
    }
    .community-hero h1 {
      font-size: var(--text-h1);
      margin-bottom: 0.75rem;
    }

    .community-details {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
    }
    .community-detail-card {
      padding: 2rem;
      border: 1px solid var(--border-dark);
    }
    .community-detail-card h3 {
      font-size: 1.1rem;
      margin-bottom: 0.75rem;
      color: var(--accent);
    }
    .community-detail-card p {
      font-size: var(--text-sm);
      color: var(--text-secondary);
      line-height: 1.7;
    }

    /* ==========================================
       PORTFOLIO
       ========================================== */
    .portfolio-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3rem;
    }
    .portfolio-item {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 3rem;
      align-items: center;
    }
    .portfolio-item:nth-child(even) { direction: rtl; }
    .portfolio-item:nth-child(even) > * { direction: ltr; }
    .portfolio-item img {
      width: 100%;
      aspect-ratio: 16/10;
      object-fit: cover;
    }
    .portfolio-item h3 {
      font-size: var(--text-h3);
      margin-bottom: 0.75rem;
    }
    .portfolio-item p {
      color: var(--text-secondary);
      line-height: 1.8;
      margin-bottom: 0.5rem;
    }
    .portfolio-item__tag {
      display: inline-block;
      font-size: var(--text-sm);
      color: var(--accent);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 1rem;
    }

    /* ==========================================
       ADDITIONAL MOBILE
       ========================================== */
    @media (max-width: 900px) {
      .form-grid { grid-template-columns: 1fr; }
      .contact-info { grid-template-columns: 1fr; }
      .process-detail { grid-template-columns: 1fr; }
      .about-grid { grid-template-columns: 1fr; }
      .values-grid { grid-template-columns: 1fr; }
      .community-details { grid-template-columns: 1fr; }
      .portfolio-item { grid-template-columns: 1fr; }
      .portfolio-item:nth-child(even) { direction: ltr; }
    }
