/* ===========================================================
   Priya Sharma — Visual Arts | Maple Grove Academy
   A warm, gallery-inspired portfolio.
   =========================================================== */

:root {
  --ink: #2a2520;
  --ink-soft: #5a5249;
  --cream: #faf6f0;
  --cream-deep: #f1e9dd;
  --paper: #ffffff;
  --terracotta: #c0593b;
  --terracotta-deep: #a4452c;
  --ochre: #d8a14a;
  --sage: #7c8a6d;
  --plum: #5b3a53;
  --line: #e4d9c9;
  --shadow-sm: 0 2px 8px rgba(42, 37, 32, 0.06);
  --shadow-md: 0 12px 32px rgba(42, 37, 32, 0.12);
  --shadow-lg: 0 24px 60px rgba(42, 37, 32, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: 0.3px;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--terracotta);
  margin: 0 0 1rem;
}
.eyebrow-light { color: var(--ochre); }

.text-link {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--terracotta-deep);
}
.text-link:hover { color: var(--terracotta); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--terracotta-deep); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-block { display: block; text-align: center; margin-top: 1.2rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}
.brand-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.05;
}
.brand-text em {
  display: block;
  font-style: italic;
  font-size: 0.82rem;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--terracotta-deep); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--terracotta);
  transition: width 0.22s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(42,37,32,0.55), rgba(91,58,83,0.35)),
    repeating-linear-gradient(135deg, #b9512f 0 60px, #c0593b 60px 120px),
    radial-gradient(circle at 80% 20%, var(--ochre), transparent 55%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 78%, rgba(124,138,109,0.55), transparent 45%),
    radial-gradient(circle at 70% 65%, rgba(91,58,83,0.5), transparent 50%);
  mix-blend-mode: multiply;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,37,32,0.6), transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
  max-width: 880px;
}
.hero .eyebrow { color: #ffe6c2; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.hero-sub {
  font-size: 1.2rem;
  max-width: 620px;
  color: rgba(255,255,255,0.94);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.8); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ---------- Intro ---------- */
.intro { padding: 84px 0; }
.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.intro-text h2 { margin-bottom: 0.6em; }
.intro-text p { color: var(--ink-soft); font-size: 1.06rem; }
.intro-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.intro-card h3 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--terracotta);
  margin-bottom: 1.2rem;
}
.intro-card ul { list-style: none; margin: 0 0 0.5rem; padding: 0; }
.intro-card li {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.intro-card li:last-child { border-bottom: none; }
.intro-card strong {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.intro-card span { font-size: 1.02rem; color: var(--ink); }

/* ---------- Feature band (classes preview) ---------- */
.feature-band {
  background: var(--plum);
  color: #fff;
  padding: 88px 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(216,161,74,0.25), transparent 40%),
    radial-gradient(circle at 88% 80%, rgba(192,89,59,0.3), transparent 45%);
}
.feature-band .band-title { color: #fff; margin-bottom: 2.4rem; }
.class-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.class-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform 0.22s ease, background 0.22s ease;
}
.class-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.12); }
.class-card-emblem {
  font-size: 2rem;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  margin-bottom: 1.2rem;
}
.class-card h3 { color: #fff; font-size: 1.6rem; }
.class-card p { color: rgba(255,255,255,0.85); font-size: 1rem; }
.class-card .text-link { color: var(--ochre); }
.class-card .text-link:hover { color: #ffe6c2; }

/* ---------- Gallery tease (home) ---------- */
.gallery-tease { padding: 88px 0; }
.tease-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 2.4rem;
}
.tease-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tease-item {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-end;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tease-item:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-md); }
.tease-item figcaption {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  width: 100%;
}

/* placeholder art swatches (stand-ins for student photos) */
.art-1 { background: linear-gradient(135deg, #c0593b, #d8a14a); }
.art-2 { background: linear-gradient(135deg, #5b3a53, #7c8a6d); }
.art-3 { background: linear-gradient(135deg, #7c8a6d, #d8a14a); }
.art-4 { background: linear-gradient(135deg, #2a2520, #c0593b); }
.art-5 { background: linear-gradient(135deg, #5b3a53, #d8a14a); }
.art-6 { background: linear-gradient(135deg, #2a2520, #5a5249); }
.art-7 { background: linear-gradient(135deg, #c0593b, #5b3a53); }
.art-8 { background: linear-gradient(135deg, #d8a14a, #7c8a6d); }
.art-9 { background: linear-gradient(135deg, #7c8a6d, #5b3a53); }
.art-10 { background: linear-gradient(135deg, #c0593b, #2a2520); }
.art-11 { background: linear-gradient(135deg, #5b3a53, #c0593b); }
.art-12 { background: linear-gradient(135deg, #2a2520, #d8a14a); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--terracotta);
  color: #fff;
  padding: 76px 0;
  text-align: center;
  background-image: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.16), transparent 55%);
}
.cta-inner h2 { color: #fff; margin-bottom: 0.4em; }
.cta-inner p { color: rgba(255,255,255,0.92); font-size: 1.1rem; margin-bottom: 1.8rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.cta-band .btn-primary { background: #fff; color: var(--terracotta-deep); }
.cta-band .btn-primary:hover { background: var(--cream); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.85); }
.cta-band .btn-ghost:hover { background: #fff; color: var(--terracotta-deep); }

/* ---------- Page heroes (interior) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: 96px 0 84px;
  overflow: hidden;
}
.page-hero-content { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.94); max-width: 600px; }
.page-hero-gallery {
  background: linear-gradient(120deg, #5b3a53, #c0593b 60%, #d8a14a);
}
.page-hero-classes {
  background: linear-gradient(120deg, #2a2520, #7c8a6d 70%);
}
.page-hero-supplies {
  background: linear-gradient(120deg, #7c8a6d, #5b3a53);
}
.page-hero-contact {
  background: linear-gradient(120deg, #c0593b, #5b3a53 70%);
}
.page-hero .hero-overlay {
  background: radial-gradient(circle at 80% 30%, rgba(255,255,255,0.12), transparent 50%);
}

/* ---------- Gallery page ---------- */
.gallery-section { padding: 64px 0 24px; }
.gallery-note {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.masonry {
  columns: 3;
  column-gap: 20px;
}
.masonry-item {
  break-inside: avoid;
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.masonry-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.masonry-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
}
.masonry-item.tall .masonry-photo { aspect-ratio: 3 / 5; }
.masonry-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 20px;
}
.art-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
}
.art-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  font-weight: 600;
}
.art-blurb {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin-top: 4px;
}
.gallery-photos-note {
  background: var(--cream-deep);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0 16px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.gallery-photos-note p { margin: 0; }

/* ---------- Classes page ---------- */
.classes-detail { padding: 72px 0 40px; }
.course {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.course:last-child { border-bottom: none; }
.course-index {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 500;
  color: var(--ochre);
  line-height: 1;
}
.course-body h2 { margin-bottom: 0.3em; }
.course-tag {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 1.1rem;
}
.course-body p { color: var(--ink-soft); }
.course-points {
  list-style: none;
  margin: 1.2rem 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 10px;
}
.course-points li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
}
.course-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--terracotta);
  transform: rotate(45deg);
}

/* ---------- Supplies page ---------- */
.supplies-detail { padding: 72px 0 40px; }
.supply-block {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.supply-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.4rem;
}
.supply-emblem {
  font-size: 1.5rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream-deep);
}
.supply-head h2 { margin: 0; }
.supply-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.supply-columns h3 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--terracotta);
  margin-bottom: 0.9rem;
}
.supply-list { list-style: none; margin: 0; padding: 0; }
.supply-list li {
  position: relative;
  padding: 9px 0 9px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.supply-list li:last-child { border-bottom: none; }
.supply-list li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 9px;
  color: var(--sage);
  font-weight: 700;
}
.supply-help {
  background: var(--plum);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 38px;
  text-align: center;
  margin-top: 12px;
}
.supply-help h3 { color: #fff; font-size: 1.8rem; }
.supply-help p { color: rgba(255,255,255,0.9); max-width: 520px; margin: 0 auto 1.6rem; }
.supply-help .btn-primary { background: var(--ochre); color: var(--ink); }
.supply-help .btn-primary:hover { background: #e6b561; }

/* ---------- Contact page ---------- */
.contact-section { padding: 72px 0 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 64px;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  text-align: center;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.contact-icon {
  font-size: 1.8rem;
  display: grid; place-items: center;
  width: 66px; height: 66px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--terracotta);
}
.contact-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.contact-value {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--terracotta-deep);
  margin-bottom: 0.3rem;
  word-break: break-word;
}
.contact-note { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.contact-card-static { cursor: default; }

.contact-message {
  background: var(--cream-deep);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.contact-message h2 {
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.contact-message p { color: var(--ink-soft); font-size: 1.08rem; }
.contact-signoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--terracotta-deep);
  margin-top: 1.4rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  padding: 60px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer .brand-mark { margin-bottom: 14px; }
.footer-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fff;
  margin: 0 0 4px;
}
.footer-school { font-size: 0.92rem; margin: 0; color: rgba(255,255,255,0.65); }
.site-footer h4 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--ochre);
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.82); font-size: 0.96rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  margin: 24px 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .intro-card { position: static; }
  .class-cards { grid-template-columns: 1fr; }
  .tease-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px; height: 30px;
  }
  .nav-toggle-label span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links {
    position: absolute;
    top: 74px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 28px; }
  .nav-links a::after { display: none; }
  .nav-toggle:checked ~ .nav-links { max-height: 360px; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { min-height: 70vh; }
  .course { grid-template-columns: 1fr; gap: 8px; }
  .course-index { font-size: 2.4rem; }
  .supply-columns { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .tease-head { flex-direction: column; align-items: flex-start; }
  .contact-message { padding: 40px 26px; }
}

@media (max-width: 460px) {
  .tease-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .brand-text { font-size: 1.15rem; }
}
