/* ============================================
   Kona Preservation Properties - Modern 3D UI
   ============================================ */

:root {
  /* Logo-based palette: deep teal, medium teal, vibrant green */
  --teal-dark: #285b7a;
  --teal: #3c7b9f;
  --teal-light: #5a9bc4;
  --green: #6da64a;
  --green-light: #85c45a;
  --navy: #0d1f2a;
  --navy-mid: #152f3f;
  --navy-light: #2d5269;
  --slate: #7a9cad;
  --off-white: #e8eef2;
  --white: #f5f9fc;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-fast: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--navy);
  color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle noise overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(13, 31, 42, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: block;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(40, 91, 122, 0.15);
  border: 1px solid rgba(60, 123, 159, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo-link:hover .logo-wrap {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.logo {
  height: 10vh;
  width: auto;
  max-width: 220px;
  max-height: 80px;
  display: block;
  object-fit: contain;
  transition: transform var(--transition);
}

.logo-link:hover .logo {
  transform: scale(1.03);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--off-white);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-list a {
  color: var(--off-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width var(--transition);
}

.nav-list a:hover::after {
  width: 100%;
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 12s ease-in-out infinite;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--teal);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--navy-light);
  bottom: 10%;
  left: -80px;
  animation-delay: -4s;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--teal-dark);
  top: 50%;
  left: 30%;
  animation-delay: -8s;
}

.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 80% 60% at 50% 50%, black, transparent);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title-line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s ease-out forwards;
}

.hero-title-line:nth-child(1) { animation-delay: 0.2s; }
.hero-title-line:nth-child(2) { animation-delay: 0.4s; }

.hero-title-line.accent {
  color: var(--green);
  text-shadow: 0 0 60px rgba(109, 166, 74, 0.35);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border: none;
  box-shadow: 0 10px 40px rgba(109, 166, 74, 0.35);
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(109, 166, 74, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--off-white);
  border: 2px solid var(--navy-light);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-light);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  perspective: 1000px;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 27, 42, 0.85) 100%);
  pointer-events: none;
}

.hero-card-3d {
  width: 100%;
  max-width: 320px;
  padding: 2rem;
  background: linear-gradient(145deg, rgba(21, 47, 63, 0.9), rgba(13, 31, 42, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.03);
  transform-style: preserve-3d;
  transition: transform var(--transition);
  will-change: transform;
}

.hero-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: translateZ(20px);
}

.hero-card-icon {
  width: 64px;
  height: 64px;
  color: var(--teal);
}

.hero-card-icon svg {
  width: 100%;
  height: 100%;
}

.hero-card-inner span {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--off-white);
}

/* ========== Features ========== */
.features {
  padding: 5rem 0;
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: linear-gradient(160deg, rgba(21, 47, 63, 0.6), rgba(13, 31, 42, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transform-style: preserve-3d;
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform;
}

.feature-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(109, 166, 74, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--slate);
}

/* ========== Services ========== */
.services {
  padding: 5rem 0;
  width: 100%;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.section-subtitle {
  text-align: center;
  color: var(--slate);
  max-width: 640px;
  margin: 0 auto 3rem;
}

.services-banner {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.services-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3/1;
  min-height: 200px;
}

.services-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 27, 42, 0.75) 0%, transparent 50%, rgba(13, 27, 42, 0.4) 100%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform var(--transition);
  will-change: transform;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-card-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 31, 42, 0.3) 0%, rgba(21, 47, 63, 0.92) 35%, rgba(13, 31, 42, 0.98) 100%);
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: rgba(109, 166, 74, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.service-card:hover .service-card-bg {
  background: linear-gradient(165deg, rgba(21, 47, 63, 0.95), rgba(13, 31, 42, 0.98));
}

.service-card-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem 2rem 2rem;
  padding-top: 8.5rem;
}

.service-icon {
  position: relative;
  width: 56px;
  height: 56px;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  position: relative;
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.service-card p {
  position: relative;
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.service-details {
  position: relative;
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 0;
  font-size: 0.85rem;
  color: var(--slate);
}

.service-details li {
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
  position: relative;
}

.service-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.service-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: gap var(--transition), color var(--transition);
}

.service-link:hover {
  gap: 0.75rem;
  color: var(--green-light);
}

/* ========== About ========== */
.about {
  padding: 5rem 0;
  width: 100%;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2.5rem 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(60, 123, 159, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.about-content .section-title {
  text-align: left;
}

.about-text {
  color: var(--slate);
  margin: 1rem 0 1.5rem;
  font-size: 1.05rem;
}

.about-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.about-card {
  position: relative;
  width: 100%;
  max-width: 280px;
  padding: 3rem;
  background: linear-gradient(145deg, rgba(60, 123, 159, 0.2), rgba(40, 91, 122, 0.15));
  border: 1px solid rgba(60, 123, 159, 0.35);
  border-radius: var(--radius-lg);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform var(--transition);
  overflow: hidden;
}

.about-card-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transform: rotate(25deg);
  animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

.about-stat {
  position: relative;
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.about-stat-label {
  position: relative;
  font-size: 0.95rem;
  color: var(--slate);
}

/* ========== Contact ========== */
.contact {
  padding: 5rem 0;
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  padding: 2rem;
  background: linear-gradient(160deg, rgba(21, 47, 63, 0.6), rgba(13, 31, 42, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  text-align: center;
  transform-style: preserve-3d;
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin: 0 auto 1rem;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.contact-card p {
  color: var(--slate);
  font-size: 0.95rem;
}

.contact-card a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-card a:hover {
  color: var(--green-light);
}

/* ========== Gallery ========== */
.gallery {
  padding: 5rem 0;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 27, 42, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item-overlay span {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  transform: translateY(10px);
  transition: transform var(--transition);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-item-overlay span {
  transform: translateY(0);
}

/* ========== Footer ========== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  text-align: center;
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.footer-logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

.footer-address {
  color: var(--slate);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-copy {
  color: var(--slate);
  font-size: 0.85rem;
}

/* ========== Apply Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, var(--navy-mid), var(--navy));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 2rem;
  transform: scale(0.96);
  transition: transform var(--transition);
}

.modal-overlay.is-open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 10px;
  color: var(--off-white);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.25rem;
  padding-right: 2.5rem;
}

.modal-subtitle {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.apply-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--off-white);
  margin-bottom: 0.35rem;
}

.apply-form .required {
  color: var(--green);
}

.apply-form input,
.apply-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.apply-form input::placeholder {
  color: var(--slate);
}

.apply-form input:focus,
.apply-form select:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.08);
}

.apply-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23778da9' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Dropdown options: always dark text on light background so they're visible */
.apply-form select option {
  background: #ffffff;
  color: #0d1b2a;
}

.apply-form .btn-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-message {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ========== Animations (scroll-in) ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-content .section-title {
    text-align: center;
  }

  .about-image-wrap {
    max-width: 100%;
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-banner img {
    aspect-ratio: 2/1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--navy-mid);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-list a {
    display: block;
    padding: 1rem 0;
  }

  .hero {
    padding: 5rem 1rem 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card-3d {
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-image-wrap {
    max-width: 100%;
  }

  .service-card-content {
    padding-top: 7.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo {
    height: 38px;
    max-height: 38px;
  }

  .logo-wrap {
    padding: 0.4rem 0.6rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

/* ========== Service detail pages ========== */
.page-hero {
  padding: 7rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 31, 42, 0.92) 0%, rgba(13, 31, 42, 0.85) 100%);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 47, 63, 0.5) 0%, transparent 60%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--slate);
}

.breadcrumb a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--green-light);
}

.breadcrumb span {
  color: var(--slate);
}

.page-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--slate);
  max-width: 560px;
  margin: 0 auto;
}

.service-page-content {
  padding: 2rem 0 4rem;
}

.service-page-content .container {
  max-width: 800px;
}

.service-page-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 2rem 0 0.75rem;
}

.service-page-content h2:first-child {
  margin-top: 0;
}

.service-page-content p {
  color: var(--slate);
  margin-bottom: 1rem;
}

.service-page-content ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem;
}

.service-page-content ul li {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--slate);
  position: relative;
}

.service-page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.service-page-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(160deg, rgba(21, 47, 63, 0.8), rgba(13, 31, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  text-align: center;
}

.service-page-cta .btn {
  margin-top: 0.5rem;
}
