/* ============================================================
   Dali test 2 — Real Estate | style.css
   ============================================================ */

:root {
  /* 12-token OKLCH palette derived from #0e1c40 (navy) and #e2e8f4 (light blue) */
  --primary:       oklch(0.20 0.10 255);      /* #0e1c40 deep navy */
  --primary-light: oklch(0.35 0.06 255);      /* mid navy */
  --primary-dark:  oklch(0.12 0.08 255);      /* darkest navy */
  --accent:        oklch(0.42 0.15 215);      /* teal-blue — contrast ≥4.5:1 with white */
  --surface:       oklch(0.97 0.01 240);      /* near white #f5f8fd */
  --surface-alt:   oklch(0.93 0.02 240);      /* light blue-grey #e2e8f4 */
  --dark:          oklch(0.15 0.05 255);      /* near-black */
  --light:         oklch(0.98 0.005 240);     /* almost pure white */
  --muted:         oklch(0.45 0.04 255);      /* mid grey-blue */
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --max-width:     1200px;
  --header-height: 72px;
  --radius:        8px;
  --radius-lg:     16px;
  --shadow-sm:     0 2px 8px oklch(0.20 0.10 255 / 0.08);
  --shadow-md:     0 4px 24px oklch(0.20 0.10 255 / 0.14);
  --shadow-lg:     0 8px 40px oklch(0.20 0.10 255 / 0.20);
  --transition:    0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Selection & scrollbar ───────────────────────────── */
::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Focus ───────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Skip link ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ── Fluid type scale ────────────────────────────────── */
h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw + 1rem, 4rem); line-height: 1.15; font-weight: 700; }
h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw + 0.8rem, 2.8rem); line-height: 1.25; font-weight: 700; }
h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw + 0.6rem, 1.8rem); line-height: 1.3; font-weight: 600; }
h4 { font-family: var(--font-body);    font-size: clamp(1rem, 1.5vw + 0.4rem, 1.3rem); line-height: 1.4; font-weight: 600; }

p { max-width: 70ch; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px oklch(0.20 0.10 255 / 0.25);
}
.btn-primary   { background: var(--accent);   color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: oklch(0.36 0.14 215); border-color: oklch(0.36 0.14 215); }
.btn-outline   { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light     { background: #fff; color: var(--primary); border-color: #fff; }
.btn-light:hover { background: var(--surface-alt); border-color: var(--surface-alt); }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: oklch(0.20 0.10 255 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition), box-shadow var(--transition);
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.site-header.scrolled {
  background: oklch(0.20 0.10 255 / 0.97);
  box-shadow: 0 2px 24px oklch(0.20 0.10 255 / 0.30);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.site-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  gap: 0.25rem;
}
.nav-links a {
  color: oklch(0.90 0.02 240);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
  background: oklch(1 0 0 / 0.10);
}

.nav-cta {
  display: none;
}

.hamburger {
  background: none;
  border: 1px solid oklch(1 0 0 / 0.25);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  padding: 0.45rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color var(--transition);
}
.hamburger:hover { border-color: oklch(1 0 0 / 0.5); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  background: var(--primary-dark);
  z-index: 999;
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: oklch(0.90 0.02 240);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover { background: oklch(1 0 0 / 0.08); color: #fff; }
.mobile-nav .btn { margin-top: 0.75rem; justify-content: center; }

/* ── Hero section ────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--primary);
  display: flex;
  align-items: stretch;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Portrait decorative shape */
.hero-portrait-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 45%;
  overflow: hidden;
  display: none;
}
.hero-portrait-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--primary) 0%, transparent 30%);
  z-index: 1;
}
.hero-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.75;
}

.hero-content { max-width: 640px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: oklch(1 0 0 / 0.10);
  color: var(--surface-alt);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease both;
  animation-delay: 0.1s;
  border: 1px solid oklch(1 0 0 / 0.15);
}

.hero-title {
  color: #fff;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.7s ease both;
  animation-delay: 0.25s;
}
.hero-title em {
  font-style: normal;
  color: var(--surface-alt);
}

.hero-subtitle {
  color: oklch(0.82 0.04 240);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease both;
  animation-delay: 0.4s;
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.7s ease both;
  animation-delay: 0.55s;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid oklch(1 0 0 / 0.12);
  animation: fadeInUp 0.7s ease both;
  animation-delay: 0.7s;
}
.hero-stat { text-align: left; }
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  font-weight: 700;
}
.hero-stat span {
  font-size: 0.85rem;
  color: oklch(0.70 0.04 240);
}

/* ── Keyframes ───────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section base ────────────────────────────────────── */
section { padding: 5rem 1.5rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  border: 1px solid oklch(0.55 0.16 215 / 0.20);
}
.section-header h2 { color: var(--primary); margin-bottom: 1rem; }
.section-header p  { color: var(--muted); margin: 0 auto; font-size: 1.05rem; }

/* ── Gallery section ─────────────────────────────────── */
#gallery {
  background: var(--surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface-alt);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery-card:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/7;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-card:hover img { transform: scale(1.04); }

.gallery-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 2rem;
}
.gallery-card-placeholder svg { opacity: 0.4; }
.gallery-placeholder-label {
  color: oklch(0.85 0.03 240);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}
.gallery-placeholder-sub {
  color: oklch(0.65 0.04 240);
  font-size: 0.85rem;
  text-align: center;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(0.12 0.08 255 / 0.85) 0%, transparent 55%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: #fff; font-size: 1rem; margin-bottom: 0.25rem; }
.gallery-overlay p  { color: oklch(0.85 0.03 240); font-size: 0.85rem; }

/* ── Contact section ─────────────────────────────────── */
#contact {
  background: var(--primary);
  color: #fff;
}

#contact .section-header h2 { color: #fff; }
#contact .section-header p  { color: oklch(0.78 0.04 240); }
#contact .section-tag { background: oklch(1 0 0 / 0.10); color: oklch(0.85 0.06 215); border-color: oklch(1 0 0 / 0.15); }

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-agent {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: oklch(1 0 0 / 0.07);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.contact-agent-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.contact-agent-info strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 0.2rem; }
.contact-agent-info span   { color: oklch(0.70 0.04 240); font-size: 0.85rem; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: oklch(1 0 0 / 0.06);
  border: 1px solid oklch(1 0 0 / 0.10);
  border-radius: var(--radius);
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.contact-detail-text { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-detail-text span { color: oklch(0.65 0.04 240); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-detail-text a, .contact-detail-text p {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  max-width: none;
}
.contact-detail-text a:hover { color: var(--surface-alt); }

/* Contact form */
.contact-form-wrap {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.form-title { color: var(--primary); font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.form-group label .req { color: var(--accent); margin-left: 2px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid oklch(0.85 0.02 240);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.55 0.16 215 / 0.15);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; gap: 1rem; }

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.form-status.success { background: oklch(0.90 0.08 150 / 0.25); color: oklch(0.35 0.12 150); border: 1px solid oklch(0.70 0.10 150 / 0.30); display: block; }
.form-status.error   { background: oklch(0.90 0.08 30 / 0.25);  color: oklch(0.40 0.15 30);  border: 1px solid oklch(0.70 0.10 30 / 0.30);  display: block; }

/* ── CTA section ─────────────────────────────────────── */
#cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, oklch(0.55 0.16 215 / 0.20) 0%, transparent 60%);
}
#cta .container { position: relative; z-index: 1; }
#cta h2 { color: #fff; margin-bottom: 1rem; }
#cta p  { color: oklch(0.82 0.04 240); font-size: 1.1rem; margin: 0 auto 2.5rem; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid oklch(1 0 0 / 0.12);
}
.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: oklch(0.82 0.04 240);
  font-size: 0.9rem;
}
.cta-feature svg { color: var(--accent); flex-shrink: 0; }

/* ── Footer ──────────────────────────────────────────── */
footer {
  background: var(--primary-dark);
  color: oklch(0.65 0.04 240);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.footer-logo img { height: 32px; width: auto; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}
.footer-links a {
  color: oklch(0.65 0.04 240);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: center;
}
.footer-contact a {
  color: oklch(0.75 0.04 240);
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer-contact a:hover { color: #fff; }

.footer-copy {
  font-size: 0.8rem;
  color: oklch(0.50 0.04 255);
  border-top: 1px solid oklch(1 0 0 / 0.08);
  padding-top: 1.5rem;
  width: 100%;
  text-align: center;
}

/* ── Mobile CTA bar ──────────────────────────────────── */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 990;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--primary-dark);
  border-top: 1px solid oklch(1 0 0 / 0.12);
  box-shadow: 0 -4px 20px oklch(0.20 0.10 255 / 0.30);
}
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.mobile-cta__call {
  background: var(--accent);
  color: #fff;
}
.mobile-cta__call:hover { background: oklch(0.48 0.18 215); }
.mobile-cta__contact {
  background: transparent;
  color: oklch(0.85 0.04 240);
  border-left: 1px solid oklch(1 0 0 / 0.12);
}
.mobile-cta__contact:hover { background: oklch(1 0 0 / 0.06); color: #fff; }

/* ── Breakpoint: 768px ───────────────────────────────── */
@media (min-width: 768px) {

  section { padding: 7rem 2rem; }

  /* Header */
  .nav-links { display: flex; }
  .nav-cta   { display: flex; }
  .hamburger { display: none; }

  /* Hero */
  .hero-inner {
    flex-direction: row;
    align-items: center;
    padding: 6rem 2rem;
  }
  .hero-content { flex: 1; }
  .hero-portrait-wrap { display: block; }
  .hero-stats { margin-top: 3.5rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .gallery-card:first-child { grid-column: 1 / 3; aspect-ratio: 4/3; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile CTA hide on desktop */
  .mobile-cta { display: none; }

  body { padding-bottom: 0; }
}

@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-card:first-child { grid-column: 1 / 3; }
}

/* Add bottom padding on mobile to clear CTA bar */
@media (max-width: 767px) {
  body { padding-bottom: 60px; }
}

/* ── Print styles ────────────────────────────────────── */
@media print {
  .site-header,
  footer,
  .mobile-cta,
  #contact form,
  .hamburger,
  .nav-cta { display: none !important; }

  body { padding-bottom: 0; color: #000; }
  #hero { min-height: auto; background: #fff; color: #000; padding: 2rem 0; }
  .hero-title, .hero-subtitle, .hero-eyebrow { color: #000 !important; }
  .hero-portrait-wrap { display: none; }

  a::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #555; }
  a[href^="tel"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; }
  a[href^="#"]::after { content: ""; }

  section { padding: 2rem 0; page-break-inside: avoid; }
  h2 { font-size: 1.4rem; }
}
