/* ==========================================================================
   NMA Conseil – Premium Stylesheet
   Chic, sobre, moderne
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --------------------------------------------------------------------------
   2. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Palette premium */
  --color-primary: #1C1E2A;
  --color-accent: #7B2D3B;
  --color-accent-dark: #5E2230;
  --color-accent-light: rgba(123, 45, 59, 0.08);
  --color-gold: #B8935A;
  --color-dark: #1C1E2A;
  --color-light: #FAFAF8;
  --color-white: #FFFFFF;
  --color-offwhite: #F5F4F1;
  --color-text: #2D2D2D;
  --color-text-muted: #6B6B6B;
  --color-text-light: #FFFFFF;
  --color-border: #E8E6E1;
  --color-success: #2D6A4F;
  --color-error: #9B2C2C;

  /* Typography */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  /* Layout */
  --container-width: 1000px;
  --container-wide: 1140px;
  --nav-height: 80px;
  --section-padding: 100px;
  --section-padding-mobile: 60px;

  /* Transitions */
  --transition-speed: 0.3s;
  --transition-slow: 0.6s;
  --ease-elegant: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --------------------------------------------------------------------------
   3. @font-face Declarations
   -------------------------------------------------------------------------- */

/* Inter (sans-serif body) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-400.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: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-500.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: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-600.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: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext-400.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;
}

/* Playfair Display (serif headings) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-latin-400.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: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-latin-500.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: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-latin-600.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: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/playfair-display-latin-700.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;
}

/* FontAwesome 4.7 */
@font-face {
  font-family: 'FontAwesome';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('../assets/fonts/fontawesome-webfont.eot');
  src: url('../assets/fonts/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
       url('../assets/fonts/fontawesome-webfont.woff') format('woff'),
       url('../assets/fonts/fontawesome-webfont.ttf') format('truetype'),
       url('../assets/fonts/fontawesome-webfont.svg#fontawesomeregular') format('svg');
}

.fa {
  display: inline-block;
  font-family: 'FontAwesome';
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-linkedin::before { content: '\f0e1'; }
.fa-phone::before { content: '\f095'; }
.fa-envelope::before { content: '\f0e0'; }
.fa-map-marker::before { content: '\f041'; }
.fa-clock-o::before { content: '\f017'; }
.fa-bars::before { content: '\f0c9'; }
.fa-times::before { content: '\f00d'; }
.fa-chevron-right::before { content: '\f054'; }
.fa-check::before { content: '\f00c'; }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  margin-bottom: 0.6em;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 3rem;
  font-weight: 600;
}

h2 {
  font-size: 2.25rem;
  font-weight: 500;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1.2em;
  color: var(--color-text);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

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

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

/* --------------------------------------------------------------------------
   6. Navigation (.site-nav)
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.5s var(--ease-elegant),
              box-shadow 0.5s var(--ease-elegant),
              border-bottom-color 0.5s var(--ease-elegant);
  border-bottom: 1px solid transparent;
}

.site-nav.nav-scrolled {
  background-color: var(--color-white);
  border-bottom-color: var(--color-border);
}

/* On subpages (no hero), nav is always solid */
.site-nav.nav-solid {
  background-color: var(--color-white);
  border-bottom-color: var(--color-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: opacity var(--transition-speed) ease;
}

.nav-brand img {
  height: 44px;
  width: auto;
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
  transition: color var(--transition-speed) ease;
}

/* On transparent nav over hero, links are white */
.site-nav:not(.nav-scrolled):not(.nav-solid) .nav-link {
  color: var(--color-text-light);
}

.site-nav:not(.nav-scrolled):not(.nav-solid) .nav-link.btn-nav {
  border-color: var(--color-text-light);
  color: var(--color-text-light);
}

.site-nav:not(.nav-scrolled):not(.nav-solid) .nav-link.btn-nav:hover {
  background-color: var(--color-text-light);
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.4s var(--ease-elegant);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.site-nav:not(.nav-scrolled):not(.nav-solid) .nav-link:hover {
  color: var(--color-gold);
}

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

.btn.btn-nav {
  margin-left: 0.5rem;
  padding: 8px 20px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-primary);
  border-radius: 0;
  background: transparent;
  color: var(--color-primary);
  transition: all var(--transition-speed) ease;
}

.btn.btn-nav:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.btn.btn-nav::after {
  display: none;
}

/* Hamburger button */
.mobile-nav-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.mobile-nav-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background-color: var(--color-text);
  position: relative;
  transition: background-color var(--transition-speed) ease;
}

.site-nav:not(.nav-scrolled):not(.nav-solid) .mobile-nav-btn span,
.site-nav:not(.nav-scrolled):not(.nav-solid) .mobile-nav-btn span::before,
.site-nav:not(.nav-scrolled):not(.nav-solid) .mobile-nav-btn span::after {
  background-color: var(--color-text-light);
}

.mobile-nav-btn span::before,
.mobile-nav-btn span::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 1px;
  background-color: var(--color-text);
  left: 0;
  transition: transform var(--transition-speed) ease;
}

.mobile-nav-btn span::before { top: -6px; }
.mobile-nav-btn span::after { top: 6px; }

/* Mobile nav close button */
.nav-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text);
  align-items: center;
  justify-content: center;
}

.nav-close::before {
  content: '\00d7';
  font-size: 2rem;
  line-height: 1;
}

/* Nav spacer for pages with hero */
.nav-spacer {
  height: var(--nav-height);
  display: none;
}

/* Pages without hero need top padding for fixed nav */
body.has-fixed-nav main {
  padding-top: var(--nav-height);
}

/* --------------------------------------------------------------------------
   7. Hero Section (.hero)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(28, 30, 42, 0.6) 0%,
    rgba(28, 30, 42, 0.4) 50%,
    rgba(28, 30, 42, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text-light);
  max-width: 750px;
  padding: 40px 24px;
}

.hero h1,
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5em;
  opacity: 0.85;
  line-height: 1.6;
  color: var(--color-text-light);
}

.highlight {
  color: var(--color-gold);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   8. Content Sections
   -------------------------------------------------------------------------- */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-light {
  background-color: var(--color-white);
}

/* Alternating section backgrounds */
.section-light:nth-of-type(even) {
  background-color: var(--color-offwhite);
}

.section-gray {
  background-color: var(--color-offwhite);
}

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

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p,
.section-dark a {
  color: var(--color-text-light);
}

.section-accent {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  padding: 50px 0;
}

.section-accent h1,
.section-accent h2,
.section-accent h3,
.section-accent h4,
.section-accent p,
.section-accent a {
  color: var(--color-text-light);
}

.section-accent .subtitle,
.section-dark .subtitle {
  color: var(--color-gold);
}

.section-accent .section-subtitle,
.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

/* Section divider */
.section::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background-color: var(--color-border);
  margin: 0 auto;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section:last-child::after,
.section-accent::after,
.section-dark::after,
.hero::after {
  display: none;
}

.section-title {
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-muted);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 3rem;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   9. Text + Image Component (.text-image)
   -------------------------------------------------------------------------- */
.text-image {
  display: flex;
  align-items: center;
  gap: 60px;
}

.text-image-content {
  flex: 0 0 55%;
  max-width: 55%;
}

.text-image-figure {
  flex: 0 0 45%;
  max-width: 45%;
}

.text-image-figure img,
.text-image-figure figure img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 60px;
}

.text-image-media {
  flex: 0 0 40%;
  max-width: 40%;
}

.text-image-media img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: cover;
}

.text-image--reverse {
  flex-direction: row-reverse;
}

.text-image-content h2 {
  margin-bottom: 1rem;
}

.text-image-content p {
  margin-bottom: 1.25rem;
}

/* --------------------------------------------------------------------------
   10. Services / Features Grid (.services-grid)
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.service-card {
  text-align: center;
  padding: 0;
  transition: transform 0.5s var(--ease-elegant);
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Service image variants */
.service-image {
  width: 100%;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.service-image-square {
  aspect-ratio: 4 / 3;
  border-radius: 2px;
}

.service-image-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-elegant);
}

.service-card:hover .service-image-square img {
  transform: scale(1.03);
}

.service-image-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--color-border);
}

.service-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-elegant);
}

.service-card:hover .service-image-circle img {
  transform: scale(1.05);
}

/* Service card (notre-ecosysteme.html) */
.service-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.service-card-image figure {
  width: 100%;
  height: 100%;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-elegant);
}

.service-card:hover .service-card-image img {
  transform: scale(1.03);
}

/* Circle variant for Equipe grid */
.services-grid--circle .service-card-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: auto;
  border: 1px solid var(--color-border);
}

.service-card-content {
  text-align: center;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

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

.service-card-role {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.service-card-link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  position: relative;
  display: inline-block;
  margin-top: 0.75rem;
  transition: color var(--transition-speed) ease;
}

.service-card-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width 0.4s var(--ease-elegant);
}

.service-card-link:hover::after {
  width: 100%;
}

.service-card-link:hover {
  color: var(--color-accent-dark);
}

.section-dark .service-card-link {
  color: var(--color-text-light);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   11. Contact Section
   -------------------------------------------------------------------------- */
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.contact-map {
  margin-bottom: 3rem;
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 2px;
  filter: grayscale(20%);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1.25rem;
}

.contact-item .fa {
  color: var(--color-gold);
  font-size: 1rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--color-text);
  transition: color var(--transition-speed) ease;
}

.contact-item a.btn {
  color: var(--color-text-light);
}

.contact-item a.btn:hover {
  color: var(--color-text-light);
}

.contact-item a:not(.btn):hover {
  color: var(--color-accent);
}

.contact-info {
  margin-bottom: 1rem;
}

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.contact-info h3 {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Hours list */
.hours-list {
  list-style: none;
  padding: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border);
}

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

.hours-list li span:first-child {
  font-weight: 500;
}

.hours-list li span:last-child {
  color: var(--color-text-muted);
}

/* CTA buttons group */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color var(--transition-speed) ease;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--color-primary);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232D2D2D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-white);
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition-speed) ease;
}

.form-textarea:focus {
  border-color: var(--color-primary);
}

.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.form-checkbox input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-button {
  display: inline-block;
  padding: 14px 40px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
}

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

.form-message {
  padding: 14px 16px;
  border-radius: 0;
  font-size: 0.9375rem;
  margin-top: 1.25rem;
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-message--success {
  background-color: rgba(45, 106, 79, 0.08);
  color: var(--color-success);
  border: 1px solid rgba(45, 106, 79, 0.2);
}

.form-message--error {
  background-color: rgba(155, 44, 44, 0.08);
  color: var(--color-error);
  border: 1px solid rgba(155, 44, 44, 0.2);
}

/* --------------------------------------------------------------------------
   13. Footer (.site-footer)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 24px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-nav-col {
  display: flex;
  align-items: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand a {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-light);
  white-space: nowrap;
  margin-right: 1rem;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-speed) ease;
}

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

.footer-social-col {
  display: flex;
  align-items: center;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.social-icons a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: color var(--transition-speed) ease;
}

.social-icons a:hover {
  color: var(--color-text-light);
}

.footer-bottom {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.25);
}

/* --------------------------------------------------------------------------
   14. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.4s var(--ease-elegant);
}

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

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

/* Outline style on dark backgrounds */
.hero .btn-primary {
  background-color: transparent;
  border-color: var(--color-text-light);
  color: var(--color-text-light);
}

.hero .btn-primary:hover {
  background-color: var(--color-text-light);
  color: var(--color-primary);
}

.section-accent .btn-primary,
.section-dark .btn-primary {
  background-color: var(--color-text-light);
  border-color: var(--color-text-light);
  color: var(--color-primary);
}

.section-accent .btn-primary:hover,
.section-dark .btn-primary:hover {
  background-color: transparent;
  color: var(--color-text-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

/* Buttons inside dark/accent sections */
.section-dark .btn-secondary,
.section-accent .btn-secondary {
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}

.section-dark .btn-secondary:hover,
.section-accent .btn-secondary:hover {
  background-color: var(--color-text-light);
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   15. Scroll Animations
   -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s var(--ease-elegant),
              transform 0.8s var(--ease-elegant);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

[data-animate='fade-in'] {
  transform: none;
}

[data-animate='fade-in'].is-visible {
  opacity: 1;
}

[data-animate='slide-up'] {
  transform: translateY(20px);
}

[data-animate='slide-up'].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger animation for grid items */
.services-grid > *:nth-child(1) { transition-delay: 0s; }
.services-grid > *:nth-child(2) { transition-delay: 0.12s; }
.services-grid > *:nth-child(3) { transition-delay: 0.24s; }
.services-grid > *:nth-child(4) { transition-delay: 0.36s; }

/* --------------------------------------------------------------------------
   16. Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.hidden {
  display: none;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
}

.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}

.skip-to-content:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 24px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  z-index: 10000;
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
  :root {
    --section-padding: 80px;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }

  .hero h1,
  .hero-content h1 {
    font-size: 2.75rem;
  }

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

@media (max-width: 808px) {
  .text-image {
    flex-direction: column;
    gap: 40px;
  }

  .text-image--reverse {
    flex-direction: column;
  }

  .text-image-content,
  .text-image-figure {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .text-image-figure {
    order: -1;
  }

  .contact-map iframe {
    height: 300px;
  }
}

@media (max-width: 767px) {
  :root {
    --section-padding: 60px;
    --nav-height: 70px;
  }

  /* Navigation: hamburger mode */
  .mobile-nav-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-elegant),
                visibility 0.4s var(--ease-elegant);
    z-index: 9999;
  }

  .expanded .nav-menu {
    opacity: 1;
    visibility: visible;
  }

  .expanded .nav-close {
    display: flex;
    z-index: 10000;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav-link {
    font-size: 1rem;
    color: var(--color-text);
  }

  .nav-link::after {
    display: none;
  }

  .btn.btn-nav {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  /* Text-image section responsive */
  .text-image-section {
    flex-direction: column;
  }

  .text-image-media {
    flex: 0 0 100%;
    max-width: 100%;
    order: -1;
  }

  /* Hero */
  .hero {
    min-height: 85vh;
    background-attachment: scroll;
  }

  .hero h1,
  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
    letter-spacing: 0.1em;
  }

  /* Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .service-image-circle {
    width: 160px;
    height: 160px;
  }

  .services-grid--circle .service-card-image {
    width: 180px;
    height: 180px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
  }

  .footer-brand a {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }

  /* Contact details */
  .contact-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .hero h1,
  .hero-content h1 {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: 0.8125rem;
  }

  .hero-content {
    padding: 30px 16px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.75rem;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* FAQ page */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(184, 147, 90, 0.2);
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  padding: 1.25rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent, #7B2D3B);
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-primary, #1C1E2A);
  font-family: 'Inter', sans-serif;
}

.faq-item p {
  padding: 0 0 1.25rem 0;
  margin: 0 0 0.5rem 0;
  line-height: 1.7;
  color: #444;
}

.faq-item p:first-of-type {
  padding-top: 0;
}
