/* ============================================================
   Mila's Home — Stylesheet
   Colors: Navy #1E3060 | Steel Blue #6B9EC8 | Light #F4F7FB
   ============================================================ */

:root {
  --navy: #1E3060;
  --navy-dark: #152248;
  --blue: #6B9EC8;
  --blue-light: #A8C8E8;
  --blue-pale: #EAF2FA;
  --off-white: #F8F9FB;
  --gray-100: #F4F4F4;
  --gray-300: #D0D5DD;
  --gray-600: #6B7280;
  --gray-800: #1F2937;
  --white: #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);

  --container: 1120px;
  --section-py: 80px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---- Utilities ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-py) 0; }
.section--alt { background: var(--off-white); }
.section--dark { background: var(--navy); color: var(--white); }

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section__eyebrow--light { color: var(--blue-light); }

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}
.section__title--light { color: var(--white); }

.section__sub {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: var(--white);
}
.btn--full { width: 100%; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-300);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo-img {
  height: 44px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  transition: color .15s;
}
.nav__links li a:hover { color: var(--navy); }

.nav__cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px !important;
  transition: background .2s !important;
}
.nav__cta:hover { background: var(--navy-dark) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .25s;
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 72px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 60px;
  max-width: 600px;
  margin: 0;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 20px;
}
.hero__headline em {
  font-style: italic;
  color: var(--blue);
}

.hero__sub {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--blue-pale);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* placeholder when no image */
.hero__image-wrap:not(:has(img[src="images/hero.jpg"]))::after,
.hero__image-wrap:has(img[src=""]) {
  content: '';
}

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--navy);
  padding: 16px 0;
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-light);
  letter-spacing: .04em;
}
.trust-bar__dot { color: var(--blue); }

/* ---- Services ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--blue);
  margin-bottom: 20px;
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ---- How It Works ---- */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 24px;
  text-align: center;
}

.step__number {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--blue-pale);
  line-height: 1;
  margin-bottom: 12px;
  -webkit-text-stroke: 2px var(--blue-light);
}

.step__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.step__desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
}

.step__arrow {
  font-size: 28px;
  color: var(--blue-light);
  padding-top: 16px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 48px;
}

/* ---- About ---- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--blue-pale);
  box-shadow: var(--shadow-lg);
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__content { display: flex; flex-direction: column; gap: 16px; }
.about__content .section__title { margin-bottom: 0; }
.about__content p { font-size: 16px; color: var(--gray-600); }
.about__content .btn { margin-top: 8px; align-self: flex-start; }

/* ---- Service Area ---- */
.area__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.area-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.area-card--primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.area-card--primary h3 { color: var(--white); }
.area-card--primary p { color: var(--blue-light); }

.area-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.area-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

.area__note {
  text-align: center;
  font-size: 14px;
  color: var(--gray-600);
  font-style: italic;
}

/* ---- SEO block ---- */
.seo-block__inner {
  max-width: 760px;
  margin: 0 auto;
}
.seo-block__text h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--navy);
  margin-bottom: 20px;
  font-weight: 700;
}
.seo-block__text p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.75;
}

/* ---- Contact ---- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact__sub {
  font-size: 16px;
  color: var(--blue-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--blue-light);
}
.contact__details svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue);
}
.contact__details a:hover { color: var(--white); }

/* Contact Form */
.contact__form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__group label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  letter-spacing: .02em;
}
.form__group input,
.form__group textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--white);
  transition: border-color .15s, background .15s;
  outline: none;
  resize: vertical;
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: rgba(255,255,255,.35); }
.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--blue);
  background: rgba(255,255,255,.12);
}

.contact__form .btn--primary {
  background: var(--blue);
  margin-top: 4px;
}
.contact__form .btn--primary:hover {
  background: var(--blue-light);
  color: var(--navy);
}

/* ---- Footer ---- */
.footer {
  background: var(--navy-dark);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer__logo-img {
  height: 40px;
  width: auto;
  opacity: .85;
  filter: brightness(0) invert(1);
}
.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  font-size: 13px;
  color: var(--blue-light);
  transition: color .15s;
}
.footer__links a:hover { color: var(--white); }
.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .area__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    flex-direction: column;
    align-items: center;
  }
  .step__arrow {
    transform: rotate(90deg);
    margin-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  :root { --section-py: 60px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__content {
    max-width: 100%;
    padding-top: 60px;
    padding-bottom: 40px;
  }
  .hero__image-wrap {
    height: 320px;
    order: -1;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__image-wrap {
    aspect-ratio: 16/9;
    max-height: 360px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  :root { --section-py: 48px; }

  .nav__links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow-md);
  }
  .nav__links.open { display: flex; }
  .nav__links li a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 16px;
  }
  .nav__cta {
    text-align: center;
    margin-top: 8px;
    border-bottom: none !important;
  }
  .nav__toggle { display: flex; }

  .hero__headline { font-size: 36px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .trust-bar__inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .trust-bar__dot { display: none; }

  .services__grid { grid-template-columns: 1fr; }

  .area__grid { grid-template-columns: 1fr; }

  .contact__form { padding: 28px 20px; }
}
