/* @OCF-1 — Main stylesheet */

/* ============================================
   FONTS
   ============================================ */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/DMSerifDisplay-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/DMSerifDisplay-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/Poppins-Light.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Poppins-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Poppins-Italic.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Poppins-Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Poppins-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Poppins-Bold.ttf') format('truetype');
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Brand colors */
  --color-primary: #2e689e;
  --color-primary-dark: #1e4a72;
  --color-secondary: #89a9c5;
  --color-tertiary: #2c2927;
  --color-accent: #c4944a;
  --color-accent-light: #d4a85e;

  /* Backgrounds */
  --bg-dark: #1a1a1f;
  --bg-darker: #111114;
  --bg-medium: #2c2c32;
  --bg-light: #f5f5f0;
  --bg-lighter: #fafaf7;
  --bg-white: #ffffff;

  /* Text */
  --text-white: #ffffff;
  --text-light: #c8c8c8;
  --text-muted: #8a8a8a;
  --text-dark: #2c2927;
  --text-body: #4a4a4a;

  /* Borders */
  --border-light: #e0e0dc;
  --border-dark: #3a3a40;

  /* Typography scale */
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Poppins', 'Futura', 'Trebuchet MS', Arial, sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 12vw, 160px);
  --container-width: 1200px;
  --container-narrow: 800px;
  --gap: clamp(20px, 4vw, 40px);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(48px, 8vw, 96px);
}

h2 {
  font-size: clamp(36px, 5vw, 60px);
}

h3 {
  font-size: clamp(28px, 3.5vw, 40px);
}

h4 {
  font-size: clamp(22px, 2.5vw, 28px);
}

p {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.8;
}

.label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding) 0;
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.section--darker {
  background-color: var(--bg-darker);
  color: var(--text-white);
}

.section--light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.section--accent {
  background-color: var(--color-primary-dark);
  color: var(--text-white);
}

.grid {
  display: grid;
  gap: var(--gap);
}

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

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

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background-color var(--transition-base), padding var(--transition-base), box-shadow var(--transition-base);
}

.site-header--scrolled {
  background-color: rgba(26, 26, 31, 0.97);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 50px;
  width: auto;
  transition: height var(--transition-base);
}

.site-header--scrolled .site-logo img {
  height: 38px;
}

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

.site-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-white);
  position: relative;
  padding: 4px 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-dark);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
  padding: 120px 0 var(--section-padding);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(46, 104, 158, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(196, 148, 74, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero__label {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--color-accent);
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--text-white);
}

.hero__subtitle {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.hero--page {
  min-height: 50vh;
  padding: 160px 0 80px;
}

.hero--page h1 {
  font-size: clamp(40px, 6vw, 72px);
}

/* Hero video background */
.hero--video {
  position: relative;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 20, 0.65);
  z-index: 1;
  pointer-events: none;
}

.hero--video .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

/* Hero decorative line */
.hero__line {
  width: 60px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 0 auto 32px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn--ghost {
  background: transparent;
  border-color: var(--text-white);
  color: var(--text-white);
}

.btn--ghost:hover {
  background-color: var(--text-white);
  color: var(--bg-dark);
}

.btn--accent {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--bg-dark);
}

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

.btn--primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn--dark {
  background: transparent;
  border-color: var(--text-dark);
  color: var(--text-dark);
}

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

.btn--sm {
  padding: 10px 24px;
  font-size: 12px;
}

/* Arrow for CTA buttons */
.btn__arrow {
  transition: transform var(--transition-base);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ============================================
   PILLARS (Five C's section)
   ============================================ */
.pillars {
  text-align: center;
}

.pillars__intro {
  max-width: 700px;
  margin: 0 auto var(--gap);
}

.pillars__intro h2 {
  margin-bottom: 16px;
}

.pillars__intro p {
  color: var(--text-light);
  font-size: clamp(16px, 1.2vw, 20px);
}

.pillars__grid {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 60px);
  flex-wrap: wrap;
  margin-top: 48px;
}

.pillar {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 32px);
  color: var(--color-accent);
  position: relative;
  padding-bottom: 16px;
}

.pillar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
  opacity: 0.5;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.content-block--reverse {
  direction: rtl;
}

.content-block--reverse > * {
  direction: ltr;
}

.content-block__text {
  max-width: 540px;
}

.content-block__label {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.content-block__text h2 {
  margin-bottom: 8px;
}

.content-block__text h3 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 24px;
  color: var(--text-muted);
}

.section--dark .content-block__text h3 {
  color: var(--text-light);
}

.content-block__text p {
  margin-bottom: 24px;
}

.content-block__image {
  position: relative;
  overflow: hidden;
}

.content-block__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Image with accent border */
.content-block__image--framed {
  border: 2px solid var(--border-dark);
  padding: 12px;
}

/* Industry list */
.industry-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-top: 16px;
}

.industry-list li {
  font-size: 15px;
  font-weight: 500;
  padding-left: 20px;
  position: relative;
}

.industry-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 2px;
  background-color: var(--color-accent);
}

/* Aims list (Character section) */
.aims-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-dark);
  font-size: 15px;
  line-height: 1.7;
}

.section--light .aims-list li {
  border-bottom-color: var(--border-light);
}

.aims-list li:last-child {
  border-bottom: none;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  padding: 40px 32px;
  border: 1px solid var(--border-light);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--color-primary);
}

.service-card h4 {
  margin-bottom: 16px;
  font-size: 22px;
}

.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

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

.team-card__image {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 3/2;
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-card__image img {
  transform: scale(1.05);
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.team-card__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.team-card__location {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.team-card__bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
  text-align: left;
  display: none;
}

.team-card__bio.expanded {
  display: block;
}

.team-card__toggle {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.team-card__toggle:hover {
  color: var(--color-accent);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info__item {
  margin-bottom: 32px;
}

.contact-info__item h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.contact-info__item a {
  color: var(--color-primary);
  font-size: 17px;
  font-weight: 500;
}

.contact-info__item a:hover {
  color: var(--color-accent);
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.office-card {
  padding: 20px;
  border: 1px solid var(--border-light);
  background: var(--bg-lighter);
}

.office-card h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.office-card .office-type {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ============================================
   CONTACT MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-white);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  position: relative;
  overflow: hidden;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--bg-dark);
  border: none;
  color: var(--text-white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color var(--transition-fast);
}

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

.modal iframe {
  width: 100%;
  height: 80vh;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--bg-darker);
  color: var(--text-light);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand img {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

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

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  text-align: center;
  padding: var(--section-padding) 0;
  background-color: var(--color-primary-dark);
  color: var(--text-white);
  position: relative;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  font-size: clamp(16px, 1.2vw, 20px);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: clamp(16px, 1.2vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section--dark .section-header p {
  color: var(--text-light);
}

.section-header__line {
  width: 50px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 0 auto 24px;
}

/* ============================================
   VALUES GRID (About page)
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.value-card {
  padding: 40px 32px;
  border-top: 3px solid var(--color-accent);
  background: var(--bg-lighter);
}

.value-card h4 {
  margin-bottom: 16px;
  font-size: 24px;
}

.value-card p {
  font-size: 15px;
  color: var(--text-body);
}

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

  .content-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-block--reverse {
    direction: ltr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-darker);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right var(--transition-base);
  }

  .site-nav.active {
    right: 0;
  }

  .site-nav a {
    font-size: 18px;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

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

  .team-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

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

  .pillars__grid {
    gap: 16px 32px;
  }

  .hero--page {
    padding: 140px 0 60px;
  }

  /* Disable animations on mobile for performance */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero--page h1 {
    font-size: 36px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 13px;
  }

  .industry-list {
    grid-template-columns: 1fr;
  }
}
