/* ============================================
   Pool Planet - Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  --navy: #0A2A5E;
  --deep-blue: #0D3B7A;
  --sky-blue: #5CADE2;
  --light-blue: #7EC8E3;
  --white: #FFFFFF;
  --light-gray: #F5F7FA;
  --dark-text: #1A1A2E;
  --medium-gray: #6B7280;
  --border-gray: #E5E7EB;

  --font-heading: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(10, 42, 94, 0.06);
  --shadow-md: 0 4px 20px rgba(10, 42, 94, 0.08);
  --shadow-lg: 0 8px 40px rgba(10, 42, 94, 0.12);

  --transition: 0.3s ease;
  --header-height: 80px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--sky-blue);
  outline-offset: 3px;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Helpers --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.section-title--light {
  color: var(--white);
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--sky-blue);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-divider--light {
  background: var(--light-blue);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--medium-gray);
}

.section-subtitle--light {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--sky-blue);
  color: var(--white);
  border-color: var(--sky-blue);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #4a9bd0;
  border-color: #4a9bd0;
  box-shadow: 0 4px 16px rgba(92, 173, 226, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--white);
  color: var(--navy);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-light:hover,
.btn--outline-light:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo img {
  height: 44px;
  width: auto;
}

.header__logo-dark {
  display: none;
}

.header.scrolled .header__logo-light,
.header__logo-light {
  display: block;
}

.header.scrolled .header__logo-dark {
  display: none;
}

.nav__list {
  display: flex;
  gap: 8px;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.header__cta {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger__line {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open .hamburger__line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger__line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.mobile-nav__link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.mobile-nav__link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav__cta {
  font-size: 1.1rem;
  padding: 16px 48px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #061A3E 0%, var(--navy) 30%, var(--deep-blue) 70%, #0E4690 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(92, 173, 226, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(126, 200, 227, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(92, 173, 226, 0.05) 0%, transparent 70%);
  animation: waterShimmer 8s ease-in-out infinite alternate;
}

@keyframes waterShimmer {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 140px;
}

.hero__logo {
  margin: 0 auto 32px;
  max-width: 380px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.hero__wave svg {
  width: 100%;
  height: 80px;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 80px 0 100px;
  background: var(--light-gray);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  color: var(--sky-blue);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card__subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky-blue);
  margin-bottom: 16px;
}

.service-card__text {
  font-size: 0.95rem;
  color: var(--medium-gray);
  line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
}

.about__wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.about__wave-top svg {
  width: 100%;
  height: 80px;
}

.about__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.about__text .section-title {
  text-align: left;
}

.about__text .section-divider {
  margin-left: 0;
}

.about__description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.stat {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sky-blue);
}

.stat__plus {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sky-blue);
}

.stat__label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
  padding: 80px 0 100px;
  background: var(--white);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-us__item {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.why-us__item:hover {
  background: var(--light-gray);
}

.why-us__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--sky-blue);
}

.why-us__icon svg {
  width: 100%;
  height: 100%;
}

.why-us__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.why-us__text {
  font-size: 0.9rem;
  color: var(--medium-gray);
  line-height: 1.6;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
}

.contact__wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.contact__wave-top svg {
  width: 100%;
  height: 80px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark-text);
  background: var(--light-gray);
  border: 2px solid var(--border-gray);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
  color: var(--medium-gray);
}

.form-input:focus {
  outline: none;
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 3px rgba(92, 173, 226, 0.15);
}

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

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 16px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--sky-blue);
  background: rgba(92, 173, 226, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.contact-info__icon svg {
  width: 100%;
  height: 100%;
}

.contact-info__item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.contact-info__link {
  font-size: 1.05rem;
  color: var(--white);
  transition: color var(--transition);
}

.contact-info__link:hover {
  color: var(--sky-blue);
}

.contact-info__text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
}

.contact-info__cta {
  margin-top: 12px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #061A3E;
  padding: 64px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  margin-bottom: 12px;
}

.footer__tagline {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--sky-blue);
}

.footer__text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .nav,
  .header__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .container {
    padding: 0 16px;
  }

  .hero__content {
    padding: 100px 16px 120px;
  }

  .hero__logo {
    max-width: 280px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .services {
    padding: 60px 0 80px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .about {
    padding: 80px 0 60px;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .why-us {
    padding: 60px 0 80px;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .contact {
    padding: 80px 0 60px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .section-header {
    margin-bottom: 40px;
  }
}
