/* Ilusha Global — custom site
   Navy, deep green, warm cream. Fraunces + Inter. */

:root {
  --navy: #0b1f33;
  --navy-deep: #07141f;
  --navy-soft: #143049;
  --green: #0e7c4a;
  --green-hover: #0b6a3f;
  --green-bright: #1a9a5c;
  --cream: #f4efe6;
  --cream-dark: #e8e0d2;
  --paper: #faf7f1;
  --ink: #0b1f33;
  --muted: #3c5163;
  --line: rgba(11, 31, 51, 0.12);
  --line-strong: rgba(11, 31, 51, 0.22);
  --white: #ffffff;
  --nav-h: 4.5rem;
  --max: 70rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --col-pad: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
  --shadow: 0 24px 50px -28px rgba(11, 31, 51, 0.45);
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.5rem);
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-hover);
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--green);
  color: var(--white);
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(246, 241, 232, 0.08);
  box-shadow: 0 1px 0 rgba(14, 124, 74, 0.55);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

.logo:hover {
  color: var(--white);
}

.logo-mark {
  width: 1.85rem;
  height: 2.3rem;
  flex-shrink: 0;
}

.logo-word {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

body.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  position: relative;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.site-nav a[aria-current="page"] {
  color: var(--white);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--green-bright);
  border-radius: 1px;
}

.site-nav a.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.site-nav a.nav-cta::after {
  display: none;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta:focus-visible {
  background: var(--green-hover);
  color: var(--white);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9rem 1.55rem;
  border-radius: var(--radius);
  border: 2px solid var(--green);
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--green-hover);
  border-color: var(--green-hover);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-light:hover,
.btn-light:focus-visible {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--navy);
}

.btn-arrow::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.1rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  min-height: 88dvh;
  padding: calc(var(--nav-h) + 2.25rem) 0 5.5rem;
  overflow: hidden;
}

.hero-page {
  min-height: 52vh;
  min-height: 52dvh;
  align-items: flex-end;
  padding-bottom: 4rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-home .hero-media img {
  object-position: center 72%;
}

.hero-about .hero-media img {
  object-position: center 45%;
}

.hero-services .hero-media img {
  object-position: center 60%;
}

.hero-contact .hero-media img {
  object-position: 30% 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(7, 18, 30, 0.48) 0%,
      rgba(7, 18, 30, 0.28) 32%,
      rgba(7, 18, 30, 0.62) 68%,
      rgba(7, 18, 30, 0.88) 100%
    ),
    linear-gradient(
      90deg,
      rgba(7, 18, 30, 0.55) 0%,
      rgba(7, 18, 30, 0.22) 55%,
      rgba(7, 18, 30, 0.15) 100%
    );
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.35rem, 5.4vw, 4.55rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  max-width: 13.2em;
  text-wrap: balance;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-page h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* ---------- Layout helpers ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.prose {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink);
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
}

/* ---------- Split sections ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--paper);
}

.split + .split {
  /* no extra gap; they stack flush */
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5.25rem) var(--gutter) clamp(2.5rem, 6vw, 5.25rem) var(--col-pad);
}

.split-copy .prose,
.split-copy > p:not(.eyebrow) {
  max-width: 34rem;
  font-size: 1.125rem;
  line-height: 1.75;
  margin: 0;
}

.split-media {
  margin: 0;
  min-height: 28rem;
  overflow: hidden;
  background: var(--navy-soft);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-reverse .split-copy {
  order: 2;
  padding-left: var(--gutter);
  padding-right: var(--col-pad);
}

.split-reverse .split-media {
  order: 1;
}

.split-audit img {
  object-position: 70% center;
}

.split-supplies img {
  object-position: center 60%;
}

/* ---------- Independent by design band ---------- */

.band {
  background: var(--navy);
  color: var(--white);
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
  position: relative;
}

.band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
}

.band-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
  flex-wrap: wrap;
}

.band-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 550;
  font-optical-sizing: auto;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--white);
  max-width: 12em;
}

.band-copy {
  max-width: 46rem;
}

.band-copy .eyebrow {
  color: var(--green-bright);
}

.band-copy p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.band .btn {
  flex-shrink: 0;
  margin-top: 0.35rem;
}

/* ---------- About page ---------- */

.about-body {
  background: var(--paper);
}

.about-prose {
  max-width: 44rem;
  padding-top: clamp(3.25rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.25rem, 7vw, 5.5rem);
}

.about-lead {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 2.85rem;
}

.about-section {
  margin: 0 0 2.35rem;
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-section .eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.7rem;
}

.about-section p,
.about-prose p:not(.about-lead) {
  font-size: 1.125rem;
  line-height: 1.75;
  margin: 0;
}

.closing-statement {
  max-width: 44rem;
  padding-top: 0.5rem;
  padding-bottom: clamp(3.75rem, 7vw, 5.75rem);
}

.closing-statement p {
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--green);
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--navy);
}

/* ---------- Services grid ---------- */

.services-section {
  background: var(--cream);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.7rem 1.55rem 1.8rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(14, 124, 74, 0.28);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--green);
  margin-bottom: 0.35rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card h2 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--navy);
}

@media (min-width: 901px) {
  .card h2 {
    min-height: 2.5em;
  }
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---------- Contact ---------- */

.contact-section {
  background: var(--paper);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.contact-panel {
  max-width: 40rem;
}

.contact-panel .lede {
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 0 0 2rem;
  color: var(--ink);
}

.contact-email {
  margin: 0 0 2.25rem;
}

.contact-email .eyebrow {
  margin-bottom: 0.65rem;
}

.contact-location {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-location svg {
  width: 1.2rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--green);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.25rem 0 2rem;
  border-top: 3px solid var(--green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 2.5rem 2rem;
  align-items: start;
}

.footer-brand .logo {
  margin-bottom: 0.85rem;
}

.footer-brand p {
  margin: 0;
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-links li + li {
  margin-top: 0.4rem;
}

.footer-contact p {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-base p {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .split-media {
    min-height: 22rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    z-index: 99;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    background: var(--navy);
    padding: 1.25rem var(--gutter) 2rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .site-nav a {
    display: block;
    font-size: 1.2rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .site-nav a[aria-current="page"] {
    color: var(--green-bright);
  }

  .site-nav a.nav-cta {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
    padding: 0.95rem 1rem;
    border-bottom: 0;
  }

  .hero {
    min-height: 86vh;
    min-height: 86dvh;
    padding-bottom: 3.5rem;
    align-items: flex-end;
  }

  .hero-page {
    min-height: 44vh;
    min-height: 44dvh;
    padding-bottom: 2.75rem;
  }

  .split,
  .split-reverse {
    grid-template-columns: 1fr;
  }

  .split-reverse .split-copy,
  .split-reverse .split-media,
  .split .split-copy,
  .split .split-media {
    order: initial;
  }

  .split-media {
    min-height: 16rem;
    height: 52vw;
    max-height: 22rem;
  }

  .split-copy,
  .split-reverse .split-copy {
    padding: 2.5rem var(--gutter) 2.75rem;
  }

  /* Keep a consistent visual rhythm: image after the first copy,
     image before the second copy still stacks as copy then image
     (DOM order in reverse is image first — flip on mobile so copy leads) */
  .split-reverse .split-copy {
    order: 1;
  }

  .split-reverse .split-media {
    order: 2;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .logo-word {
    letter-spacing: 0.12em;
    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: 1.95rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .site-footer {
    position: static;
  }

  .hero {
    min-height: 0;
    color: var(--ink);
    padding: 2rem var(--gutter);
  }

  .hero-overlay,
  .hero-media {
    display: none;
  }

  .hero h1,
  .hero .lede {
    color: var(--ink);
    text-shadow: none;
  }
}
