/* =============================================================================
   ERAVA — Style Sheet
   One-page website for Erava, renewable energy advisory, MENA region
   
   TO EDIT: Each section is clearly labelled. Find the section you want to
   change and ask an AI assistant to update it. Don't change variable names
   in the :root block without updating every place they're used.
   ============================================================================= */

/* =============================================================================
   SECTION: Self-hosted Poppins font
   Self-hosted (instead of loaded from Google's servers) so visitor IP
   addresses are never sent to Google just for displaying text — keeps the
   privacy policy simple and avoids a well-known GDPR grey area in Germany.
   ============================================================================= */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/poppins-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/poppins-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poppins-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =============================================================================
   SECTION: CSS Variables (Brand Colours & Typography)
   Change brand colours here and they update everywhere on the page.
   ============================================================================= */
:root {
  --color-bg:        #000000;       /* Main background — pure black */
  --color-surface:   #111111;       /* Card / nav background */
  --color-surface-2: #1a1a1a;      /* Slightly lighter surface for hover states */
  --color-border:    #222222;       /* Subtle divider lines */
  --color-teal:      #1ABC9C;       /* Primary brand colour — teal */
  --color-teal-dark: #159a80;       /* Darker teal for hover states */
  --color-amber:     #F4C842;       /* Accent colour — amber/gold */
  --color-white:     #FFFFFF;       /* Headings */
  --color-body:      rgba(255, 255, 255, 0.72); /* Body text on dark bg */
  --color-muted:     rgba(255, 255, 255, 0.45); /* Secondary / label text */

  --font-primary: 'Poppins', sans-serif;

  --nav-height: 96px;
  --section-pad: 100px;
  --container-max: 1160px;
  --card-radius: 0px;               /* Sharp corners — brand style */
  --transition: 0.25s ease;
}

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

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =============================================================================
   SECTION: Layout Helpers
   ============================================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

/* Section eyebrow label — all-caps, letter-spaced, teal */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 16px;
}

/* Section heading */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-intro {
  max-width: 580px;
  font-size: 1rem;
  color: var(--color-body);
}

/* Amber rule — short decorative underline */
.amber-rule {
  width: 40px;
  height: 3px;
  background: var(--color-amber);
  margin-top: 20px;
  margin-bottom: 40px;
}

/* =============================================================================
   SECTION: Buttons
   ============================================================================= */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border-radius: 6px;
}

/* Primary CTA — teal fill */
.btn-primary {
  background: var(--color-teal);
  color: #000;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-teal-dark);
  transform: translateY(-2px);
}

/* Outline variant */
.btn-outline {
  background: transparent;
  color: var(--color-teal);
  border: 1.5px solid var(--color-teal);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-teal);
  color: #000;
  transform: translateY(-2px);
}

/* =============================================================================
   SECTION: Navigation
   ============================================================================= */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}

/* Nav gains a visible border when page is scrolled */
#nav.scrolled {
  background: rgba(0, 0, 0, 0.96);
  border-bottom-color: var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo img {
  height: 90px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-teal);
}

/* CTA in nav */
.nav-cta {
  display: none; /* hidden on mobile, shown on desktop */
  padding: 11px 26px;
  font-size: 0.7rem;
}

/* Hamburger menu (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile menu open state */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.97);
  border-bottom: 1px solid var(--color-border);
  padding: 24px;
  z-index: 99;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--color-teal);
}

.nav-mobile .btn {
  margin-top: 8px;
  width: 100%;
  text-align: center;
}

/* =============================================================================
   SECTION: Hero
   ============================================================================= */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  background-image: url('/assets/hero-bg.jpg');
  background-size: cover;
  background-position: center 40%;
}

/* Dark overlay — keeps text readable, photo is just a subtle texture */
#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.80) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
  max-width: 760px;
}

.hero-logo {
  height: 90px;
  width: auto;
  margin-bottom: 48px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 20px;
}

/* EDIT: Hero headline */
.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* EDIT: Hero sub-headline */
.hero-sub {
  font-size: 1.1rem;
  color: var(--color-body);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-divider {
  width: 40px;
  height: 3px;
  background: var(--color-amber);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2.4s infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-teal), transparent);
}

@keyframes bounce {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;   transform: translateX(-50%) translateY(6px); }
}

/* =============================================================================
   SECTION: Services
   ============================================================================= */
#services {
  background: var(--color-surface);
}

.services-header {
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px; /* hairline gaps between cards */
}

.service-card {
  background: var(--color-bg);
  padding: 40px 32px;
  position: relative;
  transition: background var(--transition);
}

.service-card::before {
  /* Teal top border on hover */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  background: var(--color-surface-2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: var(--color-teal);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* EDIT: Service card title */
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

/* EDIT: Service card description */
.service-card p {
  font-size: 0.9rem;
  color: var(--color-body);
  line-height: 1.7;
}

/* EDIT: Service card question (yellow line under the title) */
.service-question {
  color: var(--color-amber) !important;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 12px;
}

/* EDIT: Service card bullet list */
.service-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-body);
  line-height: 1.5;
}

.service-list li::before {
  content: '\25A0';
  color: var(--color-teal);
  font-size: 0.7em;
  line-height: 1.7;
  flex-shrink: 0;
}

/* Second CTA strip — above Contact section */
.cta-strip {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 64px 0;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.cta-strip h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-white);
  max-width: 500px;
}

/* =============================================================================
   SECTION: Speaking & Facilitation
   ============================================================================= */
#speaking-facilitation {
  background: var(--color-bg);
}

#speaking-facilitation .service-list {
  max-width: 640px;
}

/* =============================================================================
   SECTION: About
   ============================================================================= */
#about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.about-content .section-intro {
  margin-bottom: 24px;
}

/* EDIT: About region stats */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.stat-item {
  border-left: 2px solid var(--color-amber);
  padding-left: 16px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* About visual panel (right side) */
.about-visual {
  position: relative;
  aspect-ratio: 2 / 3;
  max-width: 420px;
  margin-left: auto;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-visual-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Decorative teal corner accent */
.about-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 80px; height: 80px;
  border-top: 2px solid var(--color-teal);
  border-left: 2px solid var(--color-teal);
}

.about-visual::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  border-bottom: 2px solid var(--color-amber);
  border-right: 2px solid var(--color-amber);
}

/* =============================================================================
   SECTION: Media & Appearances
   ============================================================================= */
#media {
  background: var(--color-bg);
}

/* Tab bar */
.media-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0;
}

.media-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.media-tab:hover {
  color: var(--color-text);
}

.media-tab.active {
  color: var(--color-teal);
  border-bottom-color: var(--color-teal);
}

/* Tab panels */
.media-panel {
  display: none;
}

.media-panel.active {
  display: block;
}

/* Cards grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.media-card {
  background: var(--color-surface);
  padding: 28px;
  border-left: 3px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}

.media-card:hover {
  border-left-color: var(--color-teal);
  transform: translateY(-2px);
}

/* Optional video/preview thumbnail — square, shown above the card text when
   a YouTube link (auto-detected) or manual thumbnail URL is present. */
.media-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  margin: -28px -28px 0 -28px;
  overflow: hidden;
  background: var(--color-bg);
}

.media-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.media-card-thumb:hover img {
  transform: scale(1.04);
}

.media-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

/* Badges */
.media-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
}

.media-badge.upcoming  { background: var(--color-amber); color: #000; }
.media-badge.past      { background: rgba(255,255,255,0.08); color: var(--color-muted); }
.media-badge.writing   { background: rgba(26,188,156,0.15); color: var(--color-teal); }
.media-badge.interview { background: rgba(26,188,156,0.15); color: var(--color-teal); }

.media-date {
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

.media-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}

.media-card-sub {
  font-size: 0.8rem;
  color: var(--color-teal);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.media-card-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.media-card-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal);
  text-decoration: none;
  transition: opacity var(--transition);
}

.media-card-link:hover { opacity: 0.7; }

/* Beyond Advisory — integrated into Media & Appearances, below the tabs.
   Collapsed by default behind a chevron toggle so it reads as a minor,
   complementary note rather than a peer section. */
.media-beyond {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  max-width: 640px;
}

.media-beyond-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.media-beyond-toggle .eyebrow {
  margin-bottom: 0;
}

.media-beyond-chevron {
  width: 18px;
  height: 18px;
  stroke: var(--color-teal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.media-beyond-toggle[aria-expanded="true"] .media-beyond-chevron {
  transform: rotate(180deg);
}

.media-beyond-content {
  margin-top: 20px;
}

.media-beyond-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

/* =============================================================================
   SECTION: Testimonials
   ============================================================================= */
#testimonials {
  background: var(--color-surface);
}

.testimonials-header {
  margin-bottom: 56px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}

.testimonial-card {
  background: var(--color-bg);
  padding: 40px 32px;
  position: relative;
}

/* Amber accent rule at top of testimonial card */
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 32px;
  width: 32px; height: 2px;
  background: var(--color-amber);
}

/* EDIT: Testimonial quote mark */
.testimonial-quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-teal);
  opacity: 0.3;
  font-family: Georgia, serif;
  margin-bottom: 12px;
  display: block;
}

/* EDIT: Testimonial text */
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--color-body);
  line-height: 1.75;
  margin-bottom: 28px;
  font-style: italic;
}

.testimonial-author {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

/* EDIT: Testimonial name */
.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 2px;
}

/* EDIT: Testimonial title / company */
.testimonial-author span {
  font-size: 0.78rem;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

/* =============================================================================
   SECTION: Contact
   ============================================================================= */
#contact {
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-intro {
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--color-body);
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-teal);
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail a {
  color: var(--color-teal);
  transition: color var(--transition);
}

.contact-detail a:hover {
  color: var(--color-white);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form group wrapper */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Input & textarea styling */
.form-group input,
.form-group textarea {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--color-white);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 14px 16px;
  border-radius: var(--card-radius);
  outline: none;
  transition: border-color var(--transition);
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-teal);
}

.form-group textarea {
  min-height: 130px;
}

.form-consent {
  margin-top: -4px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  accent-color: var(--color-teal);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.consent-label span {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.consent-label a {
  color: var(--color-teal);
  text-decoration: underline;
}

.form-submit {
  align-self: flex-start;
}

/* Form success message (shown after submission) */
.form-success {
  display: none;
  background: var(--color-surface);
  border-left: 3px solid var(--color-teal);
  padding: 24px 28px;
}

.form-success.visible {
  display: block;
}

.form-success p {
  font-size: 0.95rem;
  color: var(--color-white);
}

.form-success p span {
  color: var(--color-teal);
  font-weight: 600;
}

.form-error {
  background: var(--color-surface);
  border-left: 3px solid #e0645a;
  padding: 20px 24px;
  margin-top: 16px;
}

.form-error p {
  font-size: 0.9rem;
  color: var(--color-body);
}

.form-error a {
  color: var(--color-teal);
}

.form-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =============================================================================
   SECTION: Footer
   ============================================================================= */
#footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo img {
  height: 32px;
  width: auto;
  opacity: 0.7;
}

/* EDIT: Footer copyright text */
.footer-copy {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--color-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-teal);
}

.footer-credit {
  text-align: left;
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.footer-credit a {
  color: var(--color-teal);
  transition: opacity var(--transition);
}

.footer-credit a:hover {
  opacity: 0.7;
}

/* =============================================================================
   SECTION: Portfolio Page (portfolio.html)
   ============================================================================= */
.portfolio-hero {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 24px;
  background: var(--color-bg);
}

.portfolio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 32px;
  transition: color var(--transition);
}

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

/* ---- Credentials ---- */
#credentials {
  background: var(--color-surface);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.credentials-col {
  background: var(--color-bg);
  padding: 32px 24px;
  position: relative;
  max-height: 480px;
  overflow-y: auto;
}

.credentials-col::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-teal);
}

.credentials-col h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: 20px;
}

.credential-item {
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
}

.credential-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.credential-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 4px;
}

.credential-item-sub {
  font-size: 0.82rem;
  color: var(--color-teal);
  margin-bottom: 4px;
}

.credential-item-dates {
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.credential-item-detail {
  font-size: 0.85rem;
  color: var(--color-body);
  line-height: 1.65;
}

.language-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
}

.language-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.language-row-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
}

.language-row-level {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ---- Work History ---- */
#work-history {
  background: var(--color-bg);
}

.work-entry {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.work-entry:first-of-type {
  border-top: none;
}

.work-entry-head {
  margin-bottom: 8px;
}

.work-entry-dates {
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.work-entry-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
}

.work-entry-company {
  font-size: 0.9rem;
  color: var(--color-teal);
  margin-bottom: 20px;
}

.work-entry-summary {
  font-size: 0.9rem;
  color: var(--color-body);
  line-height: 1.7;
}

.work-project {
  margin-top: 24px;
  padding-left: 20px;
  border-left: 2px solid var(--color-teal);
}

.work-project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.work-project-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  flex: 1;
  min-width: 200px;
}

.work-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.tag-square {
  display: inline-block;
  background: var(--color-surface-2);
  border: 1px solid var(--color-teal);
  color: var(--color-teal);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  white-space: nowrap;
}

.work-project-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-project-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-body);
  line-height: 1.6;
}

.work-project-bullets li::before {
  content: '\25A0';
  color: var(--color-teal);
  font-size: 0.6em;
  line-height: 1.9;
  flex-shrink: 0;
}

/* =============================================================================
   SECTION: Responsive — Tablet & Mobile
   ============================================================================= */

/* ---- Tablet (≤ 900px) ---- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    aspect-ratio: 2 / 3;
    max-width: 320px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .cta-strip-inner {
    flex-direction: column;
    text-align: center;
  }

  .credentials-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .credentials-col {
    max-height: none;
  }
}

/* ---- Mobile (≤ 640px) ---- */
@media (max-width: 640px) {
  :root {
    --section-pad: 64px;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
  }

  /* Show hamburger, hide desktop links */
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Desktop CTA hidden, mobile menu shows it */
  .nav-cta {
    display: none;
  }

  .hero-logo {
    height: 48px;
    margin-bottom: 36px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-scroll {
    display: none;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
