/* ═══════════════════════════════════════════
   NAYARA MAYRINK REALTOR — main.css
   Warm elegant: cream / terracotta / gold
═══════════════════════════════════════════ */

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

:root {
  --cream:       #f7f2eb;
  --cream2:      #efe8dc;
  --cream3:      #e8ddd0;
  --terra:       #b05e3a;
  --terra2:      #c97a55;
  --terra-dim:   rgba(176,94,58,0.1);
  --gold:        #c9a84c;
  --gold2:       #e4c97a;
  --dark:        #2a1f17;
  --mid:         #6b4f3a;
  --muted:       #9e8472;
  --white:       #fffdf9;
  --border:      rgba(176,94,58,0.18);
  --border2:     rgba(201,168,76,0.2);
  --grad-gold:   linear-gradient(135deg, #c9a84c 0%, #e4c97a 50%, #c9a84c 100%);
}

html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; background: var(--cream); color: var(--dark); overflow-x: hidden; }

/* ── LANG BAR ── */
.lang-bar { background: var(--dark); padding: 0.4rem 5%; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.lang-btn { background: none; border: none; cursor: pointer; font-family: 'Jost', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(247,242,235,0.45); transition: color 0.2s; }
.lang-btn.active { color: var(--gold); }
.lang-btn:hover  { color: var(--gold2); }
.lang-divider    { color: rgba(247,242,235,0.2); font-size: 0.7rem; }

/* ── NAV ── */
nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 5%; background: rgba(247,242,235,0.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
nav.scrolled { box-shadow: 0 4px 24px rgba(42,31,23,0.08); }
.nav-logo { text-decoration: none; }
.nav-logo-img { height: 40px; width: auto; display: block; }
.nav-logo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; letter-spacing: 0.04em; color: var(--dark); display: block; line-height: 1; }
.nav-logo-title { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); display: block; margin-top: 0.15rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--mid); text-decoration: none; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--terra); }
.nav-cta { background: var(--terra); color: var(--white); padding: 0.6rem 1.5rem; border-radius: 2px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background 0.2s, box-shadow 0.2s; box-shadow: 0 2px 12px rgba(176,94,58,0.25); }
.nav-cta:hover { background: var(--terra2); box-shadow: 0 4px 20px rgba(176,94,58,0.35); }
.nav-burger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--dark); }
.nav-mobile { display: none; flex-direction: column; position: fixed; top: 100px; left: 0; right: 0; z-index: 99; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem 5%; }
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--mid); text-decoration: none; padding: 0.85rem 0; font-size: 1rem; font-weight: 500; border-bottom: 1px solid rgba(176,94,58,0.08); transition: color 0.2s; }
.nav-mobile a:hover { color: var(--terra); }
.nav-mobile .mobile-cta { margin-top: 0.75rem; background: var(--terra); color: var(--white); border-radius: 2px; text-align: center; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.85rem; border: none; }

/* ── HERO ── */
#hero { min-height: 92vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); position: relative; overflow: hidden; }
#hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b05e3a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-left { display: flex; flex-direction: column; justify-content: center; padding: 6rem 5% 6rem 8%; position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--terra); margin-bottom: 1.5rem; animation: fadeUp 0.7s ease both; }
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--terra); }
h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(3rem, 5.5vw, 5.2rem); font-weight: 300; line-height: 1.08; letter-spacing: 0.01em; color: var(--dark); animation: fadeUp 0.7s 0.08s ease both; }
h1 em { font-style: italic; color: var(--terra); font-weight: 400; }
.hero-sub { margin-top: 1.4rem; color: var(--mid); font-size: 1rem; line-height: 1.8; max-width: 420px; animation: fadeUp 0.7s 0.16s ease both; }
.hero-divider { width: 48px; height: 2px; background: var(--grad-gold); margin: 2rem 0; animation: fadeUp 0.7s 0.22s ease both; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.7s 0.28s ease both; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--terra); color: var(--white); padding: 0.9rem 2rem; border-radius: 2px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background 0.2s, box-shadow 0.2s, transform 0.15s; box-shadow: 0 4px 20px rgba(176,94,58,0.28); }
.btn-primary:hover { background: var(--terra2); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(176,94,58,0.38); }
.btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--terra); color: var(--terra); padding: 0.9rem 2rem; border-radius: 2px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background 0.2s; }
.btn-outline:hover { background: var(--terra-dim); }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; animation: fadeUp 0.7s 0.34s ease both; }
.stat { position: relative; }
.stat:not(:last-child)::after { content: ''; position: absolute; right: -1.25rem; top: 10%; width: 1px; height: 80%; background: var(--border); }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 500; line-height: 1; color: var(--terra); letter-spacing: -0.01em; }
.stat-gold { color: var(--gold) !important; }
.stat-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }
.hero-right { position: relative; background: var(--cream2); }
.hero-right::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--grad-gold); z-index: 1; }
.hero-photo-inner { width: 100%; height: 100%; overflow: hidden; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; min-height: 100%; }
.hero-photo-placeholder { width: 100%; height: 100%; min-height: 600px; background: linear-gradient(160deg, var(--cream2) 0%, var(--cream3) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; color: var(--muted); }
.hero-photo-placeholder .ph-icon { font-size: 4rem; opacity: 0.4; }
.hero-photo-placeholder .ph-text { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.5; }
.hero-card { position: absolute; bottom: 2.5rem; left: 1.5rem; z-index: 2; background: var(--white); border-radius: 3px; padding: 1.1rem 1.5rem; box-shadow: 0 16px 48px rgba(42,31,23,0.15); border-left: 3px solid var(--gold); min-width: 200px; }
.hero-card-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.hero-card-val   { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 500; color: var(--dark); margin-top: 0.15rem; }
.hero-card-sub   { font-size: 0.7rem; color: var(--muted); margin-top: 0.1rem; }

/* ── RIBBON ── */
.ribbon { background: var(--dark); padding: 0.85rem 0; overflow: hidden; white-space: nowrap; }
.ribbon-track { display: inline-flex; gap: 4rem; animation: scrollL 28s linear infinite; }
.ribbon-item { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,242,235,0.45); display: flex; align-items: center; gap: 1rem; }
.ribbon-item .dot { color: var(--gold); font-size: 0.5rem; }
@keyframes scrollL { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── SHARED ── */
.section-tag { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terra); margin-bottom: 1rem; }
.section-tag::before { content: ''; width: 24px; height: 1px; background: var(--terra); }
h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 300; line-height: 1.15; letter-spacing: 0.01em; color: var(--dark); }
h2 em { font-style: italic; color: var(--terra); }
.section-sub { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin-top: 0.75rem; }
.gold-rule { width: 40px; height: 2px; background: var(--grad-gold); margin: 1.5rem 0; }

/* ── ABOUT ── */
#about { padding: 7rem 8%; background: var(--white); display: grid; grid-template-columns: 1fr 1.2fr; gap: 6rem; align-items: center; }
.about-visual { position: relative; }
.about-photo-frame { position: relative; border-radius: 2px; overflow: visible; box-shadow: 0 20px 60px rgba(42,31,23,0.12); }
.about-photo-frame::before { content: ''; position: absolute; top: -16px; left: -16px; right: 16px; bottom: 16px; border: 1px solid var(--border2); border-radius: 2px; z-index: 0; pointer-events: none; }
.about-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center; display: block; position: relative; z-index: 1; border-radius: 2px; }
.about-img-placeholder { width: 100%; aspect-ratio: 3/4; background: linear-gradient(160deg, var(--cream2), var(--cream3)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; position: relative; z-index: 1; border-radius: 2px; }
.about-img-placeholder span:first-child { font-size: 3rem; opacity: 0.4; }
.about-stamp { position: absolute; bottom: -20px; right: -20px; z-index: 3; background: var(--terra); color: var(--white); width: 100px; height: 100px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 8px 24px rgba(176,94,58,0.35); }
.stamp-num { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 500; line-height: 1; }
.stamp-label { font-size: 0.55rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.about-text { padding-bottom: 1rem; }
.about-bio { color: var(--mid); line-height: 1.9; font-size: 0.97rem; margin-top: 1rem; }
.about-credentials { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.cred { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 1rem; border-radius: 2px; background: var(--cream); border: 1px solid var(--border); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--mid); }
.cred .icon { color: var(--terra); }
.about-contact { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.about-contact a { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--terra); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.about-contact a:hover { color: var(--terra2); }

/* ── SERVICES ── */
#services { padding: 7rem 8%; background: var(--cream); }
.services-head { text-align: center; max-width: 560px; margin: 0 auto 4rem; }
.services-head .section-tag { justify-content: center; }
.services-head .section-tag::before { display: none; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.service-card { background: var(--white); border-radius: 3px; padding: 2.5rem 2rem; border: 1px solid var(--border); position: relative; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(42,31,23,0.1); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-gold); opacity: 0; transition: opacity 0.25s; }
.service-card:hover::before { opacity: 1; }
.service-icon { font-size: 2rem; margin-bottom: 1.2rem; display: block; }
.service-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; color: var(--dark); margin-bottom: 0.2rem; }
.service-card h3 em { font-style: italic; font-size: 0.95em; color: var(--terra); }
.service-tagline { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: block; }
.service-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.75; }
.service-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.5rem; color: var(--terra); text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: gap 0.2s; }
.service-link:hover { gap: 0.7rem; }

/* ── AREAS ── */
#areas { padding: 7rem 8%; background: var(--dark); position: relative; overflow: hidden; }
#areas::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.04; background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f7f2eb' fill-opacity='1' fill-rule='evenodd'%3E%3Ccircle cx='8' cy='8' r='1'/%3E%3C/g%3E%3C/svg%3E"); }
.areas-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 6rem; align-items: start; }
.areas-head .section-tag { color: var(--gold); }
.areas-head .section-tag::before { background: var(--gold); }
.areas-head h2 { color: var(--cream); }
.areas-head h2 em { color: var(--terra2); }
.areas-head .section-sub { color: rgba(247,242,235,0.5); }
.areas-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.area-card { background: rgba(247,242,235,0.05); border: 1px solid rgba(247,242,235,0.08); border-radius: 2px; padding: 1.5rem; transition: background 0.2s, border-color 0.2s; }
.area-card:hover { background: rgba(176,94,58,0.12); border-color: rgba(176,94,58,0.3); }
.area-state { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; display: block; }
.area-name { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 500; color: var(--cream); letter-spacing: 0.02em; margin-bottom: 0.4rem; }
.area-desc { font-size: 0.8rem; color: rgba(247,242,235,0.45); line-height: 1.6; }

/* ── TESTIMONIALS ── */
#testimonials { padding: 7rem 8%; background: var(--cream2); }
.testi-head { text-align: center; max-width: 560px; margin: 0 auto 4rem; }
.testi-head .section-tag { justify-content: center; }
.testi-head .section-tag::before { display: none; }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testi-card { background: var(--white); border-radius: 3px; padding: 2rem; border: 1px solid var(--border); position: relative; }
.testi-quote { font-family: 'Cormorant Garamond', serif; font-size: 3rem; line-height: 1; color: var(--terra); opacity: 0.3; position: absolute; top: 1rem; right: 1.5rem; }
.testi-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 1rem; }
.testi-text { font-size: 0.9rem; line-height: 1.8; color: var(--mid); font-style: italic; }
.testi-divider { width: 24px; height: 1px; background: var(--border2); margin: 1.25rem 0; }
.testi-author { font-size: 0.78rem; font-weight: 600; color: var(--dark); }
.testi-location { font-size: 0.7rem; color: var(--muted); margin-top: 0.1rem; letter-spacing: 0.05em; }

/* ── CONTACT ── */
#contact { padding: 7rem 8%; background: var(--cream); display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.contact-left h2 { color: var(--dark); }
.contact-left p { color: var(--muted); line-height: 1.8; margin-top: 0.75rem; font-size: 0.95rem; }
.contact-card { background: var(--white); border-radius: 3px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 8px 32px rgba(42,31,23,0.07); }
.contact-card-top { background: var(--terra); padding: 1.5rem 2rem; }
.contact-card-top-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,253,249,0.7); }
.contact-card-top-name { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; color: var(--white); margin-top: 0.2rem; }
.contact-card-body { padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: 0.85rem; }
.contact-row { display: flex; align-items: center; gap: 0.75rem; }
.contact-row-icon { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; }
.contact-row-text { font-size: 0.88rem; color: var(--mid); }
.contact-row-text a { color: var(--terra); text-decoration: none; font-weight: 500; }
.contact-row-text a:hover { text-decoration: underline; }
.contact-card-actions { padding: 0 2rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.contact-btn-wa { display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: #25d366; color: white; padding: 0.75rem; border-radius: 2px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: opacity 0.2s; }
.contact-btn-wa:hover { opacity: 0.88; }
.contact-btn-ig { display: flex; align-items: center; justify-content: center; gap: 0.5rem; border: 1px solid var(--border); color: var(--mid); padding: 0.75rem; border-radius: 2px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.contact-btn-ig:hover { border-color: var(--terra); color: var(--terra); }

/* ── FOOTER ── */
footer { background: var(--dark); border-top: 1px solid rgba(247,242,235,0.06); padding: 2.5rem 8%; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo-name { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 500; color: var(--cream); }
.footer-logo-title { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); display: block; margin-top: 0.1rem; }
footer p { color: rgba(247,242,235,0.35); font-size: 0.75rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(247,242,235,0.4); text-decoration: none; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-legal { width: 100%; border-top: 1px solid rgba(247,242,235,0.06); margin-top: 1.5rem; padding-top: 1.5rem; font-size: 0.68rem; color: rgba(247,242,235,0.2); line-height: 1.6; }

/* ── BILINGUAL HELPERS ── */
/* Default state: English active */
.lang-en { display: block; }
.lang-pt { display: none; }
.lang-es { display: none; }
span.lang-en { display: inline; }
span.lang-pt { display: none; }
span.lang-es { display: none; }

/* Portuguese active */
body.pt .lang-en  { display: none !important; }
body.pt .lang-pt  { display: block !important; }
body.pt .lang-es  { display: none !important; }
body.pt span.lang-pt { display: inline !important; }
body.pt span.lang-en { display: none !important; }
body.pt span.lang-es { display: none !important; }

/* Spanish active */
body.es .lang-en  { display: none !important; }
body.es .lang-pt  { display: none !important; }
body.es .lang-es  { display: block !important; }
body.es span.lang-es { display: inline !important; }
body.es span.lang-en { display: none !important; }
body.es span.lang-pt { display: none !important; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  #hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 5rem 5%; }
  #about { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .areas-inner { grid-template-columns: 1fr; gap: 3rem; }
  .testi-grid { grid-template-columns: 1fr; }
  #contact { grid-template-columns: 1fr; gap: 3rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  #about, #services, #areas, #testimonials, #contact { padding: 5rem 5%; }
  .areas-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}
