@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Fustat:wght@400;500;600;700&family=Caveat:wght@400;500&display=swap');

:root {
  --bg: #FAF8F6;
  --bg-alt: #F5F1ED;
  --primary: #5B7C6E;
  --primary-dark: #4A6A5C;
  --accent: #C4A882;
  --accent-dark: #B09570;
  --text: #3D3D3D;
  --text-muted: #6B6157;
  --dark: #2C3530;
  --dark-deep: #1E2723;
  --border: rgba(193, 174, 142, 0.2);
  --shadow: 0 8px 24px rgba(60, 50, 40, 0.08);
  --shadow-lg: 0 16px 48px rgba(60, 50, 40, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Schibsted Grotesk', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: 'Fustat', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
  letter-spacing: -0.03em;
}

h1 { letter-spacing: -0.04em; }

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

a { color: var(--primary); text-decoration: none; }

/* ---- ANNOUNCEMENT BAR ---- */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  font-family: 'Schibsted Grotesk', sans-serif;
}
.topbar a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- NAVIGATION ---- */
.nav {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow); border-bottom-color: transparent; }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--text-muted);
  letter-spacing: -1.44px;
}
.nav-logo-text span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.2px;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 0.55rem 1.3rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.2px;
  text-decoration: none;
  transition: all 0.25s ease-out;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-warm { background: var(--accent); color: var(--dark); }
.btn-warm:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--dark); }
.btn-white:hover { background: var(--bg-alt); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---- HERO (static fallback, pages without video) ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,53,48,0.82) 0%, rgba(44,53,48,0.55) 60%, rgba(91,124,110,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 2rem 4rem;
  width: 100%;
}
.hero-label {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 600px;
}
.hero p {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- PAGE HERO (sub pages) ---- */
.page-hero {
  position: relative;
  padding: 7rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}
.page-hero-img {
  position: absolute;
  inset: 0;
}
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,53,48,0.85) 0%, rgba(44,53,48,0.7) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 520px; margin: 0 auto; font-family: 'Schibsted Grotesk', sans-serif; }
.page-hero .hero-label { text-align: center; }

/* ---- SECTIONS ---- */
.section { padding: 5.5rem 2rem; }
.section-sm { padding: 3.5rem 2rem; }
.section-lg { padding: 7rem 2rem; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.72); }
.section-primary { background: var(--primary); color: #fff; }
.section-primary h2 { color: #fff; }
.section-primary p { color: rgba(255,255,255,0.8); }

.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 800px; margin: 0 auto; }

/* Section headers */
.sh { margin-bottom: 3rem; }
.sh-center { text-align: center; }
.sh-label {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
  display: block;
}
.section-dark .sh-label { color: var(--accent); }
.sh h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 0.8rem; }
.sh p { color: var(--text-muted); font-size: 1rem; max-width: 540px; font-family: 'Schibsted Grotesk', sans-serif; }
.sh-center p { margin-left: auto; margin-right: auto; }

/* ---- GRID LAYOUTS ---- */
.grid { display: grid; gap: 2.5rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-2-asym { grid-template-columns: 1.2fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-align { align-items: center; }

/* ---- IMAGE TREATMENT ---- */
.img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-out;
}
.img-frame:hover img { transform: scale(1.03); }
/* Glassmorphism card */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.glass-light {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.img-tall { min-height: 400px; }
.img-med { min-height: 320px; }

/* ---- CARDS ---- */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--primary); stroke-width: 1.5; fill: none; }

.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; font-family: 'Schibsted Grotesk', sans-serif; }

/* ---- TESTIMONIALS ---- */
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}
.testimonial-quote {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-quote::before {
  content: open-quote;
  font-family: 'Fustat', sans-serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 0.1em;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}
.testimonial-name {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: var(--dark);
}
.testimonial-stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

/* ---- TAG LIST ---- */
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  background: #fff;
  color: var(--text);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- FAQ ACCORDION ---- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q::after { content: '+'; font-size: 1.4rem; font-weight: 300; color: var(--primary); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1.25rem; }
.faq-a p { color: var(--text-muted); line-height: 1.8; font-family: 'Schibsted Grotesk', sans-serif; }

/* ---- CONTACT FORM ---- */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-family: 'Schibsted Grotesk', sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: var(--text);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,124,110,0.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }

/* ---- CONTACT INFO ---- */
.contact-card {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}
.contact-row:last-child { margin-bottom: 0; }
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; stroke: var(--accent); stroke-width: 1.5; fill: none; }
.contact-row small { font-family: 'Schibsted Grotesk', sans-serif; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.45); display: block; margin-bottom: 0.15rem; }
.contact-row a { color: #fff; text-decoration: none; font-family: 'Schibsted Grotesk', sans-serif; font-size: 0.92rem; }
.contact-row a:hover { color: var(--accent); }
.contact-row p { font-family: 'Schibsted Grotesk', sans-serif; font-size: 0.92rem; color: rgba(255,255,255,0.85); }

/* ---- PARTNER CARDS ---- */
.partner {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 280px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.partner:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.partner-body { padding: 2.5rem; }
.partner-badge {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--primary);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.partner-body h3 { font-size: 1.4rem; margin-bottom: 0.8rem; }
.partner-body p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; font-family: 'Schibsted Grotesk', sans-serif; }
.partner-img { background: var(--bg-alt); }
.partner-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---- TEAM CARDS ---- */
.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.team-card-img { height: 320px; overflow: hidden; background: var(--bg-alt); }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card-body { padding: 1.5rem; }
.team-card-body h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.team-card-body .role { color: var(--primary); font-family: 'Schibsted Grotesk', sans-serif; font-size: 0.82rem; font-weight: 500; }
.team-card-body .email { color: var(--text-muted); font-family: 'Schibsted Grotesk', sans-serif; font-size: 0.82rem; margin-top: 0.4rem; }

/* ---- HOURS TABLE ---- */
.hours { width: 100%; font-family: 'Schibsted Grotesk', sans-serif; font-size: 0.92rem; }
.hours tr { border-bottom: 1px solid var(--border); }
.hours tr:last-child { border: none; }
.hours td { padding: 0.6rem 0; }
.hours td:first-child { font-weight: 500; }
.hours td:last-child { text-align: right; color: var(--text-muted); }

/* ---- FOOTER ---- */
.footer { background: var(--dark-deep); color: #fff; padding: 4rem 2rem 2rem; margin-top: 0; }

/* Pre-footer CTA band with cactus background */
.prefooter {
  position: relative;
  padding: 3rem 2rem;
  text-align: center;
  overflow: hidden;
  max-height: 280px;
}
.prefooter-img {
  position: absolute;
  inset: 0;
}
.prefooter-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prefooter-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44,53,48,0.65);
}
.prefooter-content {
  position: relative;
  z-index: 2;
}
.prefooter-content p,
.prefooter-content a,
.prefooter-content h3 {
  color: #fff;
}
.prefooter-content .contact-line {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}
.prefooter-content .contact-line a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prefooter-content .address {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}
.prefooter-content .prefooter-btn {
  display: inline-block;
  padding: 0.7rem 2.5rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  color: #fff;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}
.prefooter-content .prefooter-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 0.75rem;
  letter-spacing: -1.44px;
  color: rgba(255,255,255,0.6);
}
.footer-brand span { color: var(--accent); }
.footer-desc { color: rgba(255,255,255,0.45); font-family: 'Schibsted Grotesk', sans-serif; font-size: 0.88rem; max-width: 280px; line-height: 1.7; }
.footer h4 {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.35);
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-family: 'Schibsted Grotesk', sans-serif; font-size: 0.88rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Schibsted Grotesk', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.footer-social a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-family: 'Schibsted Grotesk', sans-serif;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--accent); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .partner { grid-template-columns: 1fr; }
  .partner-img { height: 220px; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.15rem; }

  .grid-2, .grid-2-asym, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 1.25rem; }
  .hero { min-height: 70vh; }
  .hero-content { padding: 2rem 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .page-hero { padding: 5rem 1.25rem 3rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
