/* =========================================================
   AGAMI Real Estate — stylesheet
   Palette: ink / paper / stone / moss / copper
   Type: Fraunces (display) + Inter (body/UI)
   ========================================================= */

:root {
  --color-ink: #1c2620;
  --color-ink-soft: #2c362f;
  --color-paper: #f6f4ef;
  --color-stone: #e7e2d4;
  --color-stone-dark: #d8d2be;
  --color-moss: #46573f;
  --color-moss-dark: #313f2c;
  --color-moss-light: #6b7d61;
  --color-copper: #ad744c;
  --color-copper-dark: #8f5d3a;
  --color-muted: #6b6f63;
  --color-border: #d8d2c3;
  --color-white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1160px;
  --radius-s: 4px;
  --radius-m: 8px;
  --shadow-card: 0 1px 2px rgba(28, 38, 32, 0.06);

  --transition: 200ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--color-moss);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-ink);
}

h2 { font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--color-muted); max-width: 62ch; }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }

.section-heading {
  max-width: 560px;
  margin-bottom: 56px;
}
.section-heading p { margin-top: 12px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-moss);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-moss-dark); }
.btn-ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-ink);
}
.btn-ghost:hover { border-color: var(--color-moss); color: var(--color-moss-dark); }
.btn-small { padding: 10px 20px; font-size: 0.88rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  border-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(28, 38, 32, 0.05);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
}
.logo-mark { color: var(--color-moss); flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-suffix {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav ul { display: flex; gap: 36px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--color-moss);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-ink);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 100px; overflow: hidden; }
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 1.9rem + 2.2vw, 3.6rem);
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 700ms ease forwards;
}
.hero-lead {
  margin-top: 22px;
  font-size: 1.12rem;
  max-width: 46ch;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 700ms ease 120ms forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 700ms ease 220ms forwards;
}
.hero-facts {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  opacity: 0;
  animation: fade 700ms ease 400ms forwards;
}
.hero-facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.hero-facts dd { font-weight: 600; font-size: 0.95rem; }

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

.hero-visual { display: flex; justify-content: center; }
.skyline-svg { width: 100%; max-width: 420px; height: auto; color: var(--color-moss); }
.skyline-svg .ground-line { stroke: var(--color-border); stroke-width: 1.5; }
.skyline-svg .bld {
  fill: var(--color-stone);
  stroke: var(--color-border);
  stroke-width: 1;
  transform-origin: bottom;
  animation: rise-bld 800ms ease backwards;
}
.skyline-svg .bld-1 { animation-delay: 150ms; }
.skyline-svg .bld-2 { animation-delay: 260ms; fill: var(--color-stone-dark); }
.skyline-svg .bld-3 { animation-delay: 370ms; fill: var(--color-moss); opacity: 0.9; }
.skyline-svg .bld-4 { animation-delay: 480ms; }
@keyframes rise-bld {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
.skyline-svg .growth-path {
  stroke: var(--color-copper);
  stroke-width: 2;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw 900ms ease 700ms forwards;
}
.skyline-svg .growth-dot {
  fill: var(--color-copper);
  opacity: 0;
  animation: fade 300ms ease 1550ms forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- About ---------- */
.about { background: var(--color-white); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text h2 { margin-bottom: 22px; }
.about-text p { margin-bottom: 16px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 28px;
  padding: 36px;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--color-moss-dark);
}
.about-stats dd { margin-top: 4px; font-size: 0.88rem; color: var(--color-muted); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}
.service {
  padding: 34px 32px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}
.service:hover { background: var(--color-white); }
.service-icon {
  display: inline-flex;
  color: var(--color-moss);
  margin-bottom: 18px;
}
.service-icon svg { width: 34px; height: 34px; }
.service h3 { margin-bottom: 10px; }
.service p { font-size: 0.95rem; }

/* ---------- Why Us ---------- */
.why-us { background: var(--color-moss-dark); color: var(--color-paper); }
.why-us h2 { color: var(--color-paper); }
.why-us-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.why-us-visual { display: flex; justify-content: center; }
.mark-svg { width: 100%; max-width: 320px; height: auto; color: var(--color-paper); }
.mark-svg .ring { fill: none; stroke: rgba(246,244,239,0.16); stroke-width: 1; }
.mark-svg .ring-2 { stroke: rgba(246,244,239,0.28); }

.benefits-list { display: flex; flex-direction: column; gap: 28px; }
.benefits-list li { display: flex; gap: 16px; align-items: flex-start; }
.benefits-list .check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-copper);
}
.benefits-list h3 { color: var(--color-paper); margin-bottom: 6px; }
.benefits-list p { color: rgba(246,244,239,0.72); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact { background: var(--color-white); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 14px; }
.contact-info > p { margin-bottom: 32px; }

.contact-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.contact-details li { display: flex; flex-direction: column; gap: 4px; font-size: 0.95rem; }
.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
}
.contact-details a { color: var(--color-moss-dark); font-weight: 600; }
.contact-details a:hover { color: var(--color-copper-dark); }

.map-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--color-stone);
}
.map-bg { fill: var(--color-stone); }
.map-road { fill: none; stroke: var(--color-stone-dark); stroke-width: 3; }
.map-road-2 { stroke-width: 2; }
.map-pin { fill: var(--color-copper); }
.map-pin-halo { fill: rgba(173, 116, 76, 0.18); }
.map-pin-dot { fill: var(--color-paper); }
.map-caption {
  display: block;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
}

.contact-form {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--color-ink-soft); }
.field .optional { font-weight: 400; color: var(--color-muted); }
.field input, .field textarea, .field select {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  background: var(--color-white);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--color-moss);
  box-shadow: 0 0 0 3px rgba(70, 87, 63, 0.12);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field.has-error input, .field.has-error textarea {
  border-color: #b3452f;
}
.field-error {
  font-size: 0.8rem;
  color: #b3452f;
  min-height: 1em;
  display: block;
}
.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--color-moss-dark);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: rgba(246,244,239,0.75); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 56px;
}
.footer-brand .footer-logo { color: var(--color-paper); }
.footer-brand .logo-suffix { color: rgba(246,244,239,0.55); }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; max-width: 32ch; color: rgba(246,244,239,0.6); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(246,244,239,0.5);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-paper); }

.footer-bottom { border-top: 1px solid rgba(246,244,239,0.12); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.83rem; color: rgba(246,244,239,0.55); }
.legal-links { display: flex; gap: 24px; }
.legal-links a { font-size: 0.83rem; color: rgba(246,244,239,0.55); }
.legal-links a:hover { color: var(--color-paper); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto 12px; }
  .about-grid, .why-us-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-us-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 32px 24px;
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; gap: 4px; }
  .site-header.nav-open .main-nav a { display: block; padding: 12px 0; }
  .site-header.nav-open .header-actions .btn-small {
    display: inline-flex;
  }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding-bottom: 32px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .section-inner, .hero-inner, .header-inner { padding-left: 20px; padding-right: 20px; }
  .hero-facts { gap: 24px; }
}
