/* =====================================================================
   Allegro Piano Studio: shared look for every page at my.allegrostudiokaty.com
   that visitors see (Discovery form, camp registration, future forms).

   Copied from the Squarespace site (allegrostudiokaty.com) so a visitor
   can't tell they've left it: same fonts, colours, header, menu, closing
   banner and footer.

   If a colour or font changes in Squarespace, change it here (the
   "Brand" block below) and every app page follows.

   Use it on a page:
     <link rel="stylesheet" href="/site/allegro-site.css">
     <div id="al-header" data-active="Contact"></div>   (top of <body>)
     ... the page ...
     <div id="al-footer"></div>                          (end of <body>)
     <script src="/site/allegro-site.js" defer></script>
   ===================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Source+Sans+Pro:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  /* Brand (from Squarespace Site Styles and Custom CSS) */
  --al-wine: #601223;
  --al-wine-dark: #4A0E1B;
  --al-gold: #D9A94A;
  --al-gold-light: #E7BE68;
  --al-gold-deep: #9A6B12;
  --al-cream: #F3EADB;
  --al-sand: #EADFCB;
  --al-line: #E7DDCC;
  --al-grey: #CCCAC9;
  --al-black: #111111;
  --al-ink: #2B2422;
  --al-text: #4A403C;
  --al-white: #FFFFFF;
  --al-heading: "Cormorant Garamond", Georgia, serif;
  --al-body: "Source Sans Pro", "Source Sans 3", Arial, sans-serif;
  --al-gutter: 4vw;                 /* side margin of the header and footer */
  --al-page-pad: clamp(56px, 7vw, 96px);
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--al-cream);
  color: var(--al-ink);
  font-family: var(--al-body);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--al-wine); text-underline-offset: 3px; }
img { max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--al-heading); font-weight: 600; color: var(--al-black); margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.1; }
h3 { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.18; }
h4 { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.3; }
h1 span, h2 span { color: var(--al-wine); }

/* Small uppercase label with a gold line ("FAQS", "PIANO LESSONS IN KATY ...") */
.al-eyebrow {
  font-family: var(--al-body);
  font-size: 13px; line-height: 1.4; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--al-wine);
  margin: 0 0 .7em;
}
.al-eyebrow::before {
  content: ""; display: inline-block; width: 36px; height: 2px;
  background: var(--al-gold); vertical-align: middle; margin: 0 12px 3px 0;
}
.al-eyebrow.is-centered::after {
  content: ""; display: inline-block; width: 36px; height: 2px;
  background: var(--al-gold); vertical-align: middle; margin: 0 0 3px 12px;
}
.al-lead { font-size: clamp(18px, 1.45vw, 20px); line-height: 1.6; color: var(--al-black); }

/* Buttons: pill shape, Source Sans Pro 600, as on the site */
.al-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font-family: var(--al-body); font-size: 17px; font-weight: 600; line-height: 1.2;
  border-radius: 999px; border: 2px solid var(--al-wine);
  background: var(--al-wine); color: var(--al-white);
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.al-btn:hover { background: var(--al-wine-dark); border-color: var(--al-wine-dark); color: var(--al-white); }
.al-btn--outline { background: transparent; color: var(--al-wine); }
.al-btn--outline:hover { background: var(--al-wine); border-color: var(--al-wine); color: var(--al-white); }
.al-btn--gold { background: var(--al-gold); border-color: var(--al-gold); color: var(--al-black); font-weight: 700; }
.al-btn--gold:hover { background: var(--al-gold-light); border-color: var(--al-gold-light); color: var(--al-black); }
.al-btn:focus-visible, .al-header a:focus-visible, .al-header button:focus-visible, .al-footer a:focus-visible {
  outline: 3px solid var(--al-gold); outline-offset: 2px;
}

/* White card, as used on the site's light sections */
.al-card { background: var(--al-white); border-radius: 10px; padding: 28px; box-shadow: 0 10px 30px rgba(17,17,17,.06); }

/* ---------- Announcement bar ---------- */
.al-announce {
  background: var(--al-wine); color: var(--al-white);
  text-align: center; font-family: var(--al-body); font-size: 15px; font-weight: 600; line-height: 1.6;
  padding: 13px var(--al-gutter);
}
.al-announce .al-stars { color: var(--al-gold); margin-right: 8px; letter-spacing: 1px; }

/* ---------- Header ---------- */
.al-header-bar {
  position: relative; z-index: 20;
  background: var(--al-white);
  border-bottom: 1px solid var(--al-line);
}
.al-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 98px; padding: 20px var(--al-gutter);
}
.al-logo { display: block; flex: none; line-height: 0; }
.al-logo img { width: 232px; height: auto; display: block; }
.al-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.al-nav > .al-nav-item { position: relative; }
.al-nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--al-body); font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: 0;
  color: var(--al-black); text-decoration: none;
  padding: 10px; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer;
  white-space: nowrap;
}
.al-nav-link:hover { color: var(--al-wine); }
.al-nav-link[aria-current="page"], .al-nav-item.is-active > .al-nav-link { color: var(--al-wine); border-bottom-color: var(--al-gold); }
.al-chev { width: 14px; height: 14px; }
.al-folder {
  display: none; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  min-width: 250px; padding: 8px; margin-top: 6px;
  background: var(--al-white); border: 1px solid var(--al-line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(17,17,17,.12);
}
.al-nav-item:hover > .al-folder, .al-nav-item:focus-within > .al-folder, .al-nav-item.is-open > .al-folder { display: block; }
.al-folder::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.al-folder a {
  display: block; padding: 12px 14px; border-radius: 6px;
  font-family: var(--al-body); font-size: 16px; font-weight: 600; line-height: 1.3;
  color: var(--al-black); text-decoration: none; white-space: nowrap;
}
.al-folder a:hover, .al-folder a[aria-current="page"] { background: var(--al-cream); color: var(--al-wine); }
/* Gold pill at the end of the menu, 45px tall (same as the Squarespace header button) */
.al-header-cta { margin-left: 24px; min-height: 0; padding: 13px 24px; font-size: 16px; font-weight: 700; line-height: 1.2; border: 0; white-space: nowrap; }
.al-burger {
  display: none; width: 44px; height: 44px; padding: 0; margin-left: auto;
  background: none; border: 0; cursor: pointer; color: var(--al-black);
}
.al-burger span { display: block; width: 30px; height: 1.5px; margin: 7px auto; background: currentColor; transition: transform .2s, opacity .2s; }

/* Phone menu: solid wine panel with the white logo, as on the site */
.al-mobile {
  display: none; position: fixed; inset: 0; z-index: 50; overflow-y: auto;
  background: var(--al-wine); color: var(--al-white);
  padding: 24px 6vw 48px;
}
.al-mobile.is-open { display: block; }
.al-mobile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.al-mobile-top img { width: 200px; height: auto; }
.al-mobile .al-burger { display: block; color: var(--al-white); margin: 0; }
.al-mobile .al-burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.al-mobile .al-burger span:nth-child(2) { opacity: 0; }
.al-mobile .al-burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
.al-mobile ul { list-style: none; margin: 0; padding: 0; }
.al-mobile li { margin: 0; }
.al-mobile a {
  display: block; padding: 10px 0; color: var(--al-white); text-decoration: none;
  font-family: var(--al-heading); font-size: 26px; font-weight: 600; line-height: 1.2;
}
.al-mobile .al-mobile-sub a { font-family: var(--al-body); font-size: 18px; font-weight: 600; padding: 7px 0 7px 18px; color: var(--al-cream); }
.al-mobile .al-mobile-label { display: block; padding: 18px 0 4px; font-family: var(--al-body); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--al-gold); }
/* The menu's link style above must not flatten the button: keep its centred text, side padding and dark-on-gold text */
.al-mobile a.al-btn { display: flex; margin-top: 28px; width: 100%; max-width: 340px; padding: 0 28px; box-sizing: border-box; text-align: center;
  font-family: var(--al-body); font-size: 17px; line-height: 1.2; }
.al-mobile a.al-btn--gold { color: var(--al-black); font-weight: 700; }
.al-mobile-out { margin: 14px 0 0; }
.al-mobile-out button { min-height: 44px; padding: 0 22px; border: 2px solid var(--al-cream); border-radius: 999px; background: transparent;
  color: var(--al-cream); font: 700 17px var(--al-body); cursor: pointer; }
body.al-menu-open { overflow: hidden; }

@media (max-width: 1400px) {
  .al-nav-link { padding: 10px 6px; }
  .al-header-cta { margin-left: 12px; padding: 12px 18px; }
  .al-logo img { width: 200px; }
}
/* Set by allegro-site.js when the menu items don't fit on one line: same as the phone-menu layout below */
.al-header-bar.al-compact .al-nav, .al-header-bar.al-compact .al-header-cta { display: none; }
.al-header-bar.al-compact .al-burger { display: block; }
@media (max-width: 1180px) {
  .al-nav, .al-header-cta { display: none; }
  .al-burger { display: block; }
  .al-header-inner { min-height: 76px; padding-top: 14px; padding-bottom: 14px; }
  .al-logo img { width: 200px; }
}

/* ---------- Closing banner ("Ready to Get Started?") ---------- */
.al-cta-band { background: var(--al-wine); color: var(--al-white); }
.al-cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  padding: 56px var(--al-gutter);
}
.al-cta-text { display: flex; align-items: flex-start; gap: 12px; flex: 1 1 520px; }
.al-cta-mark { width: 48px; height: auto; flex: none; margin-top: 4px; }
.al-cta-band h2 { color: var(--al-white); font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; margin: 0 0 8px; }
.al-cta-band p { color: var(--al-cream); font-size: clamp(18px, 1.45vw, 20px); line-height: 1.6; margin: 0; max-width: 820px; }
.al-cta-band .al-btn { min-height: 72px; padding: 0 34px; font-size: 17px; }

/* ---------- Footer ---------- */
.al-footer-main { background: var(--al-black); color: var(--al-grey); }
.al-footer-inner { padding: 64px var(--al-gutter) 32px; }
.al-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.1fr; gap: 40px 32px; }
.al-footer-logo img { width: 286px; height: auto; display: block; margin-bottom: 52px; }
.al-footer p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; color: var(--al-grey); }
.al-footer-about { max-width: 290px; }
.al-footer-social { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 14px; }
.al-footer-social a { color: var(--al-gold); font-size: 15px; text-decoration: underline; }
.al-footer-social a:hover { color: var(--al-gold-light); }
.al-footer h3 {
  font-family: var(--al-body); font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase;
  color: var(--al-gold); margin: 0 0 14px;
}
.al-footer ul { list-style: none; margin: 0; padding: 0; }
.al-footer li { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.al-footer li a { color: #E9E2D6; text-decoration: none; }
.al-footer li a:hover { color: var(--al-gold); }
.al-visit p { position: relative; padding-left: 30px; color: #E9E2D6; margin-bottom: 14px; }
.al-visit p a { color: #E9E2D6; text-decoration: none; }
.al-visit p a:hover { color: var(--al-gold); }
.al-visit svg { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; color: var(--al-gold); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.al-footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid #2E2A28; padding-top: 22px; margin-top: 44px;
}
.al-footer-bottom p { font-size: 14px; margin: 0; }
.al-footer-legal a { color: var(--al-gold); text-decoration: underline; text-underline-offset: 3px; }
.al-footer-legal a:hover { color: var(--al-gold); }

@media (max-width: 900px) {
  .al-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .al-cta-inner { flex-direction: column; text-align: center; padding: 48px 6vw; }
  .al-cta-text { flex-direction: column; align-items: center; flex-basis: auto; }
  .al-cta-band .al-btn { width: 100%; max-width: 340px; min-height: 52px; }
  .al-footer-inner { padding: 48px 6vw 28px; }
  .al-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .al-footer-logo img { margin-bottom: 20px; }
  .al-footer-bottom { flex-direction: column; }
  .al-announce { font-size: 14px; padding: 10px 6vw; }
}
