/* =========================================================
   ROOT & RESET
========================================================= */

:root {
  --orange: #f59e0b;
  --orange-dark: #d97706;
  --orange-soft: #fff3d7;
  --cream: #fffaf2;
  --ink: #1f2937;
  --ink-dark: #111827;
  --muted: #667085;
  --border: #ece5da;
  --white: #fff;
  --dark-secondary: #15191e;
  --shadow-sm: 0 10px 25px rgba(31, 41, 55, 0.07);
  --shadow-md: 0 18px 45px rgba(31, 41, 55, 0.12);
  --shell: min(1380px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
summary {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.nav-shell,
.section-shell,
.footer-shell {
  width: var(--shell);
  margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(236, 229, 218, 0.85);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: 108px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  color: #59616c;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-dropdown[open] > summary {
  color: var(--ink-dark);
  background: #f7f4ef;
}

.nav-link.active {
  color: var(--orange-dark);
  background: var(--orange-soft);
}


/* =========================================================
   BBS DROPDOWN
========================================================= */

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.nav-dropdown[open] > summary i {
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 250px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transform: rotate(45deg);
}

.dropdown-panel a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.dropdown-panel a:hover {
  background: var(--cream);
}

.dropdown-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--orange-dark);
  background: var(--orange-soft);
}

.dropdown-panel strong,
.dropdown-panel small {
  display: block;
}

.dropdown-panel strong {
  margin-bottom: 2px;
  color: var(--ink-dark);
  font-size: 13px;
}

.dropdown-panel small {
  color: var(--muted);
  font-size: 11px;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  font-size: 22px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  min-height: 450px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 76% 30%,
      rgba(245, 158, 11, 0.14),
      transparent 24%
    ),
    linear-gradient(
      90deg,
      rgba(24, 28, 33, 0.98) 0%,
      rgba(24, 28, 33, 0.91) 40%,
      rgba(24, 28, 33, 0.58) 67%,
      rgba(24, 28, 33, 0.26) 100%
    ),
    url("/contractor/assets/images/c.2.png") center 38% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -200px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.14);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin-inline: auto;
  padding: 58px 0 68px;
  display: flex;
  align-items: center;
}

.hero-copy,
.hero h1 {
  max-width: 760px;
}

.eyebrow {
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffe0a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.14);
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(36px, 3.7vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero h1 span {
  display: block;
  color: var(--orange);
}

.hero-description {
  max-width: 640px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* =========================================================
   BUTTON
========================================================= */

.btn {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn i {
  font-size: 14px;
}

.btn-primary {
  color: var(--ink-dark);
  background: var(--orange);
}

.btn-primary:hover {
  background: #ffae1a;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.23);
}


/* =========================================================
   SCROLL HINT
========================================================= */

.scroll-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.scroll-hint i {
  color: var(--orange);
}


/* =========================================================
   MODULES
========================================================= */

.features-section {
  padding: 38px 0 48px;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(245, 158, 11, 0.08),
      transparent 22%
    ),
    var(--cream);
}

.section-heading {
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
  text-align: center;
}

.section-heading > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink-dark);
  font-size: clamp(30px, 2.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}


/* =========================================================
   MODULE CARDS
========================================================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 235px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: var(--shadow-md);
}

.feature-top {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.feature-number {
  color: #c9c2b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--orange-dark);
  background: var(--orange-soft);
  font-size: 20px;
  transition: 0.25s ease;
}

.feature-card:hover .feature-icon {
  color: var(--white);
  background: var(--orange);
  transform: rotate(-4deg) scale(1.05);
}

.feature-card h3 {
  margin: 0 0 9px;
  color: var(--ink-dark);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.feature-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--dark-secondary);
}

.footer-shell {
  padding: 13px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  text-align: center;
}

.footer-copy p {
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1180px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 220px;
  }
}


/* =========================================================
   RESPONSIVE — NAVIGATION
========================================================= */

@media (max-width: 900px) {
  .nav-shell {
    width: min(calc(100% - 32px), 1380px);
    min-height: 72px;
  }

  .brand-logo {
    width: 96px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-md);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);

    transition:
      opacity 0.12s ease,
      transform 0.12s ease,
      visibility 0s linear 0.12s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .site-header {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-link,
  .nav-dropdown {
    width: 100%;
  }

  .nav-link {
    justify-content: space-between;
  }

  .dropdown-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
    border: 0;
    background: var(--cream);
    box-shadow: none;
  }

  .dropdown-panel::before {
    display: none;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(
        180deg,
        rgba(24, 28, 33, 0.9),
        rgba(24, 28, 33, 0.78)
      ),
      url("/contractor/assets/images/c.2.png") center / cover no-repeat;
  }

  .hero-content {
    width: min(calc(100% - 36px), 1380px);
    padding: 52px 0 58px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .scroll-hint {
    display: none;
  }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 768px) {
  .nav-shell,
  .section-shell,
  .footer-shell {
    width: min(calc(100% - 28px), 1380px);
  }

  .hero-content {
    width: min(calc(100% - 28px), 1380px);
    padding: 42px 0 45px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    font-size: clamp(30px, 8.5vw, 40px);
    line-height: 1.18;
  }

  .hero-description {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.7;
  }

  .hero-actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .btn {
    width: 100%;
    min-height: 45px;
  }

  .features-section {
    padding: 28px 0 38px;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .section-kicker {
    margin-bottom: 4px;
    font-size: 9px;
  }

  .section-heading h2 {
    font-size: 25px;
    line-height: 1.25;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .feature-card {
    min-height: auto;
    padding: 18px;
    border-radius: 17px;
  }

  .feature-top {
    margin-bottom: 14px;
  }

  .feature-number {
    font-size: 9px;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 19px;
  }

  .feature-card h3 {
    margin-bottom: 6px;
    font-size: 17px;
    line-height: 1.35;
  }

  .feature-card > p {
    font-size: 11px;
    line-height: 1.6;
  }

  .footer-shell {
    padding: 12px 0;
  }

  .footer-copy {
    width: 100%;
  }

  .footer-copy p {
    font-size: 9px;
  }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
  .nav-shell,
  .section-shell,
  .footer-shell {
    width: calc(100% - 24px);
  }

  .brand-logo {
    width: 90px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .section-heading h2 {
    font-size: 24px;
  }
}