/* ============================================
   P3 Arts Studio — Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-cream: #FAF7F2;
  --color-warm-white: #FFFDF9;
  --color-charcoal: #2C2C2C;
  --color-text: #3D3D3D;
  --color-text-light: #6B6B6B;
  --color-accent: #C8553D;
  --color-accent-hover: #A8432F;
  --color-gold: #D4A843;
  --color-sage: #7A8B6F;
  --color-navy: #2B3A4E;
  --color-border: #E8E2D9;
  --font-display: 'jumble', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1200px;
  --section-padding: 6rem 0;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-charcoal);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

em {
  font-family: var(--font-display);
  font-style: italic;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn-nav {
  padding: 0.5rem 1.2rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 4px;
}

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

.btn-full {
  width: 100%;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 253, 249, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  padding: 0.6rem 0;
}

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

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.logo-p3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
}

.logo-p {
  font-size: 1.3em;
}

.logo-3 {
  position: relative;
  top: 0.2em;
}

.logo-arts {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.navbar:not(.scrolled) .logo-arts {
  color: rgba(255,255,255,0.9);
}

.navbar:not(.scrolled) .logo-p3 {
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 400;
  transition: color var(--transition);
}

.navbar:not(.scrolled) .nav-links a {
  color: rgba(255,255,255,0.9);
}

.navbar:not(.scrolled) .nav-links a:hover {
  color: #fff;
}

.navbar.scrolled .nav-links a {
  color: var(--color-text);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--color-accent);
}

.navbar.scrolled .btn-nav {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  transition: all var(--transition);
}

.navbar:not(.scrolled) .nav-toggle span {
  background: #fff;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(43, 58, 78, 0.55) 0%,
    rgba(43, 58, 78, 0.65) 50%,
    rgba(43, 58, 78, 0.75) 100%
  );
}

/* Fallback background when no video */
.hero-video-wrapper {
  background: linear-gradient(135deg, var(--color-navy), #1a2636);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.25rem);
  font-weight: 700;
  margin-bottom: -0.1rem;
  color: #fff;
}

.hero-3 {
  display: inline-block;
  position: relative;
  top: 0.22em;
  margin-right: 0.15em;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 6rem;
  letter-spacing: 0.02em;
}

.hero-p {
  display: inline-block;
  margin: 0 0.3em;
}

.hero-dot,
.footer-dot {
  color: var(--color-gold);
  margin: 0 0.2em;
}

.hero-p:nth-child(2) {
  color: var(--color-gold);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

.hero-scroll a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.hero-scroll a:hover {
  color: #fff;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Sections --- */
.section {
  padding: var(--section-padding);
}

/* --- About --- */
.about {
  background: var(--color-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--color-text-light);
  font-size: 1.02rem;
}

.about-cta {
  margin-top: 1rem;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* --- Programs --- */
.programs {
  background: var(--color-warm-white);
}

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

.program-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

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

.program-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.program-content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.program-details {
  list-style: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.program-details li {
  font-size: 0.88rem;
  color: var(--color-text-light);
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.program-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-sage);
}

.btn-program-more {
  font-size: 0.8rem;
  padding: 0.5rem 1.2rem;
  align-self: center;
  margin-top: auto;
}

.program-details {
  margin-bottom: 1.25rem;
}

/* --- Approach --- */
.approach {
  background: var(--color-cream);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.approach-image img {
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.approach-text h2 {
  margin-bottom: 1.5rem;
}

.approach-text > p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.approach-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.value h4 {
  color: var(--color-navy);
}

.value p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- Tuition --- */
.tuition {
  background: var(--color-warm-white);
}

.tuition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.tuition-card {
  background: #fff;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tuition-card .btn {
  margin-top: auto;
  align-self: center;
}

.tuition-card.featured {
  border: 2px solid var(--color-accent);
}

.tuition-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tuition-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.tuition-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* --- Quote --- */
.quote-section {
  background: var(--color-navy);
  padding: 5rem 0;
}

.pull-quote {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  color: rgba(255,255,255,0.95);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.pull-quote cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-item a {
  color: var(--color-accent);
  transition: color var(--transition);
}

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

/* --- Form --- */
.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-warm-white);
  transition: border-color var(--transition);
}

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

.form-group textarea {
  resize: vertical;
}

/* --- Footer --- */
.footer {
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer .logo-p3 {
  color: #fff;
}

.footer .logo-arts {
  color: rgba(255,255,255,0.7);
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* --- Subpages --- */
.subpage-hero {
  padding: 8rem 0 3rem;
  background: var(--color-cream);
  text-align: center;
}

.subpage-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.75rem;
}

.subpage-hero p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.subpage-content {
  background: var(--color-warm-white);
}

.subpage-body {
  max-width: 800px;
  margin: 0 auto;
}

.subpage-body p {
  color: var(--color-text-light);
  font-size: 1.02rem;
  line-height: 1.8;
}

.subpage-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.subpage-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-navy);
}

.subpage-body ul {
  list-style: none;
  margin: 1rem 0;
}

.subpage-body ul li {
  font-size: 0.95rem;
  color: var(--color-text-light);
  padding: 0.35rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.instructor-name {
  margin-top: 0;
  margin-bottom: 1rem;
}

.instructor-photo {
  float: left;
  width: 280px;
  max-width: 40%;
  border-radius: 8px;
  margin: 0.25rem 1.75rem 1rem 0;
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.instructor-body::after {
  content: '';
  display: block;
  clear: both;
}

@media (max-width: 600px) {
  .instructor-photo {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.5rem;
  }
}

.subpage-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-sage);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 992px) {
  .about-grid,
  .approach-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .approach-grid .approach-image {
    order: -1;
  }

  .approach-values {
    grid-template-columns: 1fr 1fr;
  }

  .programs-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .tuition-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}

@media (max-width: 500px) {
  .hero-title .hero-word {
    display: block;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 0;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-warm-white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--color-text) !important;
    font-size: 1rem;
  }

  .nav-links .btn-nav {
    color: #fff !important;
    text-align: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .about-image img,
  .approach-image img {
    height: 320px;
  }

  .approach-values {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* --- Utilities --- */
.underline {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.link-accent {
  color: var(--color-accent);
  font-weight: 600;
  transition: color var(--transition);
}

.link-accent:hover {
  color: var(--color-accent-hover);
}

.link-white {
  color: #fff;
  font-weight: 600;
  transition: opacity var(--transition);
}

.link-white:hover {
  opacity: 0.8;
}

.subpage-body hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0 1.5rem;
}

.rate-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}

.rate-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.rate-list li:last-child {
  border-bottom: 0;
}

/* Step list (e.g. scholarship walkthrough) */
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.step-caption {
  margin-bottom: 1rem;
}

.step-image {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

/* Media grid (gallery layout) */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.media-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--color-cream);
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-placeholder span {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* Honeypot — visually hidden but still in the DOM for bots to find */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
