/* =========================================================
   Escola de Música Solfejant — SUM Moncofa
   Hoja de estilos principal
   ========================================================= */

/* ---------- Banner d'avís / noticia d'actualitat ---------- */
.announce-banner {
  background: var(--orange);
  color: #fff;
}
.announce-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  flex-wrap: wrap;
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.announce-banner__text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}
.announce-banner__badge {
  margin-right: 2px;
}
.announce-banner__link {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}
.announce-banner__link:hover { text-decoration: none; }
.announce-banner__close {
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 8px;
}
.announce-banner__close:hover { background: rgba(255, 255, 255, 0.38); }
@media (max-width: 600px) {
  .announce-banner__inner { padding: 9px 16px; }
  .announce-banner__text { font-size: 0.85rem; }
}

:root {
  --teal: #08a0b8;
  --teal-dark: #067f92;
  --lime: #86b800;
  --green: #3a9924;
  --yellow: #f0c800;
  --orange: #f8a000;
  --red-orange: #f04a1e;
  --magenta: #d00080;
  --pink: #f070a8;
  --purple: #8860a0;

  --ink: #23262b;
  --ink-soft: #565b64;
  --paper: #ffffff;
  --paper-alt: #f7f8f7;
  --line: #e6e8e6;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 18px rgba(20, 30, 40, 0.08);
  --shadow-hover: 0 10px 28px rgba(20, 30, 40, 0.14);

  --font-head: "Quicksand", "Trebuchet MS", sans-serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;

  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

ul, ol {
  padding-left: 1.3em;
}

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

.section {
  padding: 64px 0;
}
.section--alt {
  background: var(--paper-alt);
}
.section--tight {
  padding: 40px 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--teal-dark);
  background: rgba(8, 160, 184, 0.1);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--teal-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal-dark);
}
.btn-outline:hover {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 46px;
  width: auto;
}
.brand-text {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.96rem;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(8, 160, 184, 0.12);
  color: var(--teal-dark);
  text-decoration: none;
}

.nav-cta {
  background: var(--red-orange) !important;
  color: #fff !important;
}
.nav-cta:hover {
  background: #d13c14 !important;
  color: #fff !important;
}

.lang-switch {
  border: 1.5px solid var(--teal) !important;
  color: var(--teal-dark) !important;
  padding: 8px 14px !important;
}
.lang-switch:hover {
  background: var(--teal) !important;
  color: #fff !important;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 480px; }
  .main-nav ul {
    flex-direction: column;
    padding: 10px 24px 20px;
    gap: 2px;
  }
  .main-nav a { padding: 12px 10px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 60px;
  background:
    radial-gradient(circle at 88% 12%, rgba(240,74,30,0.10), transparent 42%),
    radial-gradient(circle at 6% 85%, rgba(8,160,184,0.10), transparent 40%),
    var(--paper);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-copy .eyebrow { }
.hero-copy h1 { margin-bottom: 0.3em; }
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  max-width: 380px;
}
.hero--simple .container {
  grid-template-columns: 1fr;
  text-align: left;
}
.hero--simple { padding: 52px 0 46px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }
  .hero-visual { order: -1; }
}

/* dot rail decoration */
.note-rail {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.note-rail span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.note-rail span:nth-child(1) { background: var(--teal); }
.note-rail span:nth-child(2) { background: var(--lime); }
.note-rail span:nth-child(3) { background: var(--pink); }
.note-rail span:nth-child(4) { background: var(--purple); }
.note-rail span:nth-child(5) { background: var(--yellow); }
.note-rail span:nth-child(6) { background: var(--orange); }
.note-rail span:nth-child(7) { background: var(--magenta); }
.note-rail span:nth-child(8) { background: var(--red-orange); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card .icon-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  font-size: 1.1rem;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

.card--link {
  display: block;
  color: inherit;
}
.card--link:hover { text-decoration: none; }

/* color rotation helper */
.c1 { background: var(--teal); }
.c2 { background: var(--lime); }
.c3 { background: var(--pink); }
.c4 { background: var(--purple); }
.c5 { background: var(--orange); }
.c6 { background: var(--magenta); }
.c7 { background: var(--green); }
.c8 { background: var(--red-orange); }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--paper);
}
thead th {
  background: var(--teal);
  color: #fff;
  font-family: var(--font-head);
  text-align: left;
  padding: 14px 16px;
  font-size: 0.95rem;
}
tbody td, tbody th {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
  text-align: left;
}
tbody tr:nth-child(even) { background: var(--paper-alt); }
tbody th { font-family: var(--font-head); font-weight: 700; }

.table-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- Pricing ---------- */
.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--paper-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.price-list .amount {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal-dark);
  white-space: nowrap;
}

/* ---------- Callout / banner ---------- */
.callout {
  background: linear-gradient(120deg, var(--teal), var(--teal-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.callout h2, .callout p { color: #fff; }
.callout p { color: rgba(255,255,255,0.9); margin-bottom: 0; }
.callout .btn-primary {
  background: #fff;
  color: var(--teal-dark);
}
.callout .btn-primary:hover { background: #f2f2f2; }

.info-box {
  border-left: 4px solid var(--orange);
  background: #fff8ec;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 20px 0;
}
.info-box p:last-child { margin-bottom: 0; }

/* ---------- Timeline / steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  gap: 18px;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Breadcrumb / page hero ---------- */
.page-hero {
  padding: 46px 0 40px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--line);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--paper-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.contact-list .tag {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal-dark);
  min-width: 92px;
}
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-frame iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #17222a;
  color: #cfd8de;
  padding: 52px 0 26px;
  margin-top: 40px;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}
.footer-brand img {
  height: 40px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-brand p {
  font-size: 0.9rem;
  color: #a9b4bb;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: #93a0a8;
}
.footer-bottom a { color: #93a0a8; text-decoration: underline; }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row a:hover { background: var(--teal); text-decoration: none; }

/* ---------- Legal pages ---------- */
.legal h2 { margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(8,160,184,0.12);
  color: var(--teal-dark);
  margin-bottom: 10px;
}
