/*
Theme Name: ORIGINI Summer School
Theme URI: https://originiat.ro
Author: ORIGINI
Author URI: https://originiat.ro
Description: A one-page theme for the ORIGINI Summer School – where the professional and personal identities meet.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: origini
Tags: one-page, custom-background, custom-logo, education
*/

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
  --bg: hsl(35, 33%, 96%);
  --fg: hsl(25, 20%, 16%);
  --card: hsl(35, 30%, 93%);
  --primary: hsl(16, 55%, 42%);
  --primary-fg: hsl(35, 33%, 96%);
  --secondary: hsl(90, 18%, 50%);
  --muted: hsl(35, 25%, 90%);
  --muted-fg: hsl(25, 12%, 45%);
  --accent: hsl(30, 60%, 70%);
  --border: hsl(30, 20%, 85%);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ============================================
   Utilities
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 24px; }
.section--card { background: var(--card); }
.section--dark { background: var(--fg); color: var(--bg); }
.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  display: block;
}
.section--dark .label { color: var(--accent); }

/* ============================================
   Navigation
   ============================================ */
.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav__brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--primary-fg);
  transition: opacity 0.3s;
}
.site-nav__brand:hover { opacity: 0.8; }
.site-nav__links {
  display: flex;
  gap: 32px;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: hsla(35, 33%, 96%, 0.8);
}
.site-nav__links a:hover { color: var(--primary-fg); }

@media (max-width: 768px) {
  .site-nav { padding: 24px 16px; }
  .site-nav__links { display: none; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, hsla(25,20%,16%,0.8), hsla(25,20%,16%,0.3) 50%, transparent);
}
.hero__content {
  position: relative; z-index: 10;
  padding: 24px 24px 64px;
  max-width: 800px;
}
.hero__subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(1.875rem, 5vw, 3.75rem);
  color: var(--primary-fg);
  margin-bottom: 24px;
}
.hero__title em { font-style: italic; font-weight: 400; }
.hero__desc {
  font-size: 1.125rem;
  color: hsla(35, 33%, 96%, 0.7);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: opacity 0.3s, border-color 0.3s;
  cursor: pointer;
  border: none;
}
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { opacity: 0.9; }
.btn--outline {
  background: transparent;
  border: 1px solid hsla(35,33%,96%,0.3);
  color: var(--primary-fg);
}
.btn--outline:hover { border-color: hsla(35,33%,96%,0.6); }

@media (min-width: 769px) {
  .hero__content { padding: 24px 64px 96px; }
}

/* ============================================
   About
   ============================================ */
.about__content { max-width: 800px; margin: 0 auto; }
.about__content p { color: var(--muted-fg); margin-bottom: 24px; }
.about__questions {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 32px;
}
.about__questions .label { margin-bottom: 24px; }
.about__questions li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--fg);
}
.about__questions li span { color: var(--primary); flex-shrink: 0; }

/* ============================================
   Concepts
   ============================================ */
.concepts__header { max-width: 640px; margin-bottom: 64px; }
.concepts__header p { color: var(--muted-fg); font-size: 0.875rem; }
.concepts__header h3 { margin-top: 24px; font-size: 1.25rem; }
.concepts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.concept-card {
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.5s;
}
.concept-card:hover { border-color: hsla(16, 55%, 42%, 0.3); }
.concept-card__icon {
  width: 24px; height: 24px;
  color: var(--primary);
  margin-bottom: 24px;
}
.concept-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.concept-card .ref { font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 16px; }
.concept-card p { font-size: 0.875rem; color: var(--muted-fg); }

/* ============================================
   Program
   ============================================ */
.program__header { max-width: 640px; margin-bottom: 64px; }
.program__header p { color: var(--muted-fg); }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 80px; }
.outcome {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
}
.outcome__num { font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary); }
.outcome p { text-transform: capitalize; }

.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.schedule h3 { font-size: 1.5rem; margin-bottom: 24px; }
.schedule__label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: 16px; }
.time-row { display: flex; gap: 16px; font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 12px; }
.time-row .time { color: var(--primary); font-weight: 500; width: 112px; flex-shrink: 0; }
.day-card { padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 2px; margin-bottom: 16px; }
.day-card .day-name { color: var(--primary); font-weight: 500; margin-bottom: 4px; }
.day-card p { font-size: 0.875rem; color: var(--muted-fg); }

@media (max-width: 768px) {
  .outcomes { grid-template-columns: 1fr; }
  .schedule { grid-template-columns: 1fr; }
}

/* ============================================
   Faculty
   ============================================ */
.faculty__content { max-width: 800px; margin: 0 auto; }
.faculty__bio { display: flex; gap: 48px; }
.faculty__photo {
  width: 256px; flex-shrink: 0;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, hsla(16,55%,42%,0.1), hsla(90,18%,50%,0.2));
  border-radius: 2px;
}
.faculty__info h3 { font-size: 1.5rem; margin-bottom: 4px; }
.faculty__info .role { font-size: 0.875rem; color: var(--primary); margin-bottom: 16px; }
.faculty__info p { font-size: 0.875rem; color: var(--muted-fg); }

@media (max-width: 768px) {
  .faculty__bio { flex-direction: column; gap: 32px; }
  .faculty__photo { width: 100%; }
}

/* ============================================
   Details
   ============================================ */
.details__header { max-width: 640px; margin-bottom: 64px; }
.details__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
.detail-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.detail-card svg { color: var(--primary); margin-bottom: 16px; }
.detail-card .detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 8px;
}
.detail-card .detail-value { font-family: var(--font-heading); font-size: 1.125rem; }
.details__cta {
  padding: 32px 48px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted-fg);
}

@media (max-width: 768px) {
  .details__grid { grid-template-columns: 1fr; }
}

/* ============================================
   Apply CTA
   ============================================ */
.apply { text-align: center; }
.apply h2 { font-size: clamp(1.875rem, 4vw, 3rem); color: var(--bg); margin-bottom: 24px; }
.apply h2 em { font-style: italic; font-weight: 400; }
.apply p { color: hsla(35,33%,96%,0.6); max-width: 500px; margin: 0 auto 40px; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer__brand { font-family: var(--font-heading); font-size: 1.125rem; }
.site-footer__links { display: flex; gap: 32px; font-size: 0.875rem; color: var(--muted-fg); }
.site-footer__links a:hover { color: var(--fg); }
.site-footer__copy { font-size: 0.75rem; color: var(--muted-fg); }
