/* ============================================================
   MAIN — index.php page-specific styles
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   HEADER OVERRIDE (index.php — opaque white header variant)
   ══════════════════════════════════════════════════════════ */
body.page-index #site-header {
  height: 76px;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(17,24,39,0.08);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  transition:
    background   0.35s ease,
    height       0.35s ease,
    box-shadow   0.35s ease,
    border-color 0.35s ease,
    transform    0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity      0.32s ease;
  transform: translateY(0);
  opacity: 1;
  box-shadow: 0 4px 18px rgba(15,23,32,0.04);
}
body.page-index #site-header.scrolled {
  height: 64px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  border-bottom: 1px solid rgba(17,24,39,0.08);
  box-shadow: 0 10px 28px rgba(15,23,32,0.08);
}
body.page-index .header-inner {
  max-width: 1280px;
  padding: 0 80px;
  height: 100%;
}
body.page-index .logo img { height: 70px; }

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--navy-950);
  overflow: hidden;
  display: flex;
}
.hero-overlay-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    92deg,
    rgba(6,12,22,0.78)   0%,
    rgba(8,14,26,0.58)   20%,
    rgba(10,16,28,0.26)  42%,
    rgba(9,16,26,0.08)   62%,
    rgba(9,16,26,0.00)  100%
  );
  z-index: 1;
}
.hero-overlay-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9,16,26,0.46) 0%,
    rgba(9,16,26,0.24) 20%,
    rgba(9,16,26,0.08) 42%,
    rgba(9,16,26,0.00) 62%
  );
  z-index: 1;
}
.hero-overlay-warm {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 70% at 70% 42%,
    rgba(249,109,23,0.08) 0%,
    transparent 60%
  );
  z-index: 1;
}
.hero-accent-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent              0%,
    rgba(249,109,23,0.45)   18%,
    var(--hw-orange)         52%,
    rgba(249,109,23,0.30)   78%,
    transparent             100%
  );
  opacity: 0.82;
  z-index: 5;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 120px;
  padding-bottom: 110px;
}
.hero-copy {
  position: relative;
  max-width: 1180px;
  width: 100%;
  margin: 0;
  text-align: left;
  z-index: 2;
}
.hero-copy::before {
  content: '';
  position: absolute;
  left: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 720px;
  height: 420px;
  background: radial-gradient(
    ellipse at 42% 50%,
    rgba(9,16,26,0.42) 0%,
    rgba(9,16,26,0.24) 34%,
    rgba(9,16,26,0.10) 56%,
    rgba(9,16,26,0.00) 78%
  );
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
}
.hero-headline {
  font-family: var(--font-d);
  font-size: clamp(48px, 5.2vw, 78px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--white);
  margin-bottom: 22px;
  text-shadow:
    0 2px 20px rgba(9,16,26,0.26),
    0 1px 6px  rgba(9,16,26,0.18);
  max-width: 980px;
}
.hero-headline em { font-style: normal; color: var(--hw-orange-light); }
.hero-subline {
  font-family: var(--font-b);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.72;
  color: rgba(255,255,255,0.90);
  text-shadow: 0 1px 10px rgba(9,16,26,0.16);
  max-width: 680px;
  letter-spacing: -0.01em;
}

/* ── Hero Slider — Ken Burns ── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  opacity: 0;
  z-index: 0;
  transform: scale(1.08);
  transition:
    opacity   1.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 8s  ease-out;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
  transform: scale(1.00);
  animation: kenburns-delay 8s ease-out forwards;
}
@keyframes kenburns-delay {
  0%   { transform: scale(1.00); }
  100% { transform: scale(1.08); }
}
.hero-slide.prev { opacity: 0; z-index: 0; }

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 6;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.36);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.hero-dot.active { background: var(--hw-orange); width: 24px; }

/* ══════════════════════════════════════════════════════════
   BUSINESS SECTION
   ══════════════════════════════════════════════════════════ */
.business-section {
  position: relative;
  background: linear-gradient(180deg, #f8f8f4 0%, #fbfbf8 100%);
  padding: 88px 0 92px;
}
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.business-card {
  display: block;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(17,24,39,0.08);
  box-shadow: 0 18px 40px rgba(15,23,32,0.08);
  transition:
    transform    0.45s var(--ease-soft),
    box-shadow   0.45s var(--ease-soft),
    border-color 0.35s var(--ease-soft);
}
.business-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 54px rgba(15,23,32,0.12);
  border-color: rgba(249,109,23,0.24);
}
.business-thumb { height: 216px; overflow: hidden; position: relative; }
.business-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,16,26,0.00) 0%, rgba(9,16,26,0.10) 100%);
}
.business-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease-soft);
}
.business-card:hover .business-thumb img { transform: scale(1.04); }
.business-body { padding: 28px 26px; }
.bc-name {
  font-family: var(--font-d);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy-800);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}
.bc-sub { font-size: 15px; line-height: 1.72; color: var(--neutral-700); min-height: 118px; }
.bc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hw-orange);
}
.bc-link svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease-soft); }
.business-card:hover .bc-link svg { transform: translateX(4px); }

/* ══════════════════════════════════════════════════════════
   MESSAGE BAND
   ══════════════════════════════════════════════════════════ */
.message-band {
  position: relative;
  background:
    linear-gradient(rgba(239,232,223,0.68), rgba(245,239,231,0.72)),
    url('../img/leaf.webp') center center / cover no-repeat fixed;
  padding: 62px 0 66px;
  border-top: 1px solid rgba(17,24,39,0.05);
  border-bottom: 1px solid rgba(17,24,39,0.05);
  overflow: hidden;
}
.message-band-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.message-quote {
  font-family: var(--font-d);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--navy-800);
}

/* ══════════════════════════════════════════════════════════
   CONTACT / CTA SECTION
   ══════════════════════════════════════════════════════════ */
.contact-section {
  position: relative;
  background: var(--page-light);
  padding: 0;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 120% at 100% 50%, rgba(249,109,23,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 30% 80% at 0% 50%, rgba(249,109,23,0.04) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.contact-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent              0%,
    rgba(249,109,23,0.3)    20%,
    var(--hw-orange)         50%,
    rgba(249,109,23,0.3)    80%,
    transparent             100%
  );
  z-index: 1;
}
.contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1px 0.9fr;
  align-items: stretch;
  min-height: 280px;
}
.contact-left {
  padding: 72px 64px 72px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.contact-left .cl-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hw-orange);
}
.contact-left .cl-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--hw-orange);
  border-radius: 2px;
}
.contact-left .cl-title {
  font-family: var(--font-d);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy-800);
}
.contact-left .cl-title em { font-style: normal; color: var(--hw-orange); }
.contact-points { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.contact-point  { display: flex; align-items: center; gap: 14px; }
.cp-icon {
  width: 27px; height: 27px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cp-icon img { width: 27px; height: 27px; object-fit: contain; display: block; }
.cp-value { font-size: 14px; color: var(--neutral-600); line-height: 1.6; }
.contact-divider { background: rgba(17,24,39,0.08); align-self: stretch; }
.contact-right {
  padding: 72px 0 72px 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}
.contact-right .cr-heading {
  font-family: var(--font-d);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.contact-right .cr-sub {
  font-size: 14px;
  color: var(--neutral-500);
  line-height: 1.7;
  max-width: 320px;
  margin-top: -12px;
}

/* ── Primary / Secondary Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 36px;
  background: var(--hw-orange);
  color: var(--white);
  border: none;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: background 0.22s ease, transform 0.38s var(--ease-soft), box-shadow 0.38s var(--ease-soft);
  box-shadow:
    0 8px  24px rgba(249,109,23,0.35),
    0 2px   8px rgba(249,109,23,0.20);
}
.btn-primary:hover {
  background: var(--hw-orange-dark);
  transform: translateY(-3px);
  box-shadow:
    0 16px 40px rgba(249,109,23,0.42),
    0  4px 12px rgba(249,109,23,0.24);
}
.btn-primary svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-soft); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-600);
  border: 1px solid rgba(17,24,39,0.16);
  padding: 12px 24px;
  transition: color 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
  background: none;
  text-decoration: none;
}
.btn-secondary-outline:hover {
  color: var(--neutral-900);
  border-color: rgba(17,24,39,0.36);
}

/* ══════════════════════════════════════════════════════════
   FOOTER (index.php variant — different from tail.php)
   ══════════════════════════════════════════════════════════ */
body.page-index #site-footer {
  background: var(--hw-black);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.foot-main {
  padding: 72px 0 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
}
.foot-brand img { height: 75px; width: auto; margin-bottom: 18px; }
.foot-brand .sub { margin-top: 14px; font-size: 11px; color: rgba(255,255,255,0.26); line-height: 1.8; }
.foot-col h4 {
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hw-orange-light);
  margin-bottom: 14px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 6px; }
.foot-col ul a { font-size: 13px; color: rgba(255,255,255,0.52); transition: var(--tr); display: block; }
.foot-col ul a:hover { color: var(--white); padding-left: 4px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.foot-bottom p { font-size: 11px; color: rgba(255,255,255,0.24); }
.foot-social { display: flex; gap: 7px; }
.foot-social a {
  width: 30px; height: 30px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: var(--tr);
}
.foot-social a:hover { border-color: var(--hw-orange); color: var(--hw-orange); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — main.css
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  body.page-index .header-inner { padding-left: 48px; padding-right: 48px; }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy     { max-width: 780px; }
  .hero-headline { font-size: clamp(40px, 4.8vw, 66px); }
}
@media (max-width: 980px) {
  body.page-index .header-inner { padding-left: 32px; padding-right: 32px; }
  .hero { display: flex; }
  .hero-shell {
    align-items: center;
    padding-top: 132px;
    padding-bottom: 80px;
  }
  .hero-copy { max-width: 720px; }
  .hero-copy::before { left: -36px; width: min(90vw, 720px); height: 240px; }
  .hero-headline { white-space: normal; font-size: clamp(36px, 6.4vw, 56px); line-height: 1.02; }
  .hero-subline  { font-size: 18px; max-width: 620px; }
  .hero-slide    { background-attachment: scroll; }
  .business-grid { grid-template-columns: 1fr; }
  .message-band  { background-attachment: scroll; }
  .contact-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1px auto;
    min-height: auto;
  }
  .contact-left  { padding: 56px 0 44px; }
  .contact-divider { width: auto; height: 1px; background: rgba(255,255,255,0.07); }
  .contact-right { padding: 44px 0 56px; align-items: flex-start; }
  .foot-main     { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .message-band {
    background:
      linear-gradient(rgba(239,232,223,0.68), rgba(245,239,231,0.72)),
      url('../img/leaf.webp') center center / cover no-repeat;
  }
}
@media (max-width: 620px) {
  body.page-index .header-inner { padding-left: 20px; padding-right: 20px; }
  body.page-index .logo img { height: 52px; }
  .hero-shell { padding-top: 108px; padding-bottom: 64px; }
  .hero-slide { background-attachment: scroll; }
  .hero-dots  { bottom: 18px; }
  .hero-copy  { max-width: 100%; }
  .hero-copy::before { left: -18px; top: 46%; width: calc(100% + 36px); height: 220px; }
  .hero-headline { font-size: 34px; line-height: 1.04; margin-bottom: 18px; }
  .hero-subline  { font-size: 15px; max-width: 100%; }
  .business-thumb { height: 190px; }
  .bc-name { font-size: 30px; }
  .contact-left  { padding: 48px 0 36px; }
  .contact-right { padding: 36px 0 48px; }
  .btn-primary           { width: 100%; justify-content: center; }
  .btn-secondary-outline { width: 100%; justify-content: center; }
  .foot-main { grid-template-columns: 1fr; }
}
