/* ============================================
   OLGA MAGNUSSON WEBSITE — SHARED STYLES
   ============================================
   BRAND COLORS (edit here to change site-wide)
   ============================================ */

:root {
  --green-dark:   #2d5a3d;
  --green-mid:    #3d7a54;
  --green-light:  #e8f0eb;
  --green-accent: #4a9462;
  --text-dark:    #1a1f1c;
  --text-mid:     #3a4a3f;
  --text-muted:   #6b7c72;
  --text-light:   #9aab9f;
  --bg-white:     #ffffff;
  --bg-cream:     #f7f9f7;
  --bg-section:   #f0f4f1;
  --border:       #d4e0d8;
  --shadow:       0 2px 16px rgba(45,90,61,0.10);
  --shadow-lg:    0 8px 40px rgba(45,90,61,0.14);
  --radius:       10px;
  --radius-lg:    18px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --max-width:    1120px;
  --nav-height:   68px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { color: var(--text-mid); max-width: 65ch; }
p.wide { max-width: 80ch; }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 2.5rem);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--alt {
  background: var(--bg-cream);
}

.section--dark {
  background: var(--green-dark);
  color: #fff;
}

.section--dark h2,
.section--dark h3,
.section--dark p { color: #fff; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center { text-align: center; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-accent);
  background: var(--green-light);
  padding: 0.25em 0.75em;
  border-radius: 100px;
}

.tag--dark {
  color: #fff;
  background: rgba(255,255,255,0.18);
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--green-accent);
  border-radius: 2px;
  margin: 1.2rem 0 1.8rem;
}

.divider--center { margin-left: auto; margin-right: auto; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.14s, box-shadow 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}
.btn--primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  box-shadow: 0 4px 18px rgba(45,90,61,0.22);
}

.btn--outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn--outline:hover {
  background: var(--green-dark);
  color: #fff;
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn--sm {
  font-size: 0.82rem;
  padding: 0.5rem 1.1rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 5vw, 2.5rem);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--green-dark);
  background: var(--green-light);
}

.nav__cta {
  margin-left: 0.75rem;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg-cream);
}

.page-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; }

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-accent);
  transition: gap 0.15s;
}
.card__link:hover { gap: 0.65rem; }

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-header p {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.85);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  max-width: 34ch;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.1rem;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  padding: 0.28rem 0;
  transition: color 0.15s;
}
.footer__col a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav__links.open a {
    padding: 0.7rem 1rem;
    font-size: 1rem;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
