@import url('https://fonts.googleapis.com/css2?family=Meow+Script&family=Raleway:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&family=Montserrat:wght@300;400;500;600&family=Sofia&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal:    #76b3b8;
  --purple:  #76b3b8;
  --magenta: #ae40a5;
  --red:     #da4444;
  --dark:    #2a2a2a;
  --white:   #ffffff;
  --light:   #ffffff;
  --muted-reddish-pink: #C4787A; /* Muted reddish-pink */
  --light-warm-white: #FDFCEF; /* A light warm white */
}

.ej-banner-ribbon {
  display: none;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 60px; /* Adjust width as needed */
  height: 100vh;
  background-color: var(--muted-reddish-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
}

.ej-banner-logo {
  max-width: 80%;
  max-height: 80%;
  filter: brightness(0) invert(1) sepia(1) saturate(1000%) hue-rotate(15deg) brightness(200%); /* Adjust filter for light warm white */
}

body {
  cursor: url("/images/cursor-brush.png") 18 18, crosshair;
  font-family: 'Raleway', sans-serif;
  color: var(--dark);
  background: #ede8e1;
  overflow-x: hidden;
}
* { box-sizing: border-box; }

/* ── TOP UTILITY BAR ── */
.top-bar {
  background: #e8686a url('/images/topbar-banner.jpg') center / cover no-repeat;
  color: white;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 30px;
  gap: 12px;
  position: relative;
  z-index: 100;
  text-align: center;
  margin-bottom: 0;
  border: none;
}
/* top-bar scallops removed */
.nav-ribbon-scallops {
  display: block;
  width: 100%;
  height: 18px;
  background: linear-gradient(rgba(210,228,255,0.4), rgba(210,228,255,0.4)), url('images/nav-floral-bg.jpg') center top / 80% auto fixed;
  -webkit-mask-image: radial-gradient(24px 18px at 50% 0%, black 99%, transparent 100%);
  mask-image: radial-gradient(24px 18px at 50% 0%, black 99%, transparent 100%);
  -webkit-mask-size: 48px 18px;
  mask-size: 48px 18px;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  position: absolute;
  bottom: -15px;
  left: 0;
  z-index: 1; /* inside nav stacking context; dropdown is z:500 so it paints above */
  filter: drop-shadow(0 5px 7px rgba(0,0,0,0.09));
}
.top-bar-left {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.top-bar-marquee {
  display: inline;
  white-space: nowrap;
  animation: none;
}
.top-bar-marquee > span:not(:first-child) { display: none; }
.top-bar-marquee > span { padding: 0; }
.top-bar-marquee:hover { animation-play-state: paused; }
.top-bar-marquee a { pointer-events: auto; }
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}
.top-bar-right a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.top-bar-right a:hover { opacity: 1; text-decoration: underline; }
.top-bar-divider { opacity: 0.4; }

@keyframes marquee {
  0%   { transform: translateX(60vw); }
  100% { transform: translateX(-100%); }
}

/* ── TWO-TIER NAV ── */
/* Tier 1: logo row */
/* ── UNIFIED SINGLE-BAR NAV ── */
.nav-logo-row { display: none; } /* merged into nav-links-row */

.nav-links-row {
  background: linear-gradient(rgba(210,228,255,0.4), rgba(210,228,255,0.4)), url('images/nav-floral-bg.jpg') center top / 80% auto fixed;
  border-bottom: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 0;
  padding-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 300;
}

/* Logo above the tabs — centered */
.nav-logo-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.nav-logo-inline img, .nav-logo-inline .logo img {
  height: 135px !important;
  object-fit: contain;
  display: block;
}
/* Nav items row — full width, centered */
.nav-main-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  position: relative;
  height: 44px;
}
.nav-main-wrap > ul.nav-main {
  flex: 1;
  justify-content: center;
}
/* Search box — sits right of the nav tabs row */
.nav-search {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-left: 0;
  padding-left: 4px;
}
.nav-search input {
  display: none;
}
.nav-search button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  color: var(--teal);
  padding: 0 8px;
  line-height: 1;
  height: 44px;
  display: flex;
  align-items: center;
}
.nav-search button:hover { color: var(--magenta); }
/* Cart icon */
.nav-cart {
  font-size: 2rem;
  cursor: pointer;
  color: var(--teal);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 20px 0 8px;
  height: 44px;
  transition: color 0.2s;
  text-decoration: none;
  position: relative;
}
.nav-cart:hover { color: var(--magenta); }
/* Hamburger (mobile only) */
.nav-hamburger-wrap {
  display: none;
  flex-shrink: 0;
  margin-left: 8px;
}
/* Old .nav-links-row a — kept for any stray links outside .nav-main */
.nav-links-row > a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.9rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links-row > a:hover { color: var(--teal); }

/* legacy nav — hidden (other pages still use it, keep it working) */
nav {
  background: var(--white);
  border-bottom: 3px solid var(--teal);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  flex-wrap: wrap;
}
.logo img { height: 48px; object-fit: contain; }
nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
/* nav-links class used on shop/category pages — center the menu */
nav ul.nav-links {
  flex: 1;
  justify-content: center;
}
/* nav-logo balances the hamburger on the right so links are truly centered */
nav .nav-logo {
  min-width: 48px;
}
nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.82rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: color 0.2s;
  font-family: Arial, sans-serif;
}
nav ul li a:hover, nav ul li a.active { color: var(--teal); }
.cart-icon { font-size: 1.4rem; cursor: pointer; color: var(--teal); }

/* SECTION TITLE */
.section-title {
  text-align: center;
  padding: 50px 40px 24px;
}
.section-title h2 {
  font-size: 1.9rem;
  color: var(--teal);
  margin-bottom: 8px;
}
.section-title p { color: #666; font-size: 1rem; }
.divider {
  width: 56px; height: 3px;
  background: var(--teal);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 16px 50px 50px;
}
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border-bottom: 3px solid var(--teal);
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.13); }
.card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.card-img-placeholder {
  width: 100%; height: 160px;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.card-body { padding: 14px 14px 16px; }
.card-body h3 { font-size: 1rem; color: var(--teal); margin-bottom: 6px; }
.card-body h4 { font-size: 0.9rem; color: var(--teal); margin-bottom: 4px; }
.card-body p { font-size: 0.85rem; color: #666; line-height: 1.5; }
.card-body .price { font-size: 1rem; color: var(--magenta); font-weight: bold; margin-top: 8px; }

/* BANNER / HERO */
.page-hero {
  background: #ffffff;
  padding: 50px 40px;
  text-align: center;
  border-bottom: 4px solid var(--teal);
}
h1, h2, h3 { font-family: 'Meow Script', cursive; font-weight: 400; }

.page-hero h1 { font-size: 2.4rem; color: var(--teal); margin-bottom: 12px; font-family: 'Meow Script', cursive; }
.page-hero p { font-size: 1.1rem; color: var(--dark); max-width: 650px; margin: 0 auto; line-height: 1.7; }

/* BUTTONS */
.btn { padding: 12px 30px; border-radius: 30px; text-decoration: none; font-size: 0.95rem; display: inline-block; transition: all 0.2s; cursor: pointer; border: none; font-family: 'Raleway', sans-serif; font-weight: 600; letter-spacing: 1px; }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: #5a9ea3; }
.btn-purple { background: var(--teal); color: white; }
.btn-purple:hover { background: #7a3fa8; }
.btn-outline { border: 2px solid var(--teal); color: var(--teal); background: transparent; }
.btn-outline:hover { background: var(--teal); color: white; }

/* BANNER STRIP */
.banner-strip {
  background: #ffffff, var(--magenta));
  color: white;
  padding: 60px 40px;
  text-align: center;
}
.banner-strip h2 { font-size: 2rem; margin-bottom: 12px; font-family: 'Meow Script', cursive; }
.banner-strip p { font-size: 1.05rem; opacity: 0.9; max-width: 550px; margin: 0 auto 24px; line-height: 1.7; }
.btn-white { background: white; color: var(--teal); padding: 12px 32px; border-radius: 30px; text-decoration: none; font-weight: bold; display: inline-block; transition: opacity 0.2s; }
.btn-white:hover { opacity: 0.9; }

/* TEACHER CARDS */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  padding: 16px 50px 50px;
}
.teacher-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  text-align: center;
  border-top: 4px solid var(--teal);
  transition: transform 0.2s;
}
.teacher-card:hover { transform: translateY(-4px); }
.teacher-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 24px auto 16px; display: block; border: 4px solid var(--teal); }
.teacher-card h3 { font-size: 1.1rem; color: var(--teal); padding: 0 16px 8px; }
.teacher-card p { font-size: 0.85rem; color: #666; padding: 0 16px 24px; line-height: 1.5; }

/* CONTENT BLOCK */
.content-block {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px 40px;
  line-height: 1.8;
}
.content-block h2 { color: var(--teal); font-size: 1.6rem; margin: 28px 0 12px; }
.content-block h3 { color: var(--teal); font-size: 1.2rem; margin: 20px 0 8px; }
.content-block p { margin-bottom: 14px; color: #444; }
.content-block ul { padding-left: 24px; margin-bottom: 14px; }
.content-block ul li { margin-bottom: 6px; color: #444; }

/* FOOTER */
footer {
  background: var(--dark);
  color: var(--teal);
  text-align: center;
  padding: 40px;
}
footer p { margin-bottom: 8px; font-size: 0.9rem; }
footer a { color: var(--teal); text-decoration: none; }
footer a:hover { color: var(--magenta); }
footer .footer-links { margin: 16px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* HAMBURGER - hidden on desktop, shown on mobile */
.nav-hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--teal);
  padding: 4px 8px;
  line-height: 1;
  z-index: 200;
  flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  /* Two-tier nav — mobile collapse */
  .top-bar {
    padding: 6px 14px;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: none;
  }
  .top-bar-left { display: none; }   /* hide marquee on mobile — too cramped */
  .top-bar-right {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 16px;
  }
  /* Unified bar mobile — show logo left, hamburger right, hide rest */
  .nav-links-row {
    padding: 8px 12px 8px;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    height: auto;
    min-height: 0;
  }
  .nav-logo-inline { margin-bottom: 0; }
  .nav-logo-inline img, .nav-logo-inline .logo img { height: 56px !important; }
  .nav-main-wrap { display: none; }  /* hide desktop nav links */
  /* Search and cart remain visible on iPad/tablet — hidden only at phone width via separate rule below */
  .nav-search { display: flex; }
  .nav-cart { display: flex; }
  .nav-hamburger-wrap { display: flex; }

  /* Legacy single-tier nav mobile */
  nav {
    height: 60px;
    padding: 0 16px;
    flex-wrap: nowrap;
    position: sticky;
    top: 0;
  }
  /* Hide nav links and cart on mobile */
  nav ul { display: none; }
  .cart-icon { display: none; }
  /* Show hamburger on mobile */
  .nav-hamburger { display: flex; }
  /* Dropdown menu when open */
  nav ul.open {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    border-bottom: 3px solid var(--teal);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    z-index: 150;
    padding: 8px 0;
  }
  nav ul li a {
    display: block;
    padding: 13px 24px;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
  }
  nav ul li:last-child a { border-bottom: none; }
  .card-grid, .teacher-grid { padding: 16px 16px 40px; }
  .page-hero { padding: 36px 20px; }
  .page-hero h1 { font-size: 1.8rem; }
  .content-block { padding: 30px 20px; }
}

/* ── Phone-only: hide desktop search/cart on narrow phones ── */
@media (max-width: 600px) {
  .nav-search { display: none !important; }
  .nav-cart   { display: none !important; }
}

/* ── SHIPPING BAR (shop/category pages) ── */
.shipping-bar {
  background: #76b3b8;
  color: white;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.82rem;
  font-family: Arial, sans-serif;
  letter-spacing: 0.3px;
  height: 32px;
  display: flex;
  align-items: center;
}
.shipping-bar-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: shippingScroll 30s linear infinite;
}
.shipping-bar-inner span {
  padding: 0 40px;
  white-space: nowrap;
}
@keyframes shippingScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── DROPDOWN NAV (desktop hover menus) ── */
.nav-links-row {
  padding: 0;
}
.nav-main {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  height: 44px;
}
.nav-main > li {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
}
.nav-main > li > a,
.nav-main > li > span.nav-nonclick {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 44px;
  text-decoration: none;
  color: #555;
  font-size: 1.36rem;
  letter-spacing: 3px;
  text-transform: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-main > li > a:hover,
.nav-main > li > span.nav-nonclick:hover,
.nav-main > li:hover > a,
.nav-main > li:hover > span.nav-nonclick {
  color: var(--teal);
}
.nav-arrow { font-size: 0.6rem; opacity: 0.6; }

/* Dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 0;
  padding-top: 22px; /* push text below scallop strip */
  left: 0;
  min-width: 250px;
  background: white;
  border-top: 3px solid var(--teal);
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  z-index: 500;
  animation: dropFadeIn 0.15s ease;
}
@keyframes dropFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Dropdown controlled by JS class only — CSS :hover closes with zero delay and fights the timer */
.nav-main > li.nav-open .nav-dropdown {
  display: block;
}
.nav-main > li.has-dropdown:hover .nav-dropdown {
  display: block;
}
.nav-dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 0.75rem;
  font-family: Arial, sans-serif;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover {
  background: #f5fafa;
  color: var(--teal);
}
.nav-dropdown .heart { color: var(--magenta); margin-right: 3px; }
.wh { display: inline-block; transform: rotate(-45deg); font-size: 0.85em; }
.whi { display: inline-block; width: 16px; height: 16px; vertical-align: middle; margin-bottom: 2px; }
