/* ==========================================================================
   Indie Property Services — stylesheet
   Palette: navy primary (logo house), green accent (logo tree)
   ========================================================================== */

:root {
  /* Primary: navy (pulled from logo house) */
  --navy-900: #12233a;
  --navy-800: #1f3451;
  --navy-700: #2d4a6b;
  --navy-600: #3d5a7f;
  --navy-500: #4f6d92;
  --navy-100: #e6ecf3;

  /* Accent: green (pulled from logo tree) */
  --green-700: #3e7a3c;
  --green-500: #5aa458;
  --green-100: #e6f1e5;

  --ink-900: #0b0b0b;
  --ink-800: #1a1a1a;
  --ink-700: #2a2a2a;
  --ink-500: #5c5c5c;
  --ink-400: #7a7a7a;
  --stone-200: #e7e7e4;
  --stone-100: #f2f2ef;
  --stone-50: #f7f7f5;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --max-width: 1200px;
  --font-sans: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--navy-700);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--green-500); }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.6em;
  color: var(--ink-900);
}
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 3rem); }
h3 { font-size: 1.35rem; font-weight: 700; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--stone-200);
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy-800);
  text-decoration: none;
}
.brand:hover { color: var(--navy-700); }

.brand-logo {
  height: 64px;
  width: auto;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  color: var(--ink-800);
  font-weight: 500;
  font-size: 1rem;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy-700); }

.nav-cta {
  background: var(--ink-900);
  color: var(--white) !important;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--navy-700); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.35rem;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-900);
  margin: 5px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  text-align: center;
}
.btn-primary {
  background: var(--navy-700);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-800);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--ink-900);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--ink-700);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--navy-700);
}
.btn-outline:hover {
  background: var(--navy-700);
  color: var(--white);
}
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 6rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(18, 35, 58, 0.55), rgba(18, 35, 58, 0.65)),
    url("https://images.unsplash.com/photo-1558904541-efa843a96f01?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: clamp(2.6rem, 6vw + 1rem, 4.75rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
.hero .lede {
  color: #fff;
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.3rem);
  font-weight: 600;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-direction: column;
  max-width: 360px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(18, 35, 58, 0.7);
  color: var(--white);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.badge .trophy { font-size: 1rem; }

/* Page hero (smaller banner) */
.page-hero {
  padding: 5rem 0 3rem;
  background: var(--stone-50);
  border-bottom: 1px solid var(--stone-200);
}
.page-hero .eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--ink-500); max-width: 40rem; font-size: 1.1rem; }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3.5rem; }
.section-head h2 { margin-bottom: 0.75rem; }
.section-head p { color: var(--ink-500); font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy-700);
  margin-bottom: 0.9rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  margin: 0 0 2rem;
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  padding: 1.75rem 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-100);
  color: var(--navy-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.5rem;
}
.service-card h3 { margin-bottom: 0.5rem; color: var(--ink-900); }
.service-card p { color: var(--ink-500); margin: 0; font-size: 0.98rem; }
.service-card a.link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--navy-700);
  font-weight: 600;
  font-size: 0.95rem;
}
.service-card a.link:hover { color: var(--green-500); }

/* ---------- Two-column split ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.flip > :first-child { order: 2; }

.feature-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-md);
}

/* ---------- Check list ---------- */
.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink-800);
  font-weight: 500;
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4a6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ---------- Value bar ---------- */
.value-bar {
  background: var(--stone-50);
  border-top: 1px solid var(--stone-200);
  border-bottom: 1px solid var(--stone-200);
  padding: 3rem 0;
}
.value-bar .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  text-align: center;
}
.value-bar h3 { color: var(--ink-900); margin-bottom: 0.3rem; font-size: 1.05rem; font-weight: 700; }
.value-bar p { color: var(--ink-500); font-size: 0.95rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
  padding: 5rem 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 42rem; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ---------- Service area ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  max-width: 880px;
  margin: 2rem auto 0;
}
.area-chip {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--ink-800);
}

/* ---------- Forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
}
.form {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  padding: 2rem;
}
.form label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--ink-900);
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
  color: var(--ink-900);
  margin-bottom: 1.1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(45, 74, 107, 0.18);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { width: 100%; padding: 1rem 1.5rem; font-size: 1.05rem; }

.contact-info dl {
  margin: 0;
  display: grid;
  gap: 1.4rem;
}
.contact-info dt {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy-700);
  margin-bottom: 0.3rem;
  font-weight: 700;
}
.contact-info dd { margin: 0; font-size: 1.1rem; color: var(--ink-900); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 1.75rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.88); }
.site-footer a:hover { color: var(--green-500); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55rem; font-size: 0.95rem; }
.footer-brand p { font-size: 0.95rem; max-width: 22rem; }
.footer-logo {
  display: inline-block;
  background: var(--white);
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 1.2rem;
}
.footer-logo img { width: 140px; height: auto; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--stone-200);
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--stone-200); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-cta { margin-top: 0.5rem; text-align: center; border-radius: 10px; }
  .brand-logo { height: 52px; }
}

@media (max-width: 800px) {
  .two-col, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .two-col.flip > :first-child { order: 0; }
  section { padding: 3.5rem 0; }
  .hero { min-height: 72vh; padding: 5rem 1.5rem; }
  .page-hero { padding: 3.5rem 0 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { max-width: 100%; }
}
