/* =========================
   Design tokens
========================= */
:root {
  /* Colors */
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-blue: #1B294C;
  --card: #ffffff;

  --text: #0f172a;
  --muted: #475569;
  --white: #eaf3f3;
  --accent: #2563eb;
  --accent-soft: #B4AC8E;

  /* Layout */
  --max-width: 1000px;
  --section-space: 4rem;
  --header-height: 73px;
  --header-max-width: 1000px; /* slightly wider than 1000px */


  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  /* Radius & shadow */
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-base: "Helvetica Neue", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --text-body: clamp(0.9rem, 1.1vw, 1.1rem);
}

@media (max-width: 768px) {
  :root {
    --header-height: 56px; /* kept for clarity if you change it later */
  }
}

/* =========================
   Base
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  background: var(--bg);
}

.mobile-break {
  display: none;
}
/* Hide "and" on mobile only */
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-break {
    display: block;
  }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

/* =========================
   Layout helpers
========================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  scroll-margin-top: var(--header-height);
  padding: var(--space-xl) var(--space-lg);
}

.section.alt {
  scroll-margin-top: var(--header-height);
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-alt);
}

/* =========================
   Header / Nav
========================= */
.header {
  position: sticky;
  top: 0;
  background: var(--bg-blue);
  border-bottom: 1px solid #e5e7eb;
  z-index: 100;
}

.nav {
  max-width: var(--header-max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-height);
}

.logo {
  background: var(--bg-blue);
  padding: var(--space-xs) var(--space-md);
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-left: -15px;

}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    height: 40px;
    margin-left: 20px;
  }
}

nav a {
  margin-left: var(--space-lg);
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  padding: var(--space-sm) 0;
  transition: color 150ms ease-out;
}

nav a:hover {
  color: var(--accent-soft);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--white);
}

/* Mobile styles */
@media (max-width: 768px) {
  .hero {
    background-position: center top;
    min-height: 70vh;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: var(--space-md);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-blue);
    padding: var(--space-md) 0;
    z-index: 99;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

/* =========================
   Typography
========================= */
.section h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  margin: 0 0 var(--space-lg) 0;
}

p,
ul,
ol,
li {
  font-size: var(--text-body);
  line-height: 1.6;
}

.privacy p,
.privacy li,
.privacy address {
  font-size: 0.95rem;
}

/* Normalize list typography */
ul,
ol {
  margin: var(--space-sm) 0;
  padding-left: 5.4em; /* keeps bullets aligned nicely */
}

li {
  margin-bottom: 0.4em;
}

.header {
  isolation: isolate;
}


/* =========================
   Hero
========================= */
.hero {
  background-image: url("/images/THP-marseille.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: white;
  text-align: center;
}

@media (max-width: 768px) and (orientation: portrait) and (min-resolution: 2dppx) {
  .hero {
    background-image: url("/images/THP-marseille-mobile2.jpg");
    background-size: 170%;
    min-height: 80vh;
  }
}


.hero .container {
  padding-top: var(--space-xl);
  padding-bottom: calc(var(--space-xl) * 2);
}

.hero-logo {
  width: 140px;
  margin-bottom: var(--space-xs);
}

.hero h1 {
  font-family: "Gilroy", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  font-weight: 400;
  margin: var(--space-xl) 0 0 0;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
}

.hero h2 {
  font-size: clamp(0.8rem, 5vw, 1.4rem);
  font-family: "Core Sans DS 55 Bold", "Core Sans DS", system-ui, sans-serif;
  font-weight: 250;
  font-family: 'Helvetica', sans-serif;
  font-stretch: extra-expanded;  /* or semi-expanded, extra-expanded */
  margin-top: 0;
  margin-bottom: var(--space-xl);
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
}


.hero p {
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
}

.accent {
  color: var(--accent-soft);
}

/* =========================
   Services
========================= */
.services {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); */
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.pull-quote {
  margin: var(--space-xl) 0;
  padding-left: var(--space-lg);
  border-left: 3px solid var(--accent-soft);
  font-family: inherit;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text);
}


/* =========================
   Expertise
========================= */
.expertise {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.card-h {
  background: var(--card);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 0;
}

.card-h h3 {
  margin-top: 0;
}
.card-h p {
  margin: 0.3em 0;
}

.card-h p:first-of-type {
  margin-top: 0;
}

.card-h p:last-of-type {
  margin-bottom: 0;
}

.card-h > *:last-child { margin-bottom: 0; }

.card-h ul {
  margin-left: 1.1em;
  padding-left: 1.1em;
}


/* =========================
   Contact
========================= */
.contact {
  gap: var(--space-lg);
  min-height: 40vh;
}



.contact-form {
  max-width: 500px;
  margin-top: var(--space-xl);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid #cbd5f5;
  font-family: inherit;
  font-size: var(--font-size-base);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  background: var(--bg-blue);
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-box {
  margin-top: var(--space-xl);
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
}

.contact-box p {
  margin: 0.4rem 0;
}

.contact-linkedin a,
.contact-email a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.contact-linkedin a:hover ,
.contact-email a:hover{
  color: var(--accent-soft);
  text-decoration: underline;
}

.contact-linkedin a,
.contact-linkedin span {
  font-size: inherit;
}

.linkedin-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* =========================
   Footer
========================= */
.footer {
  text-align: center;
  padding: 0.5rem;
  border-top: 1px solid #e5e7eb;
  background: var(--bg-blue);
  color: var(--white);          /* text color */
  font-size: var(--font-size-sm);
}
.footer a {
  color: var(--accent-soft);          /* links in white */
  text-decoration: underline;  /* optional, for clarity */
}

.footer a:hover {
  opacity: 0.8;                 /* subtle hover effect */
}

/* =========================
   Privacy / Legal pages
========================= */

.privacy {
  max-width: 760px;              /* better reading width */
  margin: 0 auto;
}

.privacy h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.privacy h2 {
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid #e5e7eb;
}

.privacy h3 {
  font-size: 1.05rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.privacy p,
.privacy li,
.privacy address {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

.privacy ul,
.privacy ol {
  padding-left: 1.25rem;
  margin: var(--space-sm) 0 var(--space-md);
}

.privacy li {
  margin-bottom: 0.4rem;
}

.privacy address {
  font-style: normal;
  margin: var(--space-sm) 0;
}

.privacy a {
  color: var(--accent-soft);
  text-decoration: underline;
}

.privacy .small {
  font-size: 0.85rem;
  color: var(--muted);
}