/* ==========================================================================
   Gravure et Manufacturiers Précision — main stylesheet
   ========================================================================== */

:root {
  --navy: #0d1b2e;
  --navy-light: #16273f;
  --gold: #f0a500;
  --gold-dark: #d99400;
  --bg-light: #f4f5f7;
  --bg-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #5a6472;
  --border-light: #e2e5ea;
  --sidebar-width: 270px;
}

/* Demo 2 palette: navy header + steel blue accent, horizontal nav layout */
body.theme-2 {
  --navy: #0b1c2f;
  --navy-light: #14304d;
  --gold: #2f6fb0;
  --gold-dark: #24567f;
}

/* Demo 3 uses the base navy/gold palette (three-column layout) */

/* Persistent demo switcher bar, shown on all demo pages */
.demo-switcher {
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 2000;
}

.demo-switcher span.label { color: #8b96a8; font-weight: 500; text-transform: none; letter-spacing: 0; }
.demo-switcher a { color: #cfd6e2; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.demo-switcher a.active,
.demo-switcher a:hover { color: #fff; border-color: #f0a500; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Barlow', 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Barlow', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.underline-gold {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 10px 0 20px;
}

/* ---------------------------------------------------------------------- */
/* Layout                                                                  */
/* ---------------------------------------------------------------------- */

.layout {
  display: flex;
  min-height: 100vh;
}

/* ---------------------------------------------------------------------- */
/* Sidebar                                                                 */
/* ---------------------------------------------------------------------- */

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 28px 0 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px 20px;
}

.sidebar-logo-full { width: 100%; height: auto; }

.brand-logo {
  width: auto;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img { width: auto; height: 100%; }

.brand-text h1 {
  font-size: 15px;
  line-height: 1.25;
  margin: 0;
  color: #fff;
}

.brand-tagline {
  color: var(--gold);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.2px;
  margin-top: 4px;
  font-style: italic;
}

.sidebar-nav {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #cfd6e2;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-nav li a i { width: 18px; text-align: center; color: var(--gold); }

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: var(--navy-light);
  color: #fff;
}

.sidebar-nav li a.active {
  border-left: 4px solid var(--gold);
  padding-left: 20px;
}

.sidebar-contact {
  margin-top: auto;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-contact p {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #cfd6e2;
  margin: 0 0 14px;
  line-height: 1.4;
}

.sidebar-contact p i { color: var(--gold); margin-top: 2px; }

.sidebar-since {
  padding: 16px 24px 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.sidebar-since span { color: var(--gold); }

.sidebar-toggle {
  display: none;
}

/* ---------------------------------------------------------------------- */
/* Main content                                                           */
/* ---------------------------------------------------------------------- */

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topnav {
  background: var(--navy);
  padding: 16px 40px;
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #dfe4ec;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topnav a { padding-bottom: 6px; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a.active { color: var(--gold); border-color: var(--gold); }

.topnav .sep { color: rgba(255,255,255,0.25); }

/* ---------------------------------------------------------------------- */
/* Hero                                                                   */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(10,17,30,0.92) 10%, rgba(10,17,30,0.55) 55%, rgba(10,17,30,0.75) 100%),
              url("../images/header.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 90px 50px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 340px;
  height: 340px;
  border: 18px solid rgba(240,165,0,0.15);
  border-radius: 50%;
}

.hero-content { max-width: 640px; position: relative; z-index: 1; }

.hero h2 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 4px;
}

.hero .accent { color: var(--gold); }

.hero p {
  font-size: 16px;
  color: #d6dbe4;
  max-width: 480px;
  line-height: 1.6;
}

.page-hero {
  padding: 60px 50px;
  text-align: left;
}

.page-hero p { max-width: 640px; }

/* ---------------------------------------------------------------------- */
/* Sections                                                               */
/* ---------------------------------------------------------------------- */

section { padding: 50px; }

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.intro-grid h2 { font-size: 26px; }

.intro-grid p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  font-size: 15px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.photo-grid .ph {
  aspect-ratio: 1 / 0.82;
  border-radius: 6px;
  background: linear-gradient(135deg, #1c2636, #33404f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 34px;
  overflow: hidden;
}

.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; }

.services-list h2 { font-size: 20px; }

.services-list ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.services-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.services-list li a i { color: var(--gold); width: 20px; }
.services-list li a:hover { color: var(--gold-dark); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 12px 22px;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { background: var(--gold); color: #fff; }

.btn-solid {
  background: var(--gold);
  color: #fff;
}
.btn-solid:hover { background: var(--gold-dark); }

/* Feature strip */
.feature-strip {
  background: #e8eaee;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 40px 50px;
}

.feature-item { display: flex; gap: 16px; }

.feature-item i {
  font-size: 30px;
  color: var(--gold);
  flex-shrink: 0;
}

.feature-item h3 { font-size: 14px; margin-bottom: 6px; }
.feature-item p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Generic content sections used on inner pages */
.content-block { max-width: 900px; }
.content-block p { color: var(--text-muted); line-height: 1.75; font-size: 15px; margin-bottom: 16px; }
.content-block ul { color: var(--text-muted); line-height: 1.8; font-size: 15px; padding-left: 20px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 10px;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 26px;
  border-top: 4px solid var(--gold);
}

.card i { font-size: 28px; color: var(--gold); margin-bottom: 12px; }
.card h3 { font-size: 15px; }
.card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 760px;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-info-item i { color: var(--gold); font-size: 20px; margin-top: 2px; }
.contact-info-item h3 { font-size: 14px; margin-bottom: 4px; }
.contact-info-item p { font-size: 14px; color: var(--text-muted); margin: 0; }

.map-box {
  background: linear-gradient(135deg, #1c2636, #33404f);
  border-radius: 8px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* Footer */
.footer {
  background: var(--navy);
  color: #cfd6e2;
  padding: 22px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  margin-top: auto;
}

.footer nav { display: flex; gap: 24px; }
.footer nav a { font-weight: 600; letter-spacing: 0.4px; }
.footer nav a:hover { color: var(--gold); }

/* ---------------------------------------------------------------------- */
/* Horizontal header layout (Demo 2 — no sidebar)                         */
/* ---------------------------------------------------------------------- */

.site-header {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 40px;
  flex-wrap: wrap;
}

.site-header .brand { display: flex; align-items: center; gap: 14px; }

.site-header .brand-logo-full { height: 46px; width: auto; display: block; }

.site-header .brand-logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 28px;
  flex-shrink: 0;
}

.site-header .brand-text h1 {
  color: #fff;
  font-size: 16px;
  margin: 0;
  line-height: 1.3;
}

.site-header .brand-text .tagline {
  color: var(--gold);
  font-size: 11px;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.2px;
  margin-top: 3px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-header nav a {
  color: #cfd6e2;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.site-header nav a.active,
.site-header nav a:hover { color: #fff; border-color: var(--gold); }

.site-header nav .sep { color: rgba(255,255,255,0.3); }

.icon-navbar {
  background: var(--gold);
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 22px 30px;
  flex-wrap: wrap;
}

.icon-navbar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.icon-navbar a i { font-size: 20px; }
.icon-navbar a:hover { color: #dce8f5; }

.products-band {
  background: var(--bg-light);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 50px;
  flex-wrap: wrap;
}

.products-band .band-heading { flex-shrink: 0; max-width: 260px; }
.products-band .band-heading h2 { font-size: 22px; margin-bottom: 0; }

.icon-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  flex: 1;
  min-width: 280px;
}

.icon-row .item { text-align: center; }
.icon-row .item i { font-size: 26px; color: var(--navy); margin-bottom: 10px; display: block; }

.icon-row .item .tile-img {
  aspect-ratio: 1 / 0.75;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #dfe2e7;
}

.icon-row .item .tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.icon-row .item span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1.4;
  display: block;
}

.footer-bar {
  background: var(--navy);
  color: #cfd6e2;
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}

.footer-bar .contacts { display: flex; gap: 34px; flex-wrap: wrap; }
.footer-bar .contacts div { display: flex; align-items: center; gap: 10px; }
.footer-bar .contacts i { color: var(--gold); }
.footer-bar .copyright { color: #8b96a8; font-size: 12.5px; }

/* ---------------------------------------------------------------------- */
/* Demo 3 — light header + three-column layout                            */
/* ---------------------------------------------------------------------- */

.site-header.light {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.site-header.light .brand-logo-square {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}

.site-header.light .brand-text h1 { color: var(--text-dark); }

.site-header.light .brand-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border-light);
  margin: 0 4px;
}

.site-header.light .brand-text .tagline { color: var(--navy); }

.site-header.light nav a { color: var(--text-dark); }
.site-header.light nav a.active,
.site-header.light nav a:hover { color: var(--navy); border-color: var(--gold); }
.site-header.light nav .sep { color: var(--border-light); }

.three-col {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
}

.three-col .col { padding: 50px 40px; }
.three-col .col-white { background: var(--bg-white); }
.three-col .col-navy { background: var(--navy); color: #fff; }
.three-col .col-navy h2 { color: #fff; }

.product-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.product-mini-grid .item { text-align: center; }

.product-mini-grid .item .ph-mini {
  aspect-ratio: 1 / 0.7;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 26px;
  margin-bottom: 10px;
  overflow: hidden;
}

.product-mini-grid .item .ph-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-mini-grid .item span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.4;
  display: block;
}

.choice-list { margin-top: 24px; display: flex; flex-direction: column; gap: 26px; }
.choice-list .feature-item i {
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cta-bar {
  background: var(--navy);
  padding: 26px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cta-bar .contacts { display: flex; gap: 34px; flex-wrap: wrap; color: #cfd6e2; font-size: 13px; }
.cta-bar .contacts div { display: flex; align-items: center; gap: 10px; }
.cta-bar .contacts i { color: var(--gold); }

.cta-button {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 700;
}

.cta-button .cta-text { display: flex; flex-direction: column; }
.cta-button .cta-text small { font-weight: 500; font-size: 11px; opacity: 0.85; }
.cta-button i.arrow { font-size: 18px; }

.bottom-strip {
  background: #0a1420;
  color: #8b96a8;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
}

.bottom-strip nav { display: flex; gap: 22px; }
.bottom-strip nav a { color: #8b96a8; font-weight: 600; letter-spacing: 0.3px; }
.bottom-strip nav a:hover { color: var(--gold); }

/* ---------------------------------------------------------------------- */
/* Mobile toggle button                                                    */
/* ---------------------------------------------------------------------- */

.mobile-topbar {
  display: none;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
}

.mobile-topbar button {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .intro-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .icon-row { grid-template-columns: repeat(3, 1fr); }
  .products-band { flex-direction: column; align-items: flex-start; }
  .three-col { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .mobile-topbar { display: flex; }
  .layout { flex-direction: column; }
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 1000;
    width: 260px;
  }
  .sidebar.open { transform: translateX(0); }
  .topnav { display: none; }
  .hero, section, .page-hero, .footer, .feature-strip { padding: 30px 20px; }
  .cards-grid, .feature-strip { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 26px; }
  .site-header { padding: 16px 20px; }
  .site-header nav { gap: 12px; font-size: 11px; }
  .icon-navbar { gap: 22px; padding: 18px 20px; }
  .products-band, .footer-bar { padding: 26px 20px; }
  .icon-row { grid-template-columns: repeat(2, 1fr); }
  .three-col .col { padding: 34px 20px; }
  .cta-bar, .bottom-strip { padding: 20px; }
  .bottom-strip { flex-direction: column; align-items: flex-start; }
}
