/*
Theme Name: Jade Sparrow Modern Mahjong
Theme URI: https://jade-sparrow.com
Description: Custom boutique theme for Jade Sparrow Modern Mahjong — warm, elegant, earthy tones.
Version: 1.0
Author: Jade Sparrow
Text Domain: jade-sparrow
*/

:root {
  --olive: #6B7F5E;
  --sage: #8A9A7B;
  --sage-light: #B5C4A8;
  --tan: #C4A97D;
  --khaki: #D4C5A0;
  --cream: #F5F0E8;
  --cream-dark: #EDE6D8;
  --brown: #3E2F23;
  --brown-light: #5C4A3A;
  --white: #FDFBF7;
  --text: #2E2218;
}

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

body {
  font-family: 'Raleway', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

/* ========== NAV ========== */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo img { height: 48px; }

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--brown);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-menu a:hover { color: var(--olive); }

.nav-cta {
  background: var(--olive) !important;
  color: var(--cream) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 2px;
}

.nav-cta:hover { background: var(--brown) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown);
  margin: 5px 0;
  transition: 0.3s;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary { background: var(--olive); color: var(--cream); }
.btn-primary:hover { background: var(--brown); color: var(--cream); }

.btn-outline {
  background: transparent;
  color: var(--brown);
  border: 1.5px solid var(--brown);
  margin-left: 1rem;
}
.btn-outline:hover { background: var(--brown); color: var(--cream); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 40%, var(--sage-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%236B7F5E' stroke-width='0.5' opacity='0.08'%3E%3Crect x='10' y='10' width='16' height='22' rx='1'/%3E%3Crect x='34' y='28' width='16' height='22' rx='1'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
  animation: fadeUp 1s ease-out;
}

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

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem;
  font-weight: 400;
  color: var(--brown);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.hero h1 em { font-style: italic; color: var(--olive); }

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--brown-light);
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== SECTIONS ========== */
section { padding: 6rem 4rem; }

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.8rem;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 1.2rem;
}

/* INTRO */
.intro { background: var(--white); text-align: center; }

.intro p {
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--brown-light);
  font-weight: 300;
}

/* CLASSES GRID */
.classes { background: var(--cream); }

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

.class-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border: 1px solid var(--cream-dark);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.class-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--olive);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.class-card:hover::after { transform: scaleX(1); }
.class-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(62,47,35,0.08); }

.class-card .tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
  display: block;
}

.class-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brown);
  margin-bottom: 0.8rem;
}

.class-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--brown-light);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.class-card .price {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--olive);
  margin-bottom: 1rem;
}

/* EVENTS STRIP */
.events {
  background: var(--brown);
  color: var(--cream);
  text-align: center;
}

.events .section-label { color: var(--tan); }
.events .section-heading { color: var(--cream); }

.events p {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
  color: var(--khaki);
}

.events .btn-primary { background: var(--tan); color: var(--brown); }
.events .btn-primary:hover { background: var(--cream); }

/* TESTIMONIAL */
.testimonial {
  background: var(--white);
  text-align: center;
  padding: 5rem 4rem;
}

.testimonial blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 400;
  color: var(--brown);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.testimonial cite {
  font-family: 'Raleway', sans-serif;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage);
}

/* CONTACT */
.contact { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2.5rem;
}

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--brown);
}

.contact-info p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--brown-light);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--cream-dark);
  background: var(--white);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--olive);
}

.wpcf7 textarea,
.contact-form textarea { min-height: 140px; resize: vertical; }

.wpcf7 input[type="submit"] {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: var(--olive);
  color: var(--cream);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpcf7 input[type="submit"]:hover { background: var(--brown); }

/* FOOTER */
.site-footer {
  background: var(--brown);
  color: var(--khaki);
  text-align: center;
  padding: 2.5rem 4rem;
  font-size: 0.8rem;
  letter-spacing: 1px;
  font-weight: 300;
}

.site-footer a { color: var(--tan); text-decoration: none; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .site-nav { padding: 1rem 1.5rem; }
  .nav-menu { display: none; }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-bottom: 1px solid var(--cream-dark);
    gap: 1.2rem;
  }
  .menu-toggle { display: block; }
  section { padding: 3.5rem 1.5rem; }
  .hero h1 { font-size: 2.4rem; }
  .classes-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: 0.8rem; }
}
