/* ============================================
   Tone Veseth Furuholmen MW — Single Page Website
   ============================================ */

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

:root {
  --bg: #FAF7F2;
  --text: #2C2321;
  --accent: #B5564C;
  --gold: #D4A843;
  --sage: #C5C9B4;
  --straw: #E8DFC8;
  --white: #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --container: 1100px;
  --section-pad: 6rem 0;
  --header-h: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

/* --- Utility --- */
.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--straw);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Marcellus', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  height: 2rem;
  width: auto;
}

.nav-logo span {
  color: var(--accent);
}

.nav-logo:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Language toggle */
.lang-toggle {
  background: none;
  border: 1.5px solid var(--text);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle:hover {
  background: var(--text);
  color: var(--bg);
}

.lang-toggle-item {
  display: flex;
  align-items: center;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Hamburger active state */
.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 4rem;
  background: linear-gradient(170deg, var(--bg) 60%, var(--straw) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-text .mw {
  color: var(--accent);
}

.tagline {
  font-size: 1.25rem;
  font-weight: 300;
  color: #5C4A46;
  margin-bottom: 1.5rem;
}

.hero-intro {
  color: #5C4A46;
  margin-bottom: 1rem;
}

.hero-intro:last-of-type {
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s;
}

.btn:hover {
  background: var(--accent);
  color: var(--white);
}

/* Hero portrait */
.hero-photo img {
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(44, 35, 33, 0.12);
  max-height: 70vh;
  width: auto;
  margin-left: auto;
}

/* About section photo */
.about-img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(44, 35, 33, 0.12);
  object-fit: cover;
}

/* --- Section shared --- */
.section {
  padding: var(--section-pad);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.section-intro {
  max-width: 700px;
  margin-bottom: 1rem;
  color: #5C4A46;
}

.section-body {
  max-width: 700px;
  margin-bottom: 2.5rem;
  color: #5C4A46;
}

/* --- About --- */
.about {
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin-bottom: 1rem;
}

/* --- Courses --- */
.courses {
  background: var(--bg);
}

.course-tags {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.course-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: var(--straw);
  color: #7A6B5D;
  white-space: nowrap;
}

.course-tag--open {
  background: var(--accent);
  color: var(--white);
}

/* Featured / open-for-enrollment section */
.courses-featured {
  background: linear-gradient(135deg, var(--white) 0%, #FDF6F5 100%);
  border: 1px solid #E8CCC8;
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 2rem 2rem 1.5rem;
  margin-bottom: 3rem;
  max-width: 700px;
  box-shadow: 0 4px 16px rgba(181, 86, 76, 0.08);
}

.courses-featured-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.courses-featured-intro {
  font-size: 0.9rem;
  color: #5C4A46;
  margin-bottom: 1rem;
}

.courses-featured .article-list {
  margin-bottom: 0;
}

.courses-featured .article-item {
  border-color: #E8CCC8;
}

.courses-featured .article-item:last-child {
  border-bottom: none;
}

.courses-featured .article-title {
  font-weight: 600;
}

.courses-portfolio-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.courses-portfolio-intro {
  max-width: 700px;
  margin-bottom: 1.5rem;
  color: #5C4A46;
  font-size: 0.95rem;
}

.courses-note {
  max-width: 700px;
  margin-bottom: 0.75rem;
  color: #5C4A46;
}

.courses-goal {
  max-width: 700px;
  margin-bottom: 2rem;
}

.courses-topics {
  max-width: 580px;
  margin-top: 2.5rem;
}

.courses-topics-heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.courses-topics-body {
  color: #5C4A46;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* --- Press / Articles / Podcasts --- */
.press {
  background: var(--white);
}

.press-subheading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.press-subheading:first-of-type {
  margin-top: 0;
}

.article-list {
  list-style: none;
  max-width: 700px;
}

.article-item {
  border-bottom: 1px solid var(--straw);
}

.article-item a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  color: var(--text);
  gap: 1rem;
}

.article-item a:hover {
  color: var(--accent);
}

.article-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
}

.article-outlet {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Contact --- */
.contact {
  background: var(--bg);
  text-align: center;
}

.contact h2 {
  margin-bottom: 1rem;
}

.contact p {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  color: #5C4A46;
}

.email-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.email-link:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.social-links a:hover {
  color: var(--accent);
}

/* --- Course Detail Page --- */
.course-detail {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.back-link:hover {
  color: var(--gold);
}

.course-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.course-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.course-tagline {
  font-size: 1.15rem;
  font-weight: 300;
  color: #5C4A46;
  margin-bottom: 2rem;
}

.course-content p {
  margin-bottom: 1rem;
  color: #5C4A46;
  line-height: 1.7;
}

.course-learn-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.course-learn-list {
  list-style: none;
  margin-bottom: 2rem;
}

.course-learn-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: #5C4A46;
}

.course-learn-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.course-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.course-info-box {
  background: var(--white);
  border: 1px solid var(--straw);
  border-radius: 4px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.course-info-box h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.course-info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.course-info-list dt {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9E9181;
}

.course-info-list dd {
  font-size: 0.95rem;
  color: var(--text);
}

.course-cta {
  display: block;
  text-align: center;
  width: 100%;
}

/* --- Footer --- */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--straw);
  text-align: center;
  font-size: 0.85rem;
  color: #9E9181;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .course-layout {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    position: static;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo {
    max-width: 380px;
    margin: 0 auto;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 360px;
    margin: 0 auto;
  }

}

@media (max-width: 640px) {
  :root {
    --section-pad: 4rem 0;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
    z-index: 10;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    border-left: 1px solid var(--straw);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .lang-toggle-item {
    margin-top: 0.5rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: 3rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .article-item a {
    flex-direction: column;
    gap: 0.25rem;
  }
}
