/* ============================================
   Wolf Point Clean — Custom Styles
   Design: Scandinavian Clean | Slide From Sides
   ============================================ */

:root {
  --primary: #1A7B8A;
  --primary-dark: #155f6b;
  --primary-light: #e8f7f9;
  --secondary: #0D2136;
  --accent: #5DD8E8;
  --dark: #0D2136;
  --light: #F4FBFC;
  --text: #1E2D3D;
  --text-light: #607080;
  --radius: 12px;
}

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

html {
  scroll-behavior: auto; /* JS handles smooth scroll */
}

body {
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Page Loader ===== */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.5s ease;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(93, 216, 232, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Scroll indicator ===== */
@keyframes scrollDown {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(400%); }
}
.animate-scroll-down {
  animation: scrollDown 1.8s ease-in-out infinite;
}

/* ===== Navbar ===== */
.navbar {
  color: white;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97); /* solid fallback */
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  color: var(--secondary);
}

.navbar.scrolled .logo-text {
  color: var(--secondary) !important;
}

.navbar:not(.scrolled) .logo-text {
  color: white !important;
}

.logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

/* Nav links */
.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:hover::after {
  width: 100%;
}

.navbar:not(.scrolled) .nav-link {
  color: rgba(255,255,255,0.85);
}

.navbar:not(.scrolled) .nav-link:hover {
  color: white;
}

.navbar.scrolled .nav-link {
  color: var(--secondary);
  opacity: 0.7;
}

.navbar.scrolled .nav-link:hover {
  opacity: 1;
  color: var(--primary);
}

/* hamburger */
.navbar:not(.scrolled) #mobile-menu-btn {
  color: white;
}

.navbar.scrolled #mobile-menu-btn {
  color: var(--secondary);
}

.mobile-menu {
  background: var(--secondary);
}

.mobile-nav-link {
  display: block;
  padding: 10px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: white;
}

.nav-cta-btn {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.01em;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,123,138,0.3);
}

/* ===== Hero Section ===== */
.hero-section {
  background: var(--secondary);
  color: white;
}

.hero-bg {
  background: var(--secondary);
}

.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(26,123,138,0.2) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(93,216,232,0.08) 0%, transparent 50%);
}

.hero-bg-overlay {
  background: linear-gradient(135deg, rgba(13,33,54,0.85) 0%, rgba(13,33,54,0.4) 100%);
}

.hero-badge {
  background: rgba(93,216,232,0.12);
  border: 1px solid rgba(93,216,232,0.25);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-family: 'Sora', sans-serif;
  color: white;
}

.hero-sub {
  color: rgba(255,255,255,0.7);
}

.hero-btn-primary {
  background: var(--primary);
  color: white;
  font-family: 'Sora', sans-serif;
  box-shadow: 0 2px 8px rgba(26,123,138,0.2);
}

.hero-btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,123,138,0.35);
}

.hero-btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  font-family: 'Sora', sans-serif;
}

.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.hero-image-card {
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.hero-image-card img {
  transition: transform 0.6s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

.hero-float-badge,
.hero-float-badge-2 {
  border-radius: 16px;
  animation: float 4s ease-in-out infinite;
}

.hero-float-badge-2 {
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== Section Labels ===== */
.section-label {
  display: inline-block;
}

.section-label span {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(26,123,138,0.15);
}

.section-label-light span {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(93,216,232,0.12);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(93,216,232,0.2);
  display: inline-block;
}

/* ===== About Section ===== */
.about-image-container {
  height: 500px;
  border-radius: 20px;
}

.about-img-inner {
  transition: transform 0.6s ease;
}

.about-image-container:hover .about-img-inner {
  transform: scale(1.03);
}

/* Stats */
.stat-item {
  text-align: center;
  padding: 16px;
  border-radius: 12px;
  background: var(--light);
  border: 1px solid rgba(26,123,138,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,123,138,0.1);
}

.stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.3;
}

/* Dot grid decorative */
.dot-grid {
  background-image: radial-gradient(circle, rgba(26,123,138,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===== Services Section ===== */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.service-row.reversed {
  direction: rtl;
}

.service-row.reversed > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .service-row,
  .service-row.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.service-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  height: 360px;
  position: relative;
  box-shadow: 0 20px 60px rgba(13,33,54,0.1);
}

.service-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-image-wrap:hover img {
  transform: scale(1.05);
}

.service-number {
  font-family: 'Sora', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(26,123,138,0.08);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: -12px;
}

.service-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.service-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  background: var(--primary);
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 8px;
}

.service-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.service-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ===== Features Section ===== */
.feature-card {
  padding: 28px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(26,123,138,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26,123,138,0.1);
  border-color: rgba(26,123,138,0.15);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.25s ease;
}

.feature-card:hover .feature-icon-wrap {
  background: var(--primary);
}

.feature-card:hover .feature-icon-wrap svg {
  stroke: white !important;
}

.feature-title {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Gallery Section ===== */
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,33,54,0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  transition: all 0.3s ease;
  background: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===== CTA Banner ===== */
.cta-section {
  background: var(--secondary);
}

.cta-bg {
  background: var(--secondary);
}

.cta-overlay {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26,123,138,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(93,216,232,0.1) 0%, transparent 50%);
}

.cta-btn-primary {
  font-family: 'Sora', sans-serif;
  background: var(--accent);
  color: var(--secondary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(93,216,232,0.2);
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(93,216,232,0.35);
  background: #4dcde0;
}

.cta-btn-secondary {
  font-family: 'Sora', sans-serif;
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.cta-btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

/* ===== Contact Section ===== */
.contact-dark-card {
  background: var(--secondary);
  border-radius: 20px;
  padding: 36px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(93,216,232,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact-detail-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.contact-detail-value a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-detail-value a:hover {
  color: var(--accent);
}

/* Form */
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  background: #fafbfc;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,123,138,0.1);
  background: white;
}

.form-input::placeholder {
  color: #b0bec5;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A7B8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-submit-btn {
  background: var(--primary);
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.form-submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,123,138,0.3);
}

.form-submit-btn:focus {
  outline: 3px solid rgba(26,123,138,0.4);
  outline-offset: 2px;
}

.form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

/* Input error state */
.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

/* ===== Footer ===== */
.footer-section {
  background: var(--secondary);
}

.footer-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: white;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
  background: var(--primary);
  color: white;
}

/* ===== Floating buttons ===== */
.whatsapp-float {
  bottom: 88px;
  right: 24px;
}

.scroll-top-btn {
  bottom: 24px;
  right: 24px;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: all;
}

/* ===== GSAP Animation Initial States ===== */
/* NOTE: GSAP's from() / fromTo() handles the initial hidden state via inline styles.
   Do NOT set opacity:0 here — that would make GSAP animate from 0 → 0 (nothing visible).
   These classes are just semantic markers that JS targets. */

/* ===== Headings ===== */
h2 {
  font-family: 'Sora', sans-serif;
  color: var(--secondary);
}

h3 {
  font-family: 'Sora', sans-serif;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-image-card {
    height: 320px;
    margin-top: 0;
  }

  .hero-float-badge,
  .hero-float-badge-2 {
    display: none;
  }

  .about-image-container {
    height: 300px;
  }

  .service-image-wrap {
    height: 260px;
  }
}

@media (max-width: 640px) {
  .hero-image-card {
    height: 260px;
  }
}

/* ===== Accessibility: Focus States ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* GSAP sets inline opacity/transform — override all of them */
  [style*="opacity"],
  [style*="transform"] {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-float-badge,
  .hero-float-badge-2 {
    animation: none !important;
  }
}
