/* Teach Your Toddler — Luxury, high-end design */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #faf8f5;
  --bg-warm: #f5f2ed;
  --surface: #ffffff;
  --text: #2c2825;
  --text-muted: #6b6560;
  --accent: #b8860b;
  --accent-light: #d4a84b;
  --accent-soft: rgba(184, 134, 11, 0.12);
  --deep: #1c1917;
  --gold: #c9a962;
  --border: rgba(44, 40, 37, 0.08);
  --shadow-soft: 0 4px 24px rgba(28, 25, 23, 0.06);
  --shadow-lift: 0 12px 40px rgba(28, 25, 23, 0.1);
  --max-width: 900px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 5rem;
  --radius: 12px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.5s;
}

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

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

html {
  font-size: 18px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Subtle gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, var(--accent-soft), transparent 50%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  pointer-events: none;
  z-index: -1;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -4rem;
  left: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--deep);
  color: var(--surface);
  text-decoration: none;
  border-radius: var(--radius);
  z-index: 100;
  transition: top 0.25s var(--ease-out);
  font-weight: 500;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ——— Header (standard bar: logo left, nav right) ——— */
header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow var(--duration) var(--ease-out);
}

header.scrolled {
  box-shadow: var(--shadow-soft);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.site-branding {
  margin: 0;
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
}

.site-logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.site-logo-img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  transition: opacity var(--duration) var(--ease-out);
}

.site-logo:hover .site-logo-img {
  opacity: 0.85;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  position: relative;
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: color var(--duration) var(--ease-out);
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.25rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease-out);
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

/* Nav toggle (hamburger) - hidden on desktop */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-toggle-icon {
  display: block;
  width: 1.35rem;
  height: 4px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--duration) var(--ease-out);
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ——— Main ——— */
main {
  flex: 1;
  width: 100%;
}

.main-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  width: 100%;
}

/* ——— Hero (full-width, proper hero section) ——— */
.hero {
  position: relative;
  text-align: center;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(28, 25, 23, 0.55);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--space-md);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-xl);
  text-align: left;
  min-height: 65vh;
}

.hero-inner .hero-image-wrap {
  flex-shrink: 0;
  height: 65vh;
  min-height: 280px;
  max-height: 520px;
}

.hero-inner .page-title,
.hero h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  flex: 1;
  margin: 0;
  min-width: 0;
}

.hero .hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 1.25rem;
  overflow: hidden;
}

.hero .hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.hero .hero-image-wrap:hover::before {
  opacity: 1;
  transform: scale(1);
}

.hero img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lift);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

/* Vertical/portrait hero image - left of text, rounded edges */
.hero .hero-image-portrait {
  width: auto;
  height: 100%;
  max-width: 380px;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.hero .hero-image-wrap:hover img {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(28, 25, 23, 0.12);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

/* ——— Reveal animations (triggered by JS) ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Initial load: fade in hero */
.hero.reveal-in .hero-image-wrap,
.hero.reveal-in h1 {
  animation: fadeInUp 0.9s var(--ease-out) forwards;
}

.hero.reveal-in h1 {
  animation-delay: 0.15s;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Content ——— */
.content {
  margin-bottom: var(--space-2xl);
}

.content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--text);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 0.5rem;
}

.content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

.content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: var(--space-lg) 0 var(--space-xs);
  color: var(--text);
  letter-spacing: 0.01em;
}

.content p {
  margin: 0 0 var(--space-md);
  color: var(--text);
  font-weight: 400;
}

.content figure {
  margin: var(--space-xl) auto;
  max-width: 100%;
  text-align: center;
}

.content figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.content figure:hover img {
  transform: scale(1.015);
  box-shadow: 0 16px 48px rgba(28, 25, 23, 0.12);
}

.content figcaption {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ——— Services ——— */
.services .service-item {
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.services .service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--accent-soft);
}

.services .service-item h3 {
  margin-top: 0;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.4rem;
}

/* ——— Gallery ——— */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.gallery figure {
  margin: 0;
  text-align: center;
}

.gallery-item {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
}

.gallery-item:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.gallery figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.gallery-item:hover img,
.gallery-item:focus img {
  transform: scale(1.05);
  box-shadow: var(--shadow-lift);
}

.gallery figcaption {
  font-size: 0.8rem;
  margin-top: var(--space-xs);
  color: var(--text-muted);
  font-style: normal;
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox.is-open .lightbox-inner {
  transform: scale(1);
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.88);
  cursor: pointer;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-out);
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  display: block;
}

.lightbox-caption {
  margin: var(--space-md) 0 0;
  padding: 0 var(--space-lg);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  max-width: 500px;
  line-height: 1.5;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}

.lightbox-close:hover {
  color: var(--accent-light);
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--accent-light);
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: -1rem;
}

.lightbox-next {
  right: -1rem;
}

@media (max-width: 640px) {
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }
  .lightbox-prev,
  .lightbox-next {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2rem;
  }
}

/* ——— Contact ——— */
.contact-info {
  background: var(--surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: var(--space-md);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.contact-info:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-lift);
}

.contact-info p {
  margin: 0 0 var(--space-sm);
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration) var(--ease-out);
}

.contact-info a:hover {
  color: var(--accent-light);
}

/* ——— Footer ——— */
footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-lg) var(--space-md);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.footer-inner p {
  margin: 0;
}

/* ——— Page title (inner pages) ——— */
.page-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 0 var(--space-xl);
  text-align: center;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* ——— Responsive: tablet and below (hamburger menu) ——— */
@media (max-width: 768px) {
  header {
    padding: 2rem 0;
    min-height: 5rem;
  }

  /* Big, bold hamburger — easy to see and tap */
  .nav-toggle {
    display: flex;
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    min-height: 3.5rem;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: var(--radius);
  }

  .nav-toggle:hover,
  .nav-toggle:focus {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .nav-toggle-icon {
    width: 1.75rem;
    height: 5px;
    border-radius: 3px;
  }

  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    height: 5px;
    border-radius: 3px;
  }

  .nav-toggle-icon::before {
    top: -8px;
  }

  .nav-toggle-icon::after {
    top: 8px;
  }

  /* Full-width mobile menu panel — thick, high-contrast, easy to read */
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--surface);
    border-bottom: 3px solid var(--accent);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s var(--ease-out), opacity 0.25s var(--ease-out);
    box-shadow: 0 12px 32px rgba(28, 25, 23, 0.15);
  }

  nav.is-open {
    max-height: 32rem;
    opacity: 1;
  }

  nav ul {
    flex-direction: column;
    padding: 1.25rem 1rem;
    gap: 0;
    list-style: none;
    margin: 0;
  }

  nav ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--border);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  nav a {
    display: block;
    padding: 1.25rem 1.5rem;
    min-height: 3.5rem;
    font-size: 1.35rem;
    font-weight: 600;
    border-radius: 0;
    line-height: 1.3;
    color: var(--text);
    -webkit-tap-highlight-color: var(--accent-soft);
  }

  nav a:hover,
  nav a:focus {
    background: var(--accent-soft);
    color: var(--accent);
  }

  nav a.active {
    background: var(--accent-soft);
    color: var(--accent);
  }

  nav a::after {
    display: none;
  }
}

/* ——— Responsive: small phones ——— */
@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  header {
    padding: 2.2rem 0;
    min-height: 5.5rem;
  }

  .header-inner {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .nav-toggle {
    right: var(--space-sm);
    width: 3.75rem;
    height: 3.75rem;
    min-width: 3.75rem;
    min-height: 3.75rem;
  }

  nav ul {
    padding: 1.5rem 1.25rem;
  }

  nav a {
    padding: 1.35rem 1.5rem;
    min-height: 3.75rem;
    font-size: 1.5rem;
  }

  .main-inner {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .site-branding {
    left: var(--space-sm);
  }

  .site-logo-img {
    height: 2.25rem;
    max-width: 160px;
  }

  .hero {
    min-height: 55vh;
    padding: 0;
  }

  .hero-inner {
    padding: var(--space-lg) var(--space-sm);
    flex-direction: column;
    text-align: center;
    min-height: 0;
    align-items: center;
  }

  .hero h1,
  .hero-inner .page-title {
    font-size: 1.5rem;
    line-height: 1.3;
    word-wrap: break-word;
  }

  .hero .hero-image-wrap {
    margin-bottom: var(--space-md);
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .hero .hero-image-portrait {
    max-width: 220px;
    height: auto;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    object-position: center;
  }

  .hero img {
    max-width: 100%;
    height: auto;
  }

  .content h2 {
    font-size: 1.5rem;
  }

  .content h3 {
    font-size: 1.2rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .gallery-item {
    min-height: 2.75rem;
  }

  .gallery figcaption {
    font-size: 0.75rem;
  }

  .services .service-item {
    padding: var(--space-md);
  }

  .contact-info {
    padding: var(--space-md);
  }

  .lightbox-inner {
    padding: var(--space-sm);
  }

  .lightbox-caption {
    font-size: 0.9rem;
    padding: 0 var(--space-sm);
  }

  .lightbox-close {
    min-width: 2.75rem;
    min-height: 2.75rem;
    top: 0.5rem;
    right: 0.5rem;
  }

  footer {
    padding: var(--space-md) var(--space-sm);
  }

  .footer-inner {
    font-size: 0.85rem;
  }
}

/* ——— Very small screens ——— */
@media (max-width: 380px) {
  .site-logo-img {
    height: 2rem;
    max-width: 140px;
  }

  .hero h1,
  .hero-inner .page-title {
    font-size: 1.35rem;
  }

  .gallery {
    gap: var(--space-xs);
  }
}
