/*
Theme Name:  Keiki Aloha
Theme URI:   https://keikialohatherapy.com
Author:      Keiki Aloha Therapy, LLC
Description: Custom theme for Keiki Aloha Therapy — Hawaiian-inspired, blue-toned pediatric OT practice.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: keiki-aloha
Tags:        custom-colors, custom-logo, full-width-template, responsive-layout
*/

/* ═══════════════════════════════════════
   VARIABLES
═══════════════════════════════════════ */
:root {
  --ocean-deep:  #0d3b5e;
  --ocean-mid:   #1a6b9e;
  --ocean-light: #4fa8d5;
  --seafoam:     #a8dde9;
  --sand:        #f5ede0;
  --warm-white:  #fdf9f4;
  --coral-soft:  #e8896a;
  --gold-accent: #c9a84c;
  --text-dark:   #1c2b3a;
  --text-mid:    #4a6275;
  --text-light:  #8da5b8;

  --radius-sm:   0.9rem;
  --radius-md:   1.3rem;
  --radius-lg:   1.8rem;
  --transition:  0.25s ease;
  --max-width:   1200px;
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
  color: var(--ocean-deep);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-mid);
}

em { font-style: italic; }

/* ═══════════════════════════════════════
   UTILITY
═══════════════════════════════════════ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wave-divider { display: block; width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; }

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocean-light);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.section-label::before {
  content: '';
  width: 1.3rem; height: 1px;
  background: var(--ocean-light);
  display: block;
  flex-shrink: 0;
}
.section-label--light { color: var(--seafoam); }
.section-label--light::before { background: var(--seafoam); }

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--ocean-deep);
  margin-bottom: 2.5rem;
  line-height: 1.2;
}
.section-heading--light { color: white; }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center;
}

.btn-primary {
  background: white;
  color: var(--ocean-deep);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

.btn-primary--dark {
  background: var(--ocean-mid);
  color: white;
  box-shadow: 0 4px 20px rgba(26,107,158,0.3);
}
.btn-primary--dark:hover { background: var(--ocean-deep); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(253,249,244,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(79,168,213,0.15);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(13,59,94,0.08);
}

.site-logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.3rem;
  color: var(--ocean-deep);
  text-decoration: none;
}
.site-logo span { color: var(--ocean-light); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color var(--transition);
}
.nav-menu a:hover,
.nav-menu a.current { color: var(--ocean-mid); }

.nav-menu .btn-nav {
  background: var(--ocean-mid);
  color: white;
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background var(--transition);
}
.nav-menu .btn-nav:hover { background: var(--ocean-deep); color: white; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ocean-deep);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

.btn-mobile-book {
  display: none;
  background: var(--ocean-mid);
  color: white;
  padding: 0.6rem 1.1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ocean-deep) 0%, var(--ocean-mid) 50%, var(--ocean-light) 100%);
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(168,221,233,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(13,59,94,0.4) 0%, transparent 50%);
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  animation: float 8s ease-in-out infinite;
}
.hero-shape-1 { width: 400px; height: 400px; background: white; top: -80px; right: -80px; }
.hero-shape-2 { width: 250px; height: 250px; background: var(--seafoam); bottom: 80px; left: -40px; animation-delay: 3s; }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(4deg); }
}

.hero-grid {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-width); margin: 0 auto;
  padding: 6rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--seafoam);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.hero-eyebrow::before { content: ''; width: 1.8rem; height: 1px; background: var(--seafoam); display: block; flex-shrink: 0; }

.hero-title { color: white; margin-bottom: 1.2rem; }
.hero-title em { font-style: italic; color: var(--seafoam); }

.hero-desc {
  font-size: 1rem; line-height: 1.8;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem; font-weight: 300;
}

.hero-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem; color: white;
}
.hero-card-icon {
  width: 3rem; height: 3rem;
  background: rgba(255,255,255,0.15); border-radius: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.2rem;
}
.hero-card h3 { color: white; font-size: 1.4rem; margin-bottom: 0.7rem; }
.hero-card p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.75); margin-bottom: 1.2rem; }
.hero-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hero-tag {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white; font-size: 0.72rem;
  padding: 0.28rem 0.7rem; border-radius: 100px;
}

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; }

/* Hero animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow  { animation: fadeUp 0.8s ease forwards; }
.hero-title    { animation: fadeUp 0.8s ease 0.15s forwards; opacity: 0; }
.hero-desc     { animation: fadeUp 0.8s ease 0.3s forwards; opacity: 0; }
.hero-buttons  { animation: fadeUp 0.8s ease 0.42s forwards; opacity: 0; }
.hero-card     { animation: fadeUp 0.8s ease 0.22s forwards; opacity: 0; }

/* ═══════════════════════════════════════
   INTRO STRIP
═══════════════════════════════════════ */
.intro-strip {
  background: var(--sand);
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.intro-strip h2 {
  max-width: 650px; margin: 0 auto 1.2rem;
}
.intro-strip h2 em { color: var(--ocean-mid); }
.intro-strip p { max-width: 520px; margin: 0 auto; }

/* ═══════════════════════════════════════
   SERVICES
═══════════════════════════════════════ */
.services-section {
  padding: 5rem 1.5rem;
}
.services-section .container { max-width: var(--max-width); margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.service-card {
  background: var(--warm-white);
  border: 1px solid rgba(79,168,213,0.15);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ocean-mid), var(--seafoam));
  opacity: 0; transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(26,107,158,0.1);
  border-color: rgba(79,168,213,0.3);
}
.service-card:hover::before { opacity: 1; }

.service-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.service-card h3 { font-size: 1.3rem; color: var(--ocean-deep); margin-bottom: 0.6rem; }
.service-card p { font-size: 0.87rem; }

/* ═══════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════ */
.testimonials-section {
  padding: 5rem 1.5rem;
  background: var(--sand);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border: 1px solid rgba(79,168,213,0.1);
}
.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; color: var(--seafoam);
  line-height: 1; margin-bottom: 0.4rem;
}
.testimonial-card p { font-style: italic; margin-bottom: 1.2rem; font-size: 0.88rem; }
.testimonial-author { font-size: 0.8rem; font-weight: 500; color: var(--ocean-deep); }
.testimonial-role { font-size: 0.72rem; color: var(--text-light); }

/* ═══════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */
.cta-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, var(--ocean-mid) 0%, var(--ocean-deep) 100%);
  text-align: center;
}
.cta-section h2 { color: white; margin-bottom: 0.9rem; }
.cta-section p  { color: rgba(255,255,255,0.75); max-width: 460px; margin: 0 auto 2rem; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: var(--text-dark);
  padding: 3rem 1.5rem;
  text-align: center;
}
.footer-logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.4rem; color: var(--seafoam); margin-bottom: 0.6rem;
}
.footer-links {
  display: flex; justify-content: center; gap: 1.5rem;
  margin-bottom: 1rem;
}
.footer-links a {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--seafoam); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ═══════════════════════════════════════
   SINGLE POST / PAGE
═══════════════════════════════════════ */
.entry-content {
  max-width: 720px; margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}
.entry-content h1,
.entry-content h2,
.entry-content h3 { margin-bottom: 1rem; margin-top: 2rem; }
.entry-content p   { margin-bottom: 1.2rem; }
.entry-content ul,
.entry-content ol  { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.entry-content li  { margin-bottom: 0.4rem; font-size: 0.95rem; color: var(--text-mid); }
.entry-content a   { color: var(--ocean-mid); text-decoration: underline; }

/* ═══════════════════════════════════════
   WORDPRESS CORE (alignments, blocks)
═══════════════════════════════════════ */
.wp-block-image img { border-radius: var(--radius-md); }
.wp-block-button__link {
  background: var(--ocean-mid) !important;
  color: white !important;
  border-radius: 100px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.9rem !important;
  padding: 0.85rem 1.8rem !important;
  transition: background var(--transition) !important;
}
.wp-block-button__link:hover { background: var(--ocean-deep) !important; }

.alignwide  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { max-width: 100%; margin-left: calc(-1.5rem); margin-right: calc(-1.5rem); }

/* ═══════════════════════════════════════
   MOBILE  ≤ 768px
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .btn-mobile-book { display: inline-block; }

  /* Mobile nav drawer (toggled via JS) */
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: rgba(253,249,244,0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(79,168,213,0.15);
    z-index: 99;
  }
  .nav-menu.open a { font-size: 1rem; padding: 0.4rem 0; }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 5.5rem 1.25rem 4rem;
    gap: 0;
  }
  .hero-card { display: none; }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; padding: 1rem 1.5rem; font-size: 0.95rem; }

  .intro-strip { padding: 3rem 1.25rem; }

  .services-section { padding: 3rem 1.25rem; }
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { padding: 1.5rem 1.3rem; }
  .section-heading { margin-bottom: 1.8rem; }

  .testimonials-section { padding: 3rem 1.25rem; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 1.8rem; }

  .cta-section { padding: 3.5rem 1.25rem; }
  .cta-section .btn { width: 100%; max-width: 300px; }

  .site-footer { padding: 2rem 1.25rem; }
}

/* TABLET  769–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-header { padding: 1rem 2rem; }
  .hero-grid { padding: 6rem 2rem 4rem; gap: 2.5rem; }
  .services-section { padding: 4rem 2rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-section { padding: 4rem 2rem; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
