/* =========================================================
   Fine Arts AMS Gallery — shared stylesheet
   ========================================================= */

:root {
  --ivory: #fbf6ee;
  --paper: #ffffff;
  --sand: #f3eadc;
  --ink: #2a211c;
  --muted: #6e625a;
  --line: #e7dccd;
  --wine: #8e1d16;
  --wine-dark: #6d140f;
  --gold: #c8892f;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(60, 30, 15, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tint { background: var(--sand); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  font-weight: 500;
  margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn--solid { background: var(--wine); color: #fff; border: 1px solid var(--wine); }
.btn--solid:hover { background: var(--wine-dark); border-color: var(--wine-dark); transform: translateY(-2px); }
.btn--ghost { border: 1px solid rgba(255,255,255,0.8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--line { border: 1px solid var(--wine); color: var(--wine); }
.btn--line:hover { background: var(--wine); color: #fff; }

/* =========================================================
   Header / navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 56px; height: 56px; }
.brand span { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 400; }

.menu { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu a { font-size: 0.95rem; color: var(--ink); padding: 8px 0; display: inline-block; position: relative; }
.menu > li > a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 1px; background: var(--wine);
  transition: width 0.25s;
}
.menu > li > a:hover::after, .menu > li > a.active::after { width: 100%; }
.menu a.active { color: var(--wine); }

.has-sub > a::before { content: "▾"; position: absolute; right: -14px; top: 9px; font-size: 0.7rem; color: var(--muted); }
.submenu {
  position: absolute; top: 100%; left: -18px; min-width: 210px;
  list-style: none; margin: 0; padding: 10px 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: 0.2s;
}
.submenu a { display: block; padding: 8px 20px; }
.submenu a:hover { background: var(--ivory); color: var(--wine); }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-toggle, .nav-toggle-label { display: none; }

/* =========================================================
   Hero banner
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - 84px);
  max-height: 860px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #2a1b14 url("../images/hero-violinist.jpg") center 30% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,14,8,0.82) 0%, rgba(28,14,8,0.55) 45%, rgba(28,14,8,0.1) 100%);
}
.hero .wrap { position: relative; }
.hero-text { max-width: 600px; padding: 80px 0; }
.hero .eyebrow { color: #f1c27d; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #f1c27d; font-weight: 500; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 500px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   Introduction profile
   ========================================================= */
.intro { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.intro-media { position: relative; }
.intro-media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.intro-media .logo-badge {
  position: absolute; right: -28px; bottom: -28px; width: 130px; height: 130px;
  background: var(--ivory); border-radius: 50%; padding: 8px; box-shadow: var(--shadow);
}
.intro-text p { color: var(--muted); }
.profile-card {
  margin-top: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 28px;
}
.profile-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.profile-row:last-child { border-bottom: 0; }
.profile-row dt { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.profile-row dd { margin: 0; font-weight: 500; }
.profile-row dd a { color: var(--wine); }
.profile-row dd a:hover { text-decoration: underline; }

/* =========================================================
   What we teach
   ========================================================= */
.teach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.teach-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.teach-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform 0.6s; }
.teach-card .img-box { overflow: hidden; }
.teach-card:hover img { transform: scale(1.04); }
.teach-body { padding: 34px 36px 38px; display: flex; flex-direction: column; flex: 1; }
.teach-body p { color: var(--muted); }
.teach-body ul { list-style: none; padding: 0; margin: 0 0 26px; }
.teach-body li { padding: 6px 0 6px 26px; position: relative; }
.teach-body li::before { content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 1px; background: var(--wine); }
.teach-body .btn { align-self: flex-start; margin-top: auto; }

/* =========================================================
   Courses (basic / advanced)
   ========================================================= */
.levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 980px; margin: 0 auto; }
.level { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 40px; position: relative; }
.level--adv { background: var(--ink); color: #f4ece2; border-color: var(--ink); }
.level--adv h3 { color: #fff; }
.level--adv p { color: #d9cbb8; }
.level--adv li { color: rgba(244,236,226,0.88); }
.level .tag { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.level h3 { margin-top: 10px; }
.level p { color: var(--muted); }
.level ul { padding-left: 18px; margin: 0 0 28px; }
.level li { margin-bottom: 6px; }
.level--adv .btn--line { border-color: #f1c27d; color: #f1c27d; }
.level--adv .btn--line:hover { background: #f1c27d; color: var(--ink); }

/* =========================================================
   Why us
   ========================================================= */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.why-item .num { font-family: var(--serif); font-size: 3rem; color: var(--wine); line-height: 1; display: block; margin-bottom: 14px; }
.why-item p { color: var(--muted); max-width: 300px; margin: 0 auto; }

/* =========================================================
   Gallery preview
   ========================================================= */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.center { text-align: center; margin-top: 44px; }

/* =========================================================
   Contact band
   ========================================================= */
.contact {
  position: relative; color: #fff;
  background: #1f1410 url("../images/violin.jpg") center / cover no-repeat;
}
.contact::before { content: ""; position: absolute; inset: 0; background: rgba(31, 18, 12, 0.86); }
.contact .wrap { position: relative; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: #f1c27d; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.contact-item {
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); padding: 30px 28px;
  transition: background 0.25s, border-color 0.25s;
}
a.contact-item:hover { background: rgba(255,255,255,0.06); border-color: rgba(241,194,125,0.6); }
.contact-item .label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: #f1c27d; display: block; margin-bottom: 8px; }
.contact-item .value { font-size: 1.12rem; word-break: break-word; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #160e0b; color: rgba(255,255,255,0.65); padding: 56px 0 30px; font-size: 0.92rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-top .brand span { color: #fff; }
.footer-top .brand small { color: rgba(255,255,255,0.5); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a:hover { color: #f1c27d; }
.footer-bottom { padding-top: 24px; text-align: center; font-size: 0.85rem; }

/* =========================================================
   Placeholder inner pages
   ========================================================= */
.page-banner {
  position: relative; padding: 120px 0 100px; text-align: center; color: #fff;
  background: #2a1b14 center / cover no-repeat;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(28,14,8,0.7); }
.page-banner .wrap { position: relative; }
.page-banner h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-banner p { color: rgba(255,255,255,0.8); margin: 0; }
.coming-soon { text-align: center; color: var(--muted); padding: 90px 0; }
.coming-soon h2 { font-size: 2rem; }
.anchor-block { padding: 80px 0; border-bottom: 1px solid var(--line); text-align: center; scroll-margin-top: 90px; }
.anchor-block p { color: var(--muted); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .section { padding: 72px 0; }
  .intro { grid-template-columns: 1fr; gap: 56px; }
  .intro-media { max-width: 520px; }
  .intro-media .logo-badge { right: -10px; bottom: -24px; width: 110px; height: 110px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .contact-grid { grid-template-columns: 1fr; }

  /* mobile menu */
  .nav-toggle-label {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px;
  }
  .nav-toggle-label span { width: 24px; height: 2px; background: var(--ink); transition: 0.25s; }
  .menu {
    position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    display: none;
  }
  .menu > li { border-bottom: 1px solid var(--line); }
  .menu > li:last-child { border-bottom: 0; }
  .menu a { padding: 14px 0; display: block; }
  .menu > li > a::after, .has-sub > a::before { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 10px 16px; min-width: 0; }
  .submenu a { padding: 6px 0; color: var(--muted); }
  .nav-toggle:checked ~ .menu { display: flex; }
  .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); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { height: 72px; }
  .menu { top: 72px; }
  .brand img { width: 46px; height: 46px; }
  .brand span { font-size: 1.2rem; }
  .hero { min-height: 620px; background-position: 70% center; }
  .hero::before { background: linear-gradient(180deg, rgba(28,14,8,0.45) 0%, rgba(28,14,8,0.85) 100%); }
  .teach-grid, .levels, .why { grid-template-columns: 1fr; }
  .teach-body, .level { padding: 30px 24px; }
  .profile-card { padding: 4px 18px; }
  .profile-row { grid-template-columns: 1fr; gap: 2px; }
  .gallery { grid-auto-rows: 150px; gap: 10px; }
}
