:root{
    /* Identidade Áurea Sky — azul-céu profundo + dourado (áurea) */
    --background: oklch(0.98 0.007 85);
    --foreground: oklch(0.22 0.03 250);
    --card: oklch(1 0 0);
    --card-foreground: oklch(0.22 0.03 250);
    --popover: oklch(1 0 0);
    --popover-foreground: oklch(0.22 0.03 250);
    --primary: oklch(0.3 0.09 250);
    --primary-foreground: oklch(0.97 0.02 85);
    --secondary: oklch(0.95 0.012 90);
    --secondary-foreground: oklch(0.3 0.09 250);
    --muted-bg: oklch(0.95 0.012 90);
    --muted-foreground: oklch(0.46 0.03 245);
    --accent: oklch(0.72 0.13 70);
    --accent-foreground: oklch(0.18 0.04 250);
    --gold-token: oklch(0.75 0.13 72);
    --gold-foreground: oklch(0.18 0.04 250);
    --destructive: oklch(0.55 0.22 27);
    --destructive-foreground: oklch(0.98 0 0);
    --border: oklch(0.9 0.012 90);
    --input: oklch(0.9 0.012 90);
    --ring: oklch(0.72 0.13 70);
    --gradient-hero: linear-gradient(135deg, oklch(0.19 0.06 250 / 0.85), oklch(0.32 0.1 240 / 0.55));
    --gradient-gold: linear-gradient(135deg, oklch(0.79 0.14 76), oklch(0.64 0.13 56));
    --shadow-elegant: 0 20px 60px -20px oklch(0.25 0.08 250 / 0.35);
    --shadow-gold: 0 10px 40px -10px oklch(0.72 0.13 65 / 0.4);
    --radius: 0.5rem;

    /* aliases usados no layout */
    --deep: var(--primary);
    --deep-2: oklch(0.4 0.1 245);
    --gold: var(--accent);
    --gold-2: oklch(0.86 0.1 80);
    --btn: var(--gold-token);
    --btn-hover: oklch(0.68 0.13 62);
    --bg: var(--background);
    --ink: var(--foreground);
    --muted: var(--muted-foreground);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family: 'EB Garamond', Georgia, serif;
    background: var(--bg);
    color: var(--ink);
  }
  h1,h2,h3,h4{ font-family: 'Cinzel Decorative', 'Cinzel', Georgia, serif; }
  .sans{font-family: 'EB Garamond', Georgia, serif;}

  /* TOPO SOBRE O HERO (estilo Vista Plaza) */
  .hero-topbar{
    position:absolute;
    top:0; left:0; right:0;
    z-index: 10;
    padding: 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
  }
  .hero-brand{
    font-family:'Cinzel Decorative', 'Cinzel', Georgia, serif;
    font-size: 26px;
    color:#fff;
    letter-spacing: .04em;
  }
  .hero-brand span{ color: var(--gold-token); font-weight:600; }
  .hero-ghost{
    display:inline-flex;
    align-items:center;
    font-family:'EB Garamond', Georgia, serif;
    font-size: 14px;
    color: rgba(255,255,255,.9);
    background: transparent;
    border: 1px solid rgba(255,255,255,.3);
    padding: 8px 16px;
    border-radius: 999px;
    cursor:pointer;
    white-space:nowrap;
    transition: background .2s ease;
  }
  .hero-ghost:hover{ background: rgba(255,255,255,.1); }
  @media (max-width: 640px){
    .hero-ghost{ display:none; }
  }


  /* HERO */
  .hero{
    position:relative;
    min-height: 58vh;
    display:flex;
    align-items:center;
    color:white;
    overflow:hidden;
  }
  .hero-bg{
    position:absolute; inset:0;
    background-image: url('images/hero_vista_plaza.jpg');
    background-size: cover;
    background-position: center 60%;
  }
  .hero-video{
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit: cover;
    object-position: center 60%;
  }
  .hero-overlay{
    position:absolute; inset:0;
    background: var(--gradient-hero);
  }
  /* GALERIA */
  .card-gallery{
    display:none;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 14px;
  }
  .card-gallery.open{ display:grid; }
  .card-gallery .thumb{
    position:relative;
    padding-top: 70%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    cursor: zoom-in;
    border: 1px solid var(--border);
  }
  .card-gallery .thumb.plan{ background-size: contain; background-repeat:no-repeat; background-color:#fff; }
  .card-gallery .thumb span{
    position:absolute; bottom:4px; left:4px;
    font-family:'EB Garamond', Georgia, serif; font-size:9.5px; font-weight:700;
    background: var(--primary); color: var(--primary-foreground);
    padding: 2px 6px; border-radius: 999px; letter-spacing:.3px;
  }
  .btn-toggle{
    background: transparent;
    color: var(--deep);
    border: 1.5px solid var(--deep);
  }
  .btn-toggle:hover{ background: oklch(0.95 0.012 90); }
  .lightbox{
    display:none; position:fixed; inset:0; z-index:300;
    background: oklch(0.18 0.03 150 / 0.9);
    align-items:center; justify-content:center; padding:20px;
  }
  .lightbox.open{ display:flex; }
  .lightbox img{ max-width:100%; max-height:90vh; border-radius:12px; box-shadow: var(--shadow-elegant); }
  .lightbox .lb-close{
    position:absolute; top:18px; right:22px; background:none; border:none;
    color:#fff; font-size:30px; cursor:pointer; font-family:'EB Garamond', Georgia, serif;
  }
  .hero-content{
    position:relative;
    z-index:2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 110px 24px 64px;
  }
  .eyebrow{
    font-family: 'EB Garamond', Georgia, serif;
    color: var(--gold-2);
    letter-spacing: 3px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .hero h2{
    font-size: 40px;
    line-height: 1.15;
    max-width: 620px;
    margin-bottom: 16px;
  }
  .hero p{
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    max-width: 520px;
    color: #f4ede0;
    line-height:1.6;
    margin-bottom: 20px;
  }
  .hero-tags{
    display:flex;
    flex-wrap:wrap;
    gap: 10px;
    margin-bottom: 26px;
  }
  .hero-tag{
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12.5px;
    font-weight:700;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(232,180,230,.55);
    color: var(--gold-2);
    padding: 7px 14px;
    border-radius: 999px;
  }
  .hero-btn{
    display:inline-block;
    background: var(--btn);
    color: var(--deep);
    font-family: 'EB Garamond', Georgia, serif;
    font-weight:700;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration:none;
    font-size: 15px;
    border:none;
    cursor:pointer;
    transition: background .2s ease, transform .15s ease;
  }
  .hero-btn:hover{ background: var(--btn-hover); transform: translateY(-2px); }

  /* MCMV EXPLAINER */
  .explainer{
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 20px 10px;
  }
  .explainer h2{
    font-size: 26px;
    color: var(--deep);
    margin-bottom: 8px;
  }
  .explainer > p.sans{
    color: var(--muted);
    font-size: 14.5px;
    max-width: 720px;
    line-height:1.6;
    margin-bottom: 28px;
  }
  .explainer-grid{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
  }
  .explainer-card{
    background:white;
    border-radius: 14px;
    padding: 20px 20px 22px;
    box-shadow: 0 4px 14px rgba(20,40,70,.07);
  }
  .explainer-card .ic{
    width: 38px; height:38px;
    background: var(--deep);
    color: var(--gold-2);
    border-radius: 10px;
    display:flex; align-items:center; justify-content:center;
    font-family: 'EB Garamond', Georgia, serif;
    font-weight:700;
    margin-bottom: 12px;
    font-size: 15px;
  }
  .explainer-card h3{
    font-size: 16px;
    color: var(--deep);
    margin-bottom: 6px;
  }
  .explainer-card p{
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    color: #585045;
    line-height: 1.55;
  }

  /* TABS */
  .tabs-wrap{
    max-width:1180px;
    margin: 40px auto 0;
    position:relative;
    z-index: 5;
    padding: 0 20px;
  }
  .tabs{
    background:white;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(20,40,70,.12);
    display:flex;
    padding: 6px;
    gap:6px;
  }
  .tab-btn{
    flex:1;
    font-family: 'EB Garamond', Georgia, serif;
    font-weight:700;
    font-size: 14px;
    padding: 14px 10px;
    border:none;
    background: transparent;
    color: var(--deep);
    border-radius: 10px;
    cursor:pointer;
    letter-spacing:.3px;
    transition: all .2s ease;
  }
  .tab-btn.active{
    background: var(--btn);
    color: var(--deep);
  }

  /* GRID */
  .section{
    max-width:1180px;
    margin: 0 auto;
    padding: 30px 20px 80px;
  }
  .region-panel{ display:none; }
  .region-panel.active{ display:block; }
  .grid{
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 26px;
    margin-top: 30px;
  }
  .card{
    background:white;
    border-radius: 16px;
    overflow:hidden;
    box-shadow: 0 6px 20px rgba(20,40,70,.08);
    display:flex;
    flex-direction:column;
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .card:hover{
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(20,40,70,.16);
  }
  .card-img{
    height: 200px;
    background-size: cover;
    background-position:center;
    position:relative;
  }
  .card-img.placeholder{
    background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 60%, var(--gold-token) 100%);
    display:flex; align-items:center; justify-content:center;
  }
  .card-img.placeholder .ph-label{
    font-family: 'EB Garamond', Georgia, serif;
    color: var(--gold-2);
    font-size: 12px;
    letter-spacing:1.5px;
    text-transform:uppercase;
    border: 1px solid rgba(232,180,230,.5);
    padding: 8px 14px;
    border-radius: 999px;
  }
  .badge{
    position:absolute;
    top:12px; left:12px;
    background: var(--primary);
    color: var(--gold-2);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing:.5px;
  }
  .card-body{
    padding: 18px 20px 20px;
    display:flex;
    flex-direction:column;
    flex:1;
  }
  .card-body h3{
    font-size: 19px;
    color: var(--deep);
    margin-bottom: 4px;
  }
  .card-loc{
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .card-desc{
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13.5px;
    color: #565045;
    line-height:1.55;
    margin-bottom: 14px;
    flex:1;
  }
  .card-price{
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .card-price strong{
    color: var(--deep);
    font-size: 15.5px;
    font-family: 'EB Garamond', Georgia, serif;
  }
  .card-actions{
    display:flex;
    gap: 8px;
    margin-top: 14px;
  }
  .btn-sm{
    flex:1;
    text-align:center;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12.5px;
    font-weight:700;
    padding: 10px 8px;
    border-radius: 8px;
    text-decoration:none;
    letter-spacing:.2px;
    border:none;
    cursor:pointer;
  }
  .btn-primary{ background: var(--btn); color: var(--deep); transition: background .2s ease, transform .15s ease; }
  .btn-primary:hover{ background: var(--btn-hover); transform: translateY(-1px); }

  .section-title{
    font-size: 26px;
    color: var(--deep);
    margin-bottom: 4px;
  }
  .section-sub{
    font-family: 'EB Garamond', Georgia, serif;
    color: var(--muted);
    font-size: 14px;
  }

  footer{
    background: oklch(0.18 0.05 250);
    color: rgba(255,255,255,.7);
    padding: 56px 24px;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
  }
  .footer-grid{
    max-width: 900px;
    margin: 0 auto;
    display:grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    text-align:left;
  }
  .footer-col > * + *{ margin-top: 8px; }
  .footer-col .f-title{
    font-family:'Cinzel Decorative', 'Cinzel', Georgia, serif;
    font-size: 26px;
    color:#fff;
    line-height:1.2;
  }
  .footer-col .f-title .gold{ color: var(--gold-token); }
  .footer-col p{ font-size: 13.5px; line-height:1.6; }
  .footer-col a{ color: inherit; text-decoration:none; transition: color .2s ease; }
  .footer-col a:hover{ color: var(--gold-token); }
  .footer-bottom{
    max-width: 900px;
    margin: 40px auto 0;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align:center;
  }
  .footer-nav{
    display:flex; flex-wrap:wrap; justify-content:center;
    gap: 8px 24px;
    font-size: 13.5px;
    margin-bottom: 16px;
  }
  .footer-nav a{
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
    background:none; border:none; cursor:pointer;
    font-family:'EB Garamond', Georgia, serif; font-size: 13.5px;
    transition: color .2s ease;
  }
  .footer-nav a:hover{ color: var(--gold-token); }
  .footer-nav .f-soon{
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 4px;
    opacity: .55;
    cursor: default;
  }

  .footer-legal{
    font-size: 11.5px;
    opacity:.7;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
  }
  @media (max-width: 640px){
    .footer-grid{ text-align:center; }
  }
  footer .gold{ color: var(--gold-token); font-weight:700; }


  /* MODAL */
  .modal-overlay{
    display:none;
    position:fixed; inset:0;
    background: oklch(0.2 0.04 150 / 0.55);
    z-index: 200;
    align-items:center;
    justify-content:center;
    padding: 20px;
  }
  .modal-overlay.open{ display:flex; }
  .modal-box{
    background:white;
    border-radius: 18px;
    max-width: 420px;
    width:100%;
    padding: 28px 26px 26px;
    position:relative;
  }
  .modal-close{
    position:absolute;
    top:14px; right:16px;
    background:none; border:none;
    font-size: 20px;
    color: var(--muted);
    cursor:pointer;
    font-family: 'EB Garamond', Georgia, serif;
  }
  .modal-box h3{
    font-size: 20px;
    color: var(--deep);
    margin-bottom: 4px;
  }
  .modal-sub{
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
  }
  .modal-sub strong{ color: var(--deep); }
  .field{ margin-bottom: 12px; }
  .field label{
    display:block;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 12px;
    font-weight:700;
    color: var(--deep);
    margin-bottom: 5px;
  }
  .field input{
    width:100%;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    padding: 11px 12px;
    border: 1.5px solid #e6ddc8;
    border-radius: 8px;
    outline:none;
  }
  .field input:focus{ border-color: var(--deep); }
  .modal-submit{
    width:100%;
    margin-top: 10px;
    background: var(--btn);
    color: var(--deep);
    font-family: 'EB Garamond', Georgia, serif;
    font-weight:700;
    font-size: 14.5px;
    padding: 13px;
    border:none;
    border-radius: 10px;
    cursor:pointer;
    transition: background .2s ease, transform .15s ease;
  }
  .modal-submit:hover{ background: var(--btn-hover); transform: translateY(-1px); }
  .modal-status{
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    text-align:center;
    margin-top: 12px;
    display:none;
  }
  .modal-status.show{ display:block; }
  .modal-status.ok{ color: var(--deep); font-weight:700; }
  .modal-status.err{ color: #b23b3b; }

  @media (max-width: 640px){
    .hero h2{ font-size: 28px; }
    .tabs{ flex-direction: column; }
  }