/* =======================================================
   CSS RESET & VINTAGE RETRO VARIABLES
   ======================================================= */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,footer,header,hgroup,menu,nav,section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #F4EEE3;
  color: #2D2A26;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* =========== VINTAGE RETRO BRAND COLORS & FONTS ============ */
:root {
  --primary: #1B263B; /* Blue-black */
  --secondary: #415A77; /* Blue-grey */
  --accent: #F5F7FA; /* Brand accent off-white */

  --retro-yellow: #F8D477;
  --retro-orange: #E07A5F;
  --retro-green: #88B04B;
  --retro-red: #DC5B3E;
  --retro-blue: #3D5A80;
  --retro-brown: #BC9C6C;
  --retro-cream: #F4EEE3;
  --retro-outline: #9A6C4A;

  /* Main brand */
  --brand-bg: var(--retro-cream);
  --brand-text: #2D2A26;
  --card-shadow: 0 4px 24px rgba(43, 34, 25, 0.08);
  --main-radius: 15px;
  --main-border: 1.5px solid var(--retro-outline);

  /* Fonts */
  --display: 'Montserrat', 'Avenir Next', Arial, sans-serif;
  --body: 'Open Sans', Arial, sans-serif;
  --retro-serif: 'Vollkorn', 'Georgia', serif;
  --retro-slab: 'Roboto Slab', slab-serif;
}

/* ========== TYPOGRAPHY SCALE & TEXT HIERARCHY ========== */
h1, .h1 {
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 24px;
  text-shadow: 1px 1px 0 #EDD196, 2px 2px 0 rgba(30,15,10,0.07); /* Subtle vintage effect */
  line-height: 1.18;
}
h2, .h2 {
  font-family: var(--retro-slab);
  font-size: 2rem;
  font-weight: 700;
  color: var(--retro-orange);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
h3, .h3 {
  font-family: var(--retro-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}
p, li, address {
  font-family: var(--body);
  font-size: 1rem;
}
blockquote {
  font-family: var(--retro-serif);
  font-size: 1.1rem;
  color: var(--retro-brown);
  font-style: italic;
  margin: 0 0 12px 0;
  border-left: 4px solid var(--retro-yellow);
  padding-left: 16px;
  background: rgba(249, 224, 187, 0.15);
}
cite {
  font-family: var(--retro-slab);
  font-size: 1rem;
  color: var(--secondary);
}
strong {
  font-weight: 700;
}
em {
  color: var(--retro-green);
  font-style: italic;
}
a:hover, a:focus {
  color: var(--retro-red);
}

/* =========== SPACING SYSTEM =========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--brand-bg);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border: var(--main-border);
  border-radius: var(--main-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  min-width: 270px;
  flex: 1 1 260px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 7px 32px rgba(43, 34, 25, 0.14);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffdef;
  border: var(--main-border);
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(218, 156, 60, 0.09);
  min-width: 280px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ================ HEADER & NAVIGATION ================ */
header {
  width: 100%;
  background: #F8D477;
  border-bottom: 2px solid var(--retro-outline);
  position: sticky;
  top: 0;
  z-index: 110;
  box-shadow: 0 6px 14px -12px #95713E;
}
.logo-area {
  display: flex;
  align-items: center;
  padding: 10px 0 0 0;
  height: 80px;
}
.logo-area img {
  height: 48px;
  width: auto;
  filter: sepia(0.3) contrast(1.15);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  margin-right: 16px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
}
.main-nav a {
  padding: 10px 14px;
  border-radius: 22px;
  color: var(--primary);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
}
.cta-btn, .main-nav .cta-btn {
  background: var(--retro-orange);
  color: #fff;
  font-family: var(--display);
  border: none;
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(224, 122, 95, 0.08);
  transition: background 0.18s, box-shadow 0.25s, color 0.14s, transform 0.13s;
  margin-left: 6px;
  text-shadow: 0 1px 0 #E1CAB1;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--retro-red);
  color: #fffbe8;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 18px rgba(178, 67, 48, 0.15);
}

/* Hamburger/mobile menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-orange);
  color: #fffbe8;
  padding: 7px 16px;
  border: none;
  border-radius: 19px;
  font-size: 2.2rem;
  margin-left: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(180, 54, 33, 0.11);
  transition: background 0.23s, color 0.23s, transform 0.17s;
  z-index: 112;
}
.mobile-menu-toggle:active {
  background: var(--retro-red);
}

/* ========== MOBILE MENU ============ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FAF3E9;
  box-shadow: 0 0 200vw 200vw rgba(43,34,25,.13);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 30px;
  padding-left: 0;
  padding-right: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.36s cubic-bezier(.7,0,.51,1),
              transform 0.36s cubic-bezier(.86,0,.24,1),
              visibility 0.15s;
}
.mobile-menu.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--retro-red);
  color: #fffef0;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 2rem;
  margin-left: auto;
  margin-right: 26px;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(224, 122, 95, 0.10);
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--retro-orange);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 52px 0 0 34px;
}
.mobile-nav a {
  font-size: 1.25rem;
  font-family: var(--display);
  padding: 10px 0 10px 10px;
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 6px;
  transition: background .14s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-red);
}

/* Hide desktop nav/show mobile menu button for small screens */
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================ HERO & SECTION STYLES ================ */
.hero, .about-hero, .services-hero, .expertises-hero, .realisations-hero, .blog-hero, .contact-hero, .thank-you {
  background: linear-gradient(90deg, #F4EEE3 80%, #EDD196 100%);
  padding-top: 50px;
  padding-bottom: 40px;
  border-bottom: 5px double var(--retro-outline);
}
.hero .content-wrapper,
.about-hero .content-wrapper,
.services-hero .content-wrapper,
.expertises-hero .content-wrapper,
.realisations-hero .content-wrapper,
.blog-hero .content-wrapper, 
.contact-hero .content-wrapper,
.thank-you .content-wrapper {
  align-items: flex-start;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(198,155,69,0.08);
}
.features ul,
.services-overview ul,
.about-preview ul,
.team ul,
.mission-vision ul,
.approach ul,
.process ol,
.expertise-areas ul,
.case-studies ul,
.blog-list ul,
.newsletter-signup ul {
  padding-left: 28px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.features ul li, .services-overview ul li, .about-preview ul li, .team ul li, .mission-vision ul li, .approach ul li, .expertise-areas ul li {
  position: relative;
  font-size: 1.08rem;
  padding-left: 26px;
  color: var(--primary);
}
.features ul li:before,
.services-overview ul li:before,
.about-preview ul li:before,
.team ul li:before,
.mission-vision ul li:before,
.approach ul li:before,
.expertise-areas ul li:before {
  content: '\2736';
  color: var(--retro-orange);
  font-size: 1.3em;
  position: absolute;
  left: 0;
  top: 0.1em;
}
.process ol, .cookie-control ol {
  list-style: decimal;
  padding-left: 25px;
}
.process ol li, .cookie-control ol li {
  margin-bottom: 12px;
  color: var(--primary);
}

.cta-banner {
  background: var(--retro-yellow);
  border-radius: 14px;
  box-shadow: 0 1px 12px rgba(248,212,119,0.09);
  margin-bottom: 40px;
  margin-top: 30px;
}
.cta-banner h2, .cta-banner h1 { color: var(--primary); }
.cta-banner .cta-btn {
  margin-top: 14px;
  background: var(--retro-brown);
  color: #fff;
}
.cta-banner .cta-btn:hover, .cta-banner .cta-btn:focus {
  background: var(--retro-red);
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  background: var(--retro-cream);
  padding: 36px 0 16px 0;
}
.testimonials .content-wrapper {
  gap: 28px;
}
.testimonial-card {
  background: #fffde3;
  border: 1.7px solid var(--retro-outline);
  border-radius: 14px;
  min-width: 260px;
  color: #2A271D;
  box-shadow: 0 2px 14px rgba(172,135,39,0.12);
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  color: #3D3112;
}
.testimonial-card cite {
  color: var(--secondary);
  margin-left: 8px;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* ========== CARD CONTAINERS (reusable) ========== */
.card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
}

/* ========== NEWSLETTER SIGNUP ========== */
.newsletter-signup {
  background: linear-gradient(135deg,#F8D477 78%,#EDD196 100%);
  border-radius: 16px;
  padding-top: 34px;
  padding-bottom: 34px;
  margin-bottom: 40px;
}
.newsletter-signup h2 {
  color: var(--primary);
}
.newsletter-signup .cta-wrapper {
  margin-top: 20px;
}
.newsletter-signup .cta-btn {
  background: var(--retro-blue);
}
.newsletter-signup .cta-btn:hover {
  background: var(--retro-brown);
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  color: #fffbe8;
  padding: 40px 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
}
.footer-menu a {
  padding: 8px 0;
  font-family: var(--display);
  color: #EDD196;
  opacity: 0.95;
  font-size: 1.09rem;
  transition: color 0.2s;
}
.footer-menu a:hover {
  color: var(--retro-red);
  opacity: 1.00;
}
.contact-details {
  font-family: var(--body);
  font-size: 1rem;
  color: #fceab6;
  line-height: 1.7;
}
.contact-details a {
  color: #fffbe1;
  text-decoration: underline;
}
.contact-details a:hover { color: var(--retro-yellow); }
.copyright {
  padding: 24px 0 12px 0;
  font-size: 0.98rem;
  color: #EDD196;
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FAF3E9;
  color: var(--brand-text);
  border-top: 3px double var(--retro-outline);
  box-shadow: 0 -3px 24px rgba(68,34,11,0.17);
  z-index: 9999;
  padding: 22px 18px 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-size: 0.98rem;
  animation: cookie-in 0.75s cubic-bezier(.7,.05,.2,1);
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: none; }
}
.cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-consent-banner button {
  border: none;
  font-family: var(--display);
  font-size: 1rem;
  border-radius: 18px;
  padding: 7px 20px;
  cursor: pointer;
  margin: 0 3px;
  outline: none;
  transition: background 0.16s, color 0.16s;
  box-shadow: 0 2px 9px rgba(210, 150, 43, 0.11);
}
.cookie-consent-banner .cookie-accept {
  background: var(--retro-green);
  color: #fff;
}
.cookie-consent-banner .cookie-accept:hover, .cookie-consent-banner .cookie-accept:focus {
  background: var(--retro-blue);
}
.cookie-consent-banner .cookie-reject {
  background: var(--retro-red);
  color: #fffef0;
}
.cookie-consent-banner .cookie-reject:hover, .cookie-consent-banner .cookie-reject:focus {
  background: var(--retro-orange);
}
.cookie-consent-banner .cookie-settings {
  background: var(--retro-yellow);
  color: var(--primary);
  border: 1px solid var(--retro-brown);
}
.cookie-consent-banner .cookie-settings:hover, .cookie-consent-banner .cookie-settings:focus {
  background: var(--retro-orange);
  color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(58,40,16,0.26);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.37s cubic-bezier(.56,.04,.31,1);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fffbe8;
  border-radius: 17px;
  min-width: 320px;
  max-width: 92vw;
  box-shadow: 0 9px 44px 2px rgba(210, 150, 43, 0.19);
  border: 3px solid var(--retro-outline);
  padding: 34px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cookie-modal h2 {
  font-size: 1.5rem;
  color: var(--retro-red);
  font-family: var(--retro-slab);
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--primary);
}
.cookie-modal .category-switch {
  --switch-bg: #ccc;
  width: 38px;
  height: 20px;
  border-radius: 18px;
  background: var(--switch-bg);
  position: relative;
  margin-right: 8px;
  transition: background 0.18s;
  display: inline-block;
}
.cookie-modal .category-switch input {
  display: none;
}
.cookie-modal .category-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--retro-yellow);
  border-radius: 50%;
  transition: left 0.26s, background 0.18s;
}
.cookie-modal .category-switch input:checked + .category-slider {
  left: 20px;
  background: var(--retro-green);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal button {
  border-radius: 18px;
  border: none;
  font-size: 1rem;
  padding: 7px 17px;
  background: var(--retro-orange);
  color: #fffbe8;
  font-family: var(--display);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(224, 122, 95, 0.10);
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal button:last-child {
  background: var(--retro-red);
  color: #fff;
}
.cookie-modal button:hover {
  opacity: 1;
  background: var(--retro-red);
}

/* ========== FORM ELEMENTS (Newsletter, Contact, Cookie) ========== */
input[type="text"], input[type="email"], textarea {
  border: 1.5px solid var(--retro-brown);
  border-radius: 14px;
  padding: 10px 15px;
  font-size: 1rem;
  font-family: var(--body);
  margin-bottom: 12px;
  background: #fffdfa;
  color: var(--brand-text);
  box-shadow: 0 1px 6px rgba(249, 229, 139, 0.09);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--retro-green);
  outline: none;
  background: #FFFBEC;
}

/* ===================== RESPONSIVE DESIGN ===================== */
@media (max-width: 1100px) {
  .container { max-width: 97vw; }
}
@media (max-width: 900px) {
  .content-wrapper, .card-container, .footer-menu {
    flex-direction: column;
    gap: 18px;
  }
  .footer-menu {
    gap: 16px;
    margin-bottom: 18px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.44rem; }
  .container {
    padding: 0 10px;
  }
  .hero, .about-hero, .services-hero, .expertises-hero, .realisations-hero, .blog-hero, .contact-hero, .thank-you {
    padding: 36px 7px 34px 7px;
  }
  section {
    padding: 28px 8px 26px 8px;
    margin-bottom: 46px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card, .card {
    min-width: 180px;
    padding: 16px 9px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 490px) {
  h1, .h1 { font-size: 1.17rem; }
  h2, .h2 { font-size: 1.06rem; }
  .container {
    padding: 0 2vw;
  }
  .logo-area {
    height: 60px;
  }
  .logo-area img {
    height: 38px;
  }
}

/* ================= MICROLEVEL EFFECTS AND DECORATIONS =============== */
section, .card, .cta-btn, .main-nav a, .footer-menu a, .mobile-nav a, .testimonial-card, .cookie-consent-banner, .cookie-modal {
  transition: box-shadow 0.17s, border-color 0.13s, background 0.18s, color 0.13s, transform 0.13s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 3px 32px rgba(155,91,33,0.13);
  border-color: var(--retro-yellow);
}
.cta-btn:active {
  transform: scale(0.98);
  opacity: .92;
}
button:focus, a:focus { outline: 2px solid var(--retro-outline); outline-offset: 2px; }

/* =============== CUSTOM CHECK, RADIO (cookie modal) =============== */
.category-switch {
  position: relative;
  display: inline-block;
}
.category-switch input:checked + .category-slider {
  background: var(--retro-green);
}
/* Subtle dots/borders for retro styling */
section {
  border: 2px dashed #EDD196;
  background: var(--brand-bg);
  background-image:
    repeating-linear-gradient(135deg, #F2E7C8 0, #F2E7C8 2px, transparent 2px, transparent 36px),
    repeating-linear-gradient(45deg, #F9D66B 0, #F9D66B 1.7px, transparent 1.7px, transparent 19px);
  background-blend-mode: lighten;
}
.hero, .about-hero, .services-hero, .expertises-hero, .realisations-hero, .blog-hero, .contact-hero, .thank-you {
  border: none;
  background-image: repeating-linear-gradient(-15deg,#EDD196 0,transparent 20px,transparent 55px,#EDD196 56px),
    repeating-linear-gradient(-75deg,rgba(255,223,151,.11) 0,transparent 14px);
}

/* ============= ENSURE LAYOUT & SPACING (NO GRID!) ============ */
/* All containers are flex, never grid */

/* ================= END ========================= */
