/* Valga Segakoor — staatiline leht (iseseisev CSS, Tailwindita) */

/* Baas: preded ja fondid */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'DM Sans', sans-serif; letter-spacing: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, .brand, .footer-brand { font-family: 'DM Serif Display', serif; font-weight: 400; }
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* Valga Segakoor semantic palette */
:root {
  --background: oklch(0.98 0.003 85);
  --foreground: oklch(0.29 0.055 265);
  --primary: oklch(0.8 0.135 83);
  --primary-foreground: oklch(0.25 0.05 265);
  --muted-foreground: oklch(0.5 0.025 260);
  --accent: oklch(0.93 0.025 83);
  --border: oklch(0.88 0.008 260);
  --navy: oklch(0.285 0.055 265);
  --on-navy: oklch(0.97 0.007 280);
  --soft-on-navy: oklch(0.79 0.023 265);
  --pink: oklch(0.77 0.12 345);
  --teal: oklch(0.76 0.095 180);
  --lavender: oklch(0.76 0.1 285);
  --radius: 0.375rem;
}

body { background: var(--background); color: var(--foreground); }

.content-width { max-width: 1200px; margin-inline: auto; padding-inline: 56px; }
.masthead { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; }
.site-header { position: relative; z-index: 2; height: 106px; padding: 0 56px; color: var(--on-navy); display: flex; align-items: center; gap: 36px; }
.brand { display: flex; gap: 12px; align-items: center; font-size: 25px; line-height: .95; }
.brand-note { color: var(--primary); width: 39px; height: 48px; }

.hero { position: relative; z-index: 2; height: 400px; color: var(--on-navy); }
.hero-art { position: absolute; top: 0; bottom: 0; right: 0; width: min(1250px, 84%); height: 100%; object-fit: cover; object-position: 100% center; filter: saturate(.88) contrast(1.02); mask-image: linear-gradient(90deg, transparent 0, black 5%); -webkit-mask-image: linear-gradient(90deg, transparent 0, black 5%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg,var(--navy) 0%,var(--navy) 20%,color-mix(in oklch,var(--navy) 80%,transparent) 30%,transparent 44%); }
.hero-content { position: relative; max-width: 1200px; margin: auto; padding: 40px 56px 26px; }
.hero h1 { font-size: 80px; line-height: .99; margin: 14px 0 18px; }
.hero-tagline { font-size: 24px; line-height: 1.35; font-family: 'DM Serif Display',serif; }
.hero-tagline em { font-weight: 400; color: var(--primary); }

.color-ribbon { display: grid; grid-template-columns: repeat(4,1fr); height: 8px; }
.color-ribbon span:nth-child(1) { background: var(--pink); }.color-ribbon span:nth-child(2) { background: var(--primary); }.color-ribbon span:nth-child(3) { background: var(--teal); }.color-ribbon span:nth-child(4) { background: var(--lavender); }

.intro { padding-top: 70px; padding-bottom: 65px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; margin-top: 25px; }
h2 { font-size: 48px; line-height: 1.14; }
h2 em { font-weight: 400; }
.intro-copy { font-size: 17px; line-height: 1.7; padding-top: 5px; color: var(--muted-foreground); }
.intro-copy p + p { margin-top: 14px; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 52px; border-top: 1px solid var(--border); }
.value-item { position: relative; padding: 29px 32px 0; border-right: 1px solid var(--border); }
.value-item:first-child { padding-left: 0; }.value-item:last-child { border-right: 0; }
.value-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; }
.pink { background: color-mix(in oklch,var(--pink) 22%,var(--background)); }.teal { background: color-mix(in oklch,var(--teal) 25%,var(--background)); }.lavender { background: color-mix(in oklch,var(--lavender) 23%,var(--background)); }
.value-item h3 { margin-top: 20px; font-size: 19px; font-weight: 600; }
.value-item p { font-size: 15px; line-height: 1.65; color: var(--muted-foreground); margin-top: 10px; max-width: 300px; }

.rehearsals { padding-bottom: 70px; }
.rehearsal-card { background: var(--accent); border-radius: var(--radius); padding: 32px 46px; }
.rehearsal-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.rehearsal-facts li { display: grid; grid-template-columns: 48px minmax(0,1fr); column-gap: 16px; align-items: center; }
.fact-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted-foreground); }
.fact-value { display: block; font-size: 19px; font-weight: 600; margin-top: 2px; }

.conductor { padding-bottom: 70px; }
.conductor-card { display: grid; grid-template-columns: 360px 1fr; background: var(--navy); color: var(--on-navy); border-radius: var(--radius); overflow: hidden; }
.conductor-mark { background: color-mix(in oklch,var(--navy) 82%,black); min-height: 320px; overflow: hidden; }
.conductor-mark img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.conductor-info { padding: 42px 46px 46px; }
.conductor-role { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--primary); }
.conductor-info h2 { font-size: 38px; margin-top: 12px; }
.conductor-info p { font-size: 16px; line-height: 1.75; color: var(--soft-on-navy); margin-top: 14px; max-width: 62ch; }

.site-footer { position: relative; display: flex; align-items: center; gap: 30px; border-top: 1px solid var(--border); padding-block: 27px; font-size: 14px; }.footer-brand { display: flex; align-items: center; font-size: 20px; }.site-footer span { margin-left: auto; color: var(--muted-foreground); }.footer-contact { position: absolute; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 15px; }.footer-contact a { color: var(--foreground); text-decoration: none; }.footer-contact a:hover { color: var(--primary); }.footer-ribbon { height: 5px; }

@media(max-width:900px) { .site-header { padding-inline: 28px; gap: 20px; }.hero-content { padding-inline: 32px; }.hero h1 { font-size: 68px; }.content-width { padding-inline: 32px; }.intro-grid { gap: 30px; }h2 { font-size: 40px; }.conductor-card { grid-template-columns: 1fr; }.conductor-mark { padding: 38px 30px; }.conductor-info { padding: 34px 32px 38px; }.conductor-mark { height: 400px; padding: 0; } }
@media(max-width:640px) { .site-header { height: 84px; padding-inline: 22px; }.brand { font-size: 21px; }.brand-note { width: 30px; }.masthead { display: flex; flex-direction: column; }.hero { height: auto; order: 1; }.hero-content { padding: 26px 24px; }.hero h1 { font-size: 58px; margin-top: 16px; }.hero-tagline { font-size: 20px; }.content-width { padding-inline: 24px; }.intro { padding-top: 45px; padding-bottom: 42px; }.intro-grid { grid-template-columns: 1fr; gap: 25px; }h2 { font-size: 39px; }.intro-copy { font-size: 16px; }.values-grid { grid-template-columns: 1fr; margin-top: 34px; }.value-item,.value-item:first-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--border); }.value-item:last-child { border-bottom: 0; padding-bottom: 0; }.value-item { display: grid; grid-template-columns: 48px minmax(0,1fr); column-gap: 16px; align-items: start; }.value-icon { grid-row: 1; }.value-item h3 { margin-top: 12px; grid-column: 2; }.value-item p { max-width: none; grid-column: 1 / -1; }.site-footer { flex-wrap: wrap; gap: 14px; }.site-footer span { margin-left: 0; width: 100%; order: 3; }.conductor-card { grid-template-columns: 1fr; }.conductor-mark { padding: 30px; }.conductor-info { padding: 26px 22px 32px; }.conductor-info h2 { font-size: 30px; }.footer-contact { position: static; transform: none; width: 100%; order: 2; align-items: flex-start; }.conductor { padding-bottom: 45px; }.conductor-mark { height: 330px; padding: 0; }.conductor-mark img { object-position: center 0%; }.rehearsals { padding-bottom: 45px; }.rehearsal-card { padding: 24px 22px; }.rehearsal-facts { grid-template-columns: 1fr; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; }* { transition: none !important; } }

@media(max-width:640px) { .hero-art { position: static; order: 2; max-width: none; width: 100%; margin-left: 0; height: auto; aspect-ratio: 1858 / 950; object-position: right center; mask-image: linear-gradient(180deg, transparent 0, black 11%); -webkit-mask-image: linear-gradient(180deg, transparent 0, black 11%); }.hero-shade { background: none; } }
@media(min-width:641px) and (max-width:900px) { .masthead { display: flex; flex-direction: column; }.hero { height: auto; order: 1; }.hero-art { position: static; order: 2; top: auto; bottom: auto; left: auto; right: auto; width: 100%; max-width: none; margin-left: 0; height: auto; aspect-ratio: 1858 / 900; object-position: center; mask-image: linear-gradient(180deg, transparent 0, black 11%); -webkit-mask-image: linear-gradient(180deg, transparent 0, black 11%); }.hero-shade { background: none; } }

/* --- header sync --- */
.masthead { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; height: 486px; }
.hero { position: relative; z-index: 2; color: var(--on-navy); }
.hero-art { position: absolute; top: 0; right: 0; height: 100%; width: auto; object-fit: cover; object-position: right center; filter: saturate(.88) contrast(1.02); mask-image: linear-gradient(90deg, transparent 0, transparent 2%, black 10%); -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 2%, black 10%); }
.hero-shade { display: none; }
.hero-content { position: relative; max-width: 1200px; margin: auto; padding: 40px 56px 26px; }
.hero h1 { font-size: 62px; line-height: .99; margin: 12px 0 16px; }
.hero-tagline { font-size: 20px; line-height: 1.35; font-family: 'DM Serif Display',serif; }
@media(min-width:1401px) { .masthead { height: calc(26.5vw + 113px); } }
@media (max-width:1400px) and (min-width:1251px) { .masthead { height: calc(26vw + 126px); } }
@media (max-width:1250px) and (min-width:901px) { .masthead { height: calc(24vw + 116px); }.hero h1 { font-size: 62px; } }
@media (max-width:1050px) and (min-width:901px) { .masthead { height: calc(18vw + 150px); }.hero-content { padding: 14px 32px 12px; }.hero h1 { font-size: 50px; margin: 6px 0 8px; }.hero-tagline { font-size: 17px; } }
@media(min-width:1500px) { .site-header { padding-inline: calc((100vw - 1088px)/2); } }
@media(max-width:640px) { .masthead { display: flex; flex-direction: column; height: auto; }.hero { height: auto; order: 1; }.hero-art { position: static; order: 2; max-width: none; width: 100%; margin-left: 0; height: auto; aspect-ratio: 1858 / 950; right: auto; bottom: auto; object-position: right center; mask-image: linear-gradient(180deg, transparent 0, black 4%); -webkit-mask-image: linear-gradient(180deg, transparent 0, black 4%); }.hero-shade { background: none; } }
@media (min-width:641px) and (max-width:900px) { .masthead { display: flex; flex-direction: column; height: auto; }.hero { height: auto; order: 1; }.hero-art { position: static; order: 2; top: auto; bottom: auto; left: auto; right: auto; width: 100%; max-width: none; margin-left: 0; height: auto; aspect-ratio: 1858 / 900; object-position: center; mask-image: linear-gradient(180deg, transparent 0, black 4%); -webkit-mask-image: linear-gradient(180deg, transparent 0, black 4%); }.hero-shade { background: none; } }
