/* The Sculpting Coach - Brown-based Nutrio-inspired theme */

:root {
  --brown-dark: #3D2B1F;
  --brown-medium: #6B4E3D;
  --brown-light: #8B6F5C;
  --cream: #F5F0E8;
  --cream-dark: #E8DFD3;
  --white: #FFFFFF;
  --coral: #F0544F;
  --coral-dark: #D9433E;
  --yellow-bar: #F5C518;
  --yellow-dark: #D4A90F;
  --text-dark: #2C2118;
  --text-muted: #6B5D52;
  --gold: #F5A623;
  --shadow: 0 8px 30px rgba(61, 43, 31, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: var(--coral); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--coral-dark); }

h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: var(--brown-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section { padding: 90px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

.section-label {
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
}

.text-center { text-align: center; }

/* Top Yellow Bar */
.top-bar {
  background: var(--yellow-bar);
  color: var(--brown-dark);
  font-size: 0.82rem;
  padding: 8px 0;
  font-weight: 600;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar-social { display: flex; gap: 14px; }
.top-bar-social a { color: var(--brown-dark); font-size: 0.9rem; }
.top-bar-social a:hover { color: var(--coral); }

/* Header */
.site-header {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
}

.site-header.scrolled {
  position: fixed;
  top: 0;
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow);
  padding: 10px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

/* Home hero: light logo on dark background, swap on scroll */
.logo .logo-dark { display: none; }
.logo .logo-light { display: block; }
.site-header.scrolled .logo .logo-dark { display: block; }
.site-header.scrolled .logo .logo-light { display: none; }

.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: capitalize;
}
.main-nav a:hover, .main-nav a.active { color: var(--coral); }

.site-header.scrolled .main-nav a { color: var(--brown-dark); }
.site-header.scrolled .main-nav a:hover { color: var(--coral); }

.header-search {
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  background: none;
  border: none;
}
.site-header.scrolled .header-search { color: var(--brown-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}
.site-header.scrolled .nav-toggle { color: var(--brown-dark); }

body.inner-page .site-header {
  position: fixed;
  top: 0;
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow);
}
body.inner-page .site-header .main-nav a { color: var(--brown-dark); }
body.inner-page .site-header .header-search { color: var(--brown-dark); }
body.inner-page .site-header .nav-toggle { color: var(--brown-dark); }
body.inner-page { padding-top: 36px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
}
.btn-coral:hover {
  background: var(--coral-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 84, 79, 0.35);
}

.btn-brown {
  background: var(--brown-dark);
  color: var(--white);
}
.btn-brown:hover { background: var(--brown-medium); color: var(--white); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--coral);
  color: var(--coral);
}
.btn-outline:hover { background: var(--coral); color: var(--white); }

.btn-full { width: 100%; }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(61,43,31,0.88) 42%, rgba(61,43,31,0.3) 70%, transparent 100%);
}

.hero-shapes {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  background: rgba(61,43,31,0.75);
  clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
}

.hero-triangle {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}
.hero-triangle.coral {
  border-width: 0 0 40px 40px;
  border-color: transparent transparent var(--coral) transparent;
  top: 20%;
  left: 42%;
}
.hero-triangle.white {
  border-width: 0 0 25px 25px;
  border-color: transparent transparent var(--white) transparent;
  top: 35%;
  left: 38%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 140px 0 180px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* Feature Cards Overlap */
.feature-cards {
  margin-top: -100px;
  position: relative;
  z-index: 10;
  padding-bottom: 40px;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.feature-card:hover { transform: translateY(-6px); }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  color: var(--brown-medium);
}

.feature-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: var(--radius);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: var(--brown-dark);
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.experience-badge .num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--coral);
}

.experience-badge .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.check-list { list-style: none; margin: 24px 0; }
.check-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: var(--text-muted);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brown-medium);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Programs Grid */
.programs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.call-box {
  background: var(--brown-dark);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.call-box strong { color: var(--coral); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.program-card:hover { transform: translateY(-6px); }

.program-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.program-card-body {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.program-card-body h4 { font-size: 1rem; }

.program-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* How To Solve */
.solve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solve-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 24px;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--coral);
  transition: transform var(--transition);
}

.solve-card:hover { transform: translateY(-4px); }

.solve-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  color: var(--brown-medium);
}

.solve-card h4 { margin-bottom: 8px; }
.solve-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 12px; }
.solve-card .read-more { font-weight: 700; font-size: 0.9rem; }

/* CTA Banner */
.cta-banner {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--white);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  z-index: 1;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,43,31,0.82);
}

.cta-banner .container { position: relative; z-index: 2; }

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 28px;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}

.cta-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Testimonials */
.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.client-avatars { display: flex; }
.client-avatars img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--white);
  margin-left: -12px;
  object-fit: cover;
}
.client-avatars img:first-child { margin-left: 0; }

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

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.stars { color: var(--gold); font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }

.testimonial-card p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.testimonial-author { font-weight: 700; color: var(--brown-dark); }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brown-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.contact-form-box h3 { margin-bottom: 24px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--brown-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brown-medium);
}

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

.form-group.error input,
.form-group.error textarea,
.form-group.error select { border-color: var(--coral); }

.error-msg {
  color: var(--coral);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-group.error .error-msg { display: block; }

.form-success {
  background: #d4edda;
  color: #155724;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: none;
}

/* Footer */
.site-footer {
  background: var(--white);
  padding: 70px 0 0;
  border-top: 1px solid var(--cream-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 16px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--coral);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--coral); }

.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-dark);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--coral); color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--cream-dark);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--text-muted); font-size: 0.85rem; }
.footer-legal a:hover { color: var(--coral); }

/* Page Header (inner pages) */
.page-hero {
  background: var(--brown-dark);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb a { color: var(--coral); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.pricing-card.featured {
  border-color: var(--coral);
  transform: scale(1.04);
}

.pricing-card:hover { transform: translateY(-6px); }
.pricing-card.featured:hover { transform: scale(1.04) translateY(-6px); }

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--brown-dark);
  margin: 20px 0;
}

.pricing-card .price span { font-size: 1rem; color: var(--text-muted); }

.pricing-features { list-style: none; margin: 24px 0; text-align: left; }
.pricing-features li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

/* Classes */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.class-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.class-card img { height: 220px; width: 100%; object-fit: cover; }
.class-card-body { padding: 24px; }
.class-card-body h3 { margin-bottom: 8px; }
.class-card-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 16px; }

.class-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}

.service-card:hover { transform: translateY(-6px); }

.service-card .service-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--brown-medium);
}

/* Product Detail */
.product-detail { padding: 60px 0 90px; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-detail img {
  border-radius: var(--radius);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.product-detail h1 { margin-bottom: 16px; }
.product-detail .product-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--brown-medium);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.product-detail .product-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--coral);
  margin: 20px 0;
}

.product-content { color: var(--text-muted); }
.product-content h3 { margin: 28px 0 12px; color: var(--brown-dark); }
.product-content ul { margin-left: 20px; margin-bottom: 16px; }
.product-content li { margin-bottom: 8px; }

/* Legal Pages */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px 90px;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 36px 0 14px;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.legal-content ul, .legal-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

/* Dot pattern decoration */
.dot-pattern {
  position: relative;
}
.dot-pattern::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 200px;
  background-image: radial-gradient(var(--cream-dark) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.5;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-cards-grid,
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
    gap: 12px;
  }

  .main-nav.open { display: flex; }
  .main-nav.open a { color: var(--brown-dark); }

  .hero-content { padding: 120px 0 140px; }
  .feature-cards { margin-top: -60px; }
  .feature-cards-grid,
  .about-grid,
  .programs-grid,
  .solve-grid,
  .testimonials-grid,
  .contact-grid,
  .pricing-grid,
  .classes-grid,
  .services-grid,
  .product-detail-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .experience-badge { left: 10px; }
  .site-header { top: 32px; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .top-bar .container { justify-content: center; text-align: center; }
}
