/*
  Art direction: Corporate / B2B consultancy → authoritative, minimal, modern
  Palette: Deep navy #37344f (primary brand) + ice white #f4faff (background)
  Typography: Cabinet Grotesk (display) + Satoshi (body)
*/

/* =========================================
   DESIGN TOKENS
   ========================================= */
:root {
  --brand-dark: #37344f;
  --brand-light: #f4faff;
  --brand-mid: #5c5878;
  --brand-accent: #7b76a8;
  --brand-muted: #a8a5be;
  --brand-border: rgba(55, 52, 79, 0.12);
  --brand-border-light: rgba(244, 250, 255, 0.18);

  --color-bg: #f4faff;
  --color-surface: #ffffff;
  --color-surface-2: #eef6fd;
  --color-surface-offset: #e3eff9;
  --color-divider: rgba(55, 52, 79, 0.1);

  --color-text: #37344f;
  --color-text-muted: #5c5878;
  --color-text-faint: #a8a5be;
  --color-text-inverse: #f4faff;

  --color-primary: #37344f;
  --color-primary-hover: #2a2840;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(3rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 3px rgba(55, 52, 79, 0.07);
  --shadow-md: 0 4px 16px rgba(55, 52, 79, 0.1);
  --shadow-lg: 0 12px 40px rgba(55, 52, 79, 0.13);

  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;

  --content-default: 1100px;
  --content-wide: 1280px;
  --header-height: 72px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: whitesmoke;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  line-height: 1.15;
}
p,
li {
  text-wrap: pretty;
  max-width: 72ch;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}

a,
button,
[role='button'] {
  transition: color var(--transition), background var(--transition),
    border-color var(--transition), box-shadow var(--transition),
    opacity var(--transition);
}

::selection {
  background: rgba(55, 52, 79, 0.15);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================
     LAYOUT
     ========================================= */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* =========================================
     HEADER
     ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: whitesmoke;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /*border-bottom: 1px solid var(--brand-border);*/
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: #0c97af;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-name {
  font-family: "Apple Symbols";
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0c97af !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--brand-dark);
  background: var(--color-surface-2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-dark);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(244, 250, 255, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--brand-border);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: var(--space-4);
    border-radius: var(--radius-md);
  }
}

/* =========================================
     PAGE BODY
     ========================================= */
.page-body {
  padding-top: var(--header-height);
}

/* =========================================
     SECTION — WHO WE ARE
     ========================================= */
.section-who {
  padding-block: clamp(var(--space-10), 8vw, var(--space-16));
  background: whitesmoke;
}

.section-who .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0c97AF;
  opacity: 0.70;
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--brand-accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #555555;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.section-text {
  font-size: var(--text-base);
  color: black;
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.section-text:last-child {
  margin-bottom: 0;
}

.section-image-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.section-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section--flip .container {
  direction: rtl;
}
.section--flip .container > * {
  direction: ltr;
}

/* =========================================
     SECTION — EXPERTISE
     ========================================= */
.section-expertise {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface-2);
}

/* =========================================
     SECTION — SERVICES
     ========================================= */
.section-services {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: whitesmoke;
  
}

.section-services .section-label {
  color: #0c97AF;
}
.section-services .section-label::before {
  background: var(--brand-muted);
}
.section-services .section-title {
  color: #555555;
}
.section-services .section-text {
  color: black;
}
.section-services .section-image-wrap {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.service-card {
  background: #858991;
  border: 1px solid rgba(244, 250, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: background var(--transition), transform var(--transition);
}

.service-card:hover {
  background: #13464f;
  opacity: 0.8;
  transform: translateY(-2px);
}

.service-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  color: var(--brand-muted);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-size: clamp(1.4rem, 0.95rem + 0.25vw, 1.125rem);
  font-weight: 700;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: var(--text-sm);
  color: rgba(244, 250, 255, 0.6);
  line-height: 1.65;
}

/* =========================================
     SECTION — PARTNERS & CERTIFICATES
     ========================================= */
.section-partners {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background: whitesmoke;
}

.partners-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.partners-header .section-label {
  justify-content: center;
}
.partners-header .section-label::before {
  display: none;
}
.partners-header .section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--brand-accent);
}
.partners-header .section-title {
  text-align: center;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: box-shadow var(--transition), transform var(--transition);
}

.partner-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.partner-card svg {
  color: var(--brand-accent);
  flex-shrink: 0;
}

.cert-section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #494c52;
  text-align: center;
  margin-bottom: var(--space-8);
}

.certs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: #858991;
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cert-badge svg {
  color: var(--brand-muted);
  flex-shrink: 0;
}

/* =========================================
     FOOTER
     ========================================= */
.site-footer {
  background: #494c52;
  color: rgba(244, 250, 255, 0.75);
  padding-block: var(--space-16) var(--space-8);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(244, 250, 255, 0.1);
  margin-bottom: var(--space-8);
}

.footer-brand .logo-name {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-0);
}
.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(244, 250, 255, 0.55);
  max-width: 32ch;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 250, 255, 0.4);
  margin-bottom: var(--space-5);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(244, 250, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--color-text-inverse);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(244, 250, 255, 0.65);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}
.footer-contact-item:last-child {
  margin-bottom: 0;
}
.footer-contact-item svg {
  color: var(--brand-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(244, 250, 255, 0.3);
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

/* =========================================
     RESPONSIVE
     ========================================= */
@media (max-width: 900px) {
  .section-who .container,
  .section-expertise .container,
  .section-services .container {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .section--flip .container {
    direction: ltr;
  }

  .section-image-wrap {
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}
