/* Estancia Providencia — Main Stylesheet */
:root{
  --bg:#fbf7f0; --ink:#1f2617; --muted:#5b6353; --line:#e4dccb;
  --brand:#5a6b3f; --brand-dark:#3d4a2b; --accent:#b8863b; --white:#ffffff;
  --shadow:0 10px 30px rgba(31,38,23,.08); --radius:6px;
  --font-serif:"Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--font-sans);color:var(--ink);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand-dark);text-decoration:none;transition:color .2s}
a:hover{color:var(--accent)}
h1,h2,h3,h4{font-family:var(--font-serif);font-weight:500;letter-spacing:-.01em;color:var(--ink);margin:0 0 .5em}
h1{font-size:clamp(2.2rem,5vw,3.6rem);line-height:1.1}
h2{font-size:clamp(1.7rem,3.5vw,2.4rem);line-height:1.2}
h3{font-size:1.35rem}
p{margin:0 0 1em}
.container{width:min(1200px,92%);margin-inline:auto}
.eyebrow{text-transform:uppercase;letter-spacing:.22em;font-size:.72rem;color:var(--accent);font-weight:600;margin-bottom:.75rem;display:inline-block}

/* Header */
.site-header{position:sticky;top:0;z-index:100;background:rgba(251,247,240,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;padding:1rem 0;gap:2rem}
.logo{display:flex;align-items:center;gap:.6rem;font-family:var(--font-serif);font-size:1.35rem;color:var(--ink);font-weight:600}
.logo-mark{width:34px;height:34px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;font-family:var(--font-serif);font-size:1.1rem}
.nav-links{display:flex;gap:1.8rem;list-style:none;margin:0;padding:0;align-items:center}
.nav-links a{color:var(--ink);font-size:.92rem;font-weight:500}
.nav-links a.active,.nav-links a:hover{color:var(--brand)}
.dropdown{position:relative}
.dropdown-menu{position:absolute;top:100%;left:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);min-width:220px;padding:.5rem 0;box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translateY(6px);transition:.2s}
.dropdown:hover .dropdown-menu,.dropdown:focus-within .dropdown-menu{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown-menu a{display:block;padding:.6rem 1rem;font-size:.88rem}
.dropdown-menu a:hover{background:var(--bg)}
.btn{display:inline-block;padding:.75rem 1.5rem;border-radius:var(--radius);font-weight:600;font-size:.9rem;border:none;cursor:pointer;transition:.2s;letter-spacing:.02em}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-dark);color:#fff}
.btn-outline{background:transparent;color:var(--ink);border:1px solid var(--ink)}
.btn-outline:hover{background:var(--ink);color:#fff}
.nav-toggle{display:none;background:none;border:none;font-size:1.4rem;cursor:pointer;color:var(--ink)}

/* Hero */
.hero{position:relative;min-height:80vh;display:grid;place-items:center;color:#fff;text-align:center;overflow:hidden;padding:6rem 0}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(31,38,23,.55),rgba(31,38,23,.6)),url('images/hero.jpg') center/cover no-repeat;z-index:-1}
.hero h1{color:#fff;max-width:900px;margin-inline:auto}
.hero p{color:rgba(255,255,255,.9);font-size:1.15rem;max-width:640px;margin:0 auto 2rem}
.hero .eyebrow{color:var(--accent)}
.hero-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}
.hero .btn-outline{color:#fff;border-color:#fff}
.hero .btn-outline:hover{background:#fff;color:var(--ink)}

/* Page header (non-home) */
.page-header{background:linear-gradient(rgba(31,38,23,.65),rgba(31,38,23,.65)),url('images/hero.jpg') center/cover;color:#fff;padding:5rem 0 4rem;text-align:center}
.page-header h1{color:#fff}
.page-header p{color:rgba(255,255,255,.9);max-width:640px;margin:0 auto}
.breadcrumbs{font-size:.85rem;margin-top:1rem;color:rgba(255,255,255,.75)}
.breadcrumbs a{color:rgba(255,255,255,.9)}

/* Sections */
section{padding:5rem 0}
.section-head{text-align:center;max-width:720px;margin:0 auto 3rem}
.section-head p{color:var(--muted);font-size:1.05rem}
.grid{display:grid;gap:2rem}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}

.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:.3s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.card img{aspect-ratio:4/3;object-fit:cover;width:100%}
.card-body{padding:1.5rem;flex:1;display:flex;flex-direction:column}
.card-body h3{margin-bottom:.5rem}
.card-body p{color:var(--muted);font-size:.95rem;flex:1}
.card-link{margin-top:1rem;color:var(--brand);font-weight:600;font-size:.9rem}

.feature{padding:2rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.feature-icon{width:52px;height:52px;border-radius:50%;background:var(--bg);color:var(--brand);display:grid;place-items:center;font-size:1.4rem;margin-bottom:1rem;border:1px solid var(--line)}

.split{display:grid;grid-template-columns:1fr 1fr;gap:4rem;align-items:center}
.split img{border-radius:var(--radius);box-shadow:var(--shadow)}
.split.reverse .split-media{order:2}
.alt-bg{background:#fff}
.dark-bg{background:var(--brand-dark);color:#e8ecd8}
.dark-bg h2,.dark-bg h3{color:#fff}
.dark-bg .eyebrow{color:var(--accent)}

.stat{text-align:center}
.stat-num{font-family:var(--font-serif);font-size:3rem;color:var(--brand);line-height:1;margin-bottom:.5rem;display:block}
.stat-label{color:var(--muted);font-size:.9rem;text-transform:uppercase;letter-spacing:.1em}

/* Testimonials */
.quote{background:#fff;padding:2rem;border-radius:var(--radius);border-left:4px solid var(--accent);font-family:var(--font-serif);font-size:1.1rem;color:var(--ink);line-height:1.5}
.quote-author{margin-top:1rem;font-family:var(--font-sans);font-size:.85rem;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}

/* Gallery */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.gallery img{aspect-ratio:1;object-fit:cover;border-radius:var(--radius);cursor:pointer;transition:.3s}
.gallery img:hover{transform:scale(1.02);opacity:.9}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:200;display:none;place-items:center;padding:2rem}
.lightbox.active{display:grid}
.lightbox img{max-width:90vw;max-height:90vh;border-radius:var(--radius)}
.lightbox-close{position:absolute;top:1.5rem;right:2rem;background:none;border:none;color:#fff;font-size:2rem;cursor:pointer}

/* Forms */
form{display:grid;gap:1rem}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
label{display:block;font-size:.85rem;font-weight:600;color:var(--ink);margin-bottom:.35rem}
input,textarea,select{width:100%;padding:.8rem 1rem;border:1px solid var(--line);border-radius:var(--radius);font-family:inherit;font-size:1rem;background:#fff;color:var(--ink);transition:.2s}
input:focus,textarea:focus,select:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(90,107,63,.12)}
textarea{min-height:130px;resize:vertical}
.form-note{font-size:.85rem;color:var(--muted)}
.form-success{padding:1rem;background:#e8f0d8;border-radius:var(--radius);color:var(--brand-dark);display:none}
.form-success.show{display:block}

/* FAQ */
.faq{border:1px solid var(--line);border-radius:var(--radius);background:#fff;overflow:hidden}
.faq-item{border-bottom:1px solid var(--line)}
.faq-item:last-child{border-bottom:none}
.faq-question{width:100%;text-align:left;padding:1.25rem 1.5rem;background:none;border:none;font-size:1.02rem;font-weight:600;color:var(--ink);cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-family:inherit}
.faq-question::after{content:"+";font-size:1.4rem;color:var(--brand);font-weight:400;transition:transform .2s}
.faq-item.open .faq-question::after{transform:rotate(45deg)}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .3s;padding:0 1.5rem;color:var(--muted)}
.faq-item.open .faq-answer{max-height:400px;padding-bottom:1.25rem}

/* CTA */
.cta-band{background:var(--brand-dark);color:#fff;padding:4rem 0;text-align:center}
.cta-band h2{color:#fff}
.cta-band p{color:rgba(255,255,255,.85);max-width:600px;margin:0 auto 2rem}

/* Footer */
.site-footer{background:#1a1f14;color:#c8cdb8;padding:4rem 0 1.5rem;font-size:.9rem}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:2.5rem;margin-bottom:3rem}
.footer-brand{font-family:var(--font-serif);font-size:1.5rem;color:#fff;margin-bottom:1rem}
.site-footer h4{color:#fff;font-family:var(--font-sans);font-size:.85rem;text-transform:uppercase;letter-spacing:.15em;margin-bottom:1.25rem}
.site-footer ul{list-style:none;padding:0;margin:0;display:grid;gap:.6rem}
.site-footer a{color:#c8cdb8}
.site-footer a:hover{color:var(--accent)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:1.5rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;color:#8a8f7a}
.social{display:flex;gap:.75rem;margin-top:.5rem}
.social a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.06);display:grid;place-items:center;color:#c8cdb8}
.social a:hover{background:var(--brand);color:#fff}

/* Prose (legal pages) */
.prose{max-width:780px;margin:0 auto}
.prose h2{margin-top:2.5rem}
.prose h3{margin-top:1.5rem;font-size:1.15rem}
.prose ul,.prose ol{padding-left:1.25rem;margin:0 0 1em;color:var(--muted)}
.prose li{margin-bottom:.35rem}
.prose p{color:var(--muted)}

/* Error pages */
.error-page{min-height:70vh;display:grid;place-items:center;text-align:center;padding:4rem 1rem}
.error-code{font-family:var(--font-serif);font-size:clamp(6rem,15vw,10rem);line-height:1;color:var(--brand);margin:0}
