/* ============================================
   Kona Property Preservation - Modern Website
   Brand: Dark Blue #0f1729 / #1e3a5f | Orange #e85d04 / #f97316
   ============================================ */

:root {
  /* Brand */
  --navy-950: #0a0f1a;
  --navy-900: #0f1729;
  --navy-800: #1e3a5f;
  --navy-700: #2d4a73;
  --navy-600: #3d5a87;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-300: #fdba74;
  /* Neutrals */
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  /* Layout */
  --container: min(1200px, 92vw);
  --header-h: 80px;
  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.5s;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy-950);
  color: var(--gray-200);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ========== Cursor glow (optional enhancement) ========== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ========== Header & Nav ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.header.scrolled {
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.25s, box-shadow 0.25s;
}

.nav__logo:hover {
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.nav__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-300);
  transition: color 0.25s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-500);
  transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange-500);
  color: var(--white);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  transition: background 0.25s, transform 0.2s;
}

.nav__cta:hover {
  background: var(--orange-400);
  transform: scale(1.02);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.3s var(--ease-out-expo);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--orange-500);
  color: var(--white);
  border-color: var(--orange-500);
}

.btn--primary:hover {
  background: var(--orange-400);
  border-color: var(--orange-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn--light {
  background: var(--white);
  color: var(--navy-900);
}

.btn--light:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.2);
}

.btn--sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249, 115, 22, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(30, 58, 95, 0.6), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(249, 115, 22, 0.08), transparent);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.hero__floating {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: float 12s ease-in-out infinite;
}

.hero__floating--1 {
  width: 300px;
  height: 300px;
  background: var(--orange-500);
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.hero__floating--2 {
  width: 200px;
  height: 200px;
  background: var(--navy-700);
  bottom: 20%;
  left: 5%;
  animation-delay: -4s;
}

.hero__floating--3 {
  width: 150px;
  height: 150px;
  background: var(--orange-400);
  top: 60%;
  right: 25%;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--orange-300);
  background: rgba(249, 115, 22, 0.12);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--white);
}

.hero__title-accent {
  color: var(--orange-400);
  display: inline-block;
  position: relative;
}

.hero__title-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--orange-500), transparent);
  opacity: 0.4;
  border-radius: 4px;
  z-index: -1;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray-400);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  gap: 3rem;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--orange-500), transparent);
  border-radius: 2px;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Animations on load */
.animate-fade-up {
  opacity: 0;
  transform: translateY(28px);
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Section common ========== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section__badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.text-accent {
  color: var(--orange-400);
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ========== Services ========== */
.services {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-950) 100%);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(30, 58, 95, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), border 0.4s, background 0.4s, box-shadow 0.4s;
  transition-delay: calc(0.06s * var(--i, 0));
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}

.service-card:hover {
  background: rgba(30, 58, 95, 0.55);
  border-color: rgba(249, 115, 22, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition-delay: 0s;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card--wide {
  grid-column: 1 / -1;
}

.service-card--wide .service-card__icon {
  margin-bottom: 1.25rem;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange-400);
  font-size: 1.5rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}

.service-card:hover .service-card__icon {
  background: var(--orange-500);
  color: var(--white);
  transform: scale(1.05);
}

.service-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* Reveal on scroll */
.service-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

.service-card:not(.reveal) {
  opacity: 0;
  transform: translateY(30px);
}

.service-card.reveal {
  transition-delay: calc(0.06s * var(--i, 0));
}

.service-card[data-service="1"] { --i: 0; }
.service-card[data-service="2"] { --i: 1; }
.service-card[data-service="3"] { --i: 2; }
.service-card[data-service="4"] { --i: 3; }
.service-card[data-service="5"] { --i: 4; }
.service-card[data-service="6"] { --i: 5; }
.service-card[data-service="7"] { --i: 6; }

/* ========== About ========== */
.about {
  padding: 6rem 0;
  background: var(--navy-900);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__text {
  font-size: 1.05rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--gray-300);
}

.about__list i {
  color: var(--orange-500);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about__visual {
  position: relative;
  height: 320px;
}

.about__card {
  position: absolute;
  background: rgba(30, 58, 95, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo), border 0.4s, background 0.4s, box-shadow 0.4s;
}

.about__card i {
  font-size: 1.5rem;
  color: var(--orange-400);
}

.about__card--1 {
  top: 0;
  left: 0;
}

.about__card--2 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about__card--3 {
  bottom: 0;
  right: 0;
}

.about__card.reveal {
  opacity: 1;
  transform: translate(0, 0);
}

.about__card--2.reveal {
  transform: translate(-50%, -50%);
}

.about__card:not(.reveal) {
  opacity: 0;
}

.about__card--1:not(.reveal) {
  transform: translate(-20px, -20px);
}

.about__card--2:not(.reveal) {
  transform: translate(-50%, -50%) scale(0.9);
}

.about__card--3:not(.reveal) {
  transform: translate(20px, 20px);
}

.about__card:hover {
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.about__card--2:hover {
  transform: translate(-50%, calc(-50% - 4px));
}

/* ========== CTA Strip ========== */
.cta-strip {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-strip__content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-strip__content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-strip__content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

/* ========== Contact ========== */
.contact {
  padding: 6rem 0;
  background: var(--navy-950);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(30, 58, 95, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.3s;
}

a.contact__item:hover {
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(30, 58, 95, 0.5);
}

.contact__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange-400);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact__label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact__value {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
}

.contact__map-placeholder {
  background: rgba(30, 58, 95, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.contact__map-placeholder i {
  font-size: 3rem;
  color: var(--orange-400);
  opacity: 0.8;
}

.contact__map-placeholder p {
  color: var(--gray-400);
}

/* ========== Footer ========== */
.footer {
  background: var(--navy-900);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__top {
  text-align: center;
  margin-bottom: 2rem;
}

.footer__logo {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
  transition: background 0.25s, box-shadow 0.25s;
}

.footer__logo:hover {
  background: var(--white);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.footer__logo img {
  height: 48px;
  margin: 0;
  display: block;
}

.footer__tagline {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer__links a {
  color: var(--gray-400);
  font-weight: 500;
  transition: color 0.25s;
}

.footer__links a:hover {
  color: var(--orange-400);
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__bottom p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__visual {
    height: 240px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: var(--header-h);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-h));
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    transition: right 0.4s var(--ease-out-expo);
  }

  .nav__menu.open {
    right: 0;
  }

  .nav__menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__menu .nav__link {
    display: block;
    padding: 1rem 0;
  }

  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__stats {
    gap: 2rem;
  }

  .hero__scroll {
    display: none;
  }


  .about__visual {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .about__card {
    position: static;
    transform: none !important;
  }

  .about__card--2 {
    transform: none !important;
  }

  .about__card--2.reveal {
    transform: none !important;
  }

  .about__card--2:hover {
    transform: translateY(-4px) !important;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 70px;
  }

  .nav__logo {
    padding: 0.4rem 0.65rem;
  }

  .nav__logo-img {
    height: 36px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }
}
