/* =========================
   CSS RESET & NORMALIZE
   ========================= */
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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* Set base line-height and box-sizing */
html {
  line-height: 1.4;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img, svg {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1em;
}

/* =========================
   VINTAGE RETRO BRAND TOKENS
   ========================= */
:root {
  --primary: #1C2331;
  --secondary: #2496E7;
  --accent: #F6C85B;
  --retro-bg: #FCF6EE;
  --retro-brown: #7B4931;
  --retro-turq: #12B0B3;
  --retro-red: #EB5937;
  --retro-green: #6BB792;
  --retro-muted: #EADABB;
  --retro-shadow: rgba(60,40,20,0.07);
  --text-dark: #2C1510;
  --text-light: #FFF8F0;
  --border-radius-card: 16px;
  --border-radius-btn: 6px;
  --shadow-card: 0 4px 16px var(--retro-shadow);
  --shadow-btn: 0 2px 6px rgba(124,88,45,0.18);
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-retro: 'Montserrat', 'Roboto', 'Passion One', 'Varela Round', cursive;
}

/* Fallback font faces */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Roboto:400,700&display=swap');

body {
  font-family: var(--font-body);
  background: var(--retro-bg);
  color: var(--text-dark);
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--border-radius-card);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.text-section {
  background: var(--retro-muted);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
}

/* =========================
   TYPOGRAPHY - RETRO FLAVOR
   ========================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--retro-brown);
  text-shadow: 1px 2px 0 #EADABB;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 14px;
  line-height: 1.13;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1.15;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  line-height: 1.18;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.2;
}
.subheadline {
  color: var(--retro-brown);
  font-size: 1.18rem;
  font-family: var(--font-retro);
  opacity: 0.87;
}
p, li {
  font-family: var(--font-body);
  font-size: 1rem;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 12px;
  list-style-type: square;
}
li {
  margin-bottom: 8px;
}

/* =========================
   LINKS & BUTTONS
   ========================= */
.cta-button,
.main-nav .cta-button,
.mobile-nav .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-retro);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--border-radius-btn);
  border: 2px solid var(--retro-brown);
  box-shadow: var(--shadow-btn);
  margin-top: 12px;
  letter-spacing: 0.04em;
  transition: background 0.22s, color 0.22s, box-shadow 0.16s, transform 0.16s;
  text-shadow: 0px 1px 0 #FFF9EC;
  cursor: pointer;
}
.cta-button:hover,
.cta-button:focus {
  background: var(--retro-red);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 14px rgba(196,84,56,0.13);
}

a {
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--retro-red);
  text-decoration: underline;
}

/* =========================
   NAVIGATION - RETRO BAR
   ========================= */
header {
  background: var(--retro-turq);
  box-shadow: 0 2px 10px rgba(20, 60, 74, 0.07);
  padding: 0;
  position: relative;
}
nav.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 22px 0 20px 0;
  justify-content: flex-start;
}
nav.main-nav img {
  width: 138px;
  height: auto;
  margin-right: 16px;
}
nav.main-nav a {
  font-family: var(--font-retro);
  font-size: 1.07rem;
  color: var(--primary);
  padding: 8px 13px;
  border-radius: 4px;
  font-weight: 700;
  transition: background 0.15s, color 0.16s;
}
nav.main-nav a:hover, nav.main-nav a:focus {
  background: var(--accent);
  color: var(--retro-brown);
}
nav.main-nav .cta-button {
  margin-left: auto;
  margin-right: 0;
  font-size: 1.09rem;
  padding: 8px 22px;
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--retro-brown);
  border: 2px solid var(--retro-brown);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2.1rem;
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 101;
  transition: background 0.15s, color 0.17s, box-shadow 0.13s;
  box-shadow: 0 2px 7px #eadabb77;
  cursor: pointer;
  display: none; /* Hidden by default, appears on mobile */
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--retro-red);
  color: #fff;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--retro-brown);
  color: var(--text-light);
  z-index: 200;
  transform: translateX(100vw);
  transition: transform 0.37s cubic-bezier(0.77,0.2,0.05,1.0);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 26px 28px 16px 0;
  font-size: 2.2rem;
  color: var(--accent);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--retro-turq);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px 28px;
  margin-top: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-retro);
  color: var(--accent);
  font-size: 1.27rem;
  padding: 14px 0 10px 0;
  border-bottom: 1px dashed var(--accent);
  font-weight: 900;
  transition: color 0.15s, background 0.13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--retro-turq);
  color: #fff8ec;
  border-radius: 6px;
}

/* ===============
   HERO / SECTIONS
   =============== */
section {
  background: var(--retro-bg);
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--border-radius-card);
  box-shadow: 0 2px 10px #f6c95b22;
}

/* Features & Services flex layout */
.feature-grid, .service-list, .benefit-grid, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.service-list > div,
.feature-grid > div,
.benefit-grid > div,
.faq-list > div {
  background: #fff;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 18px 22px 18px;
  flex: 1 1 210px;
  min-width: 210px;
  transition: transform 0.17s, box-shadow 0.19s;
  margin-bottom: 20px;
  border: 2px solid var(--retro-muted);
  position: relative;
}
.feature-grid > div:hover,
.service-list > div:hover,
.benefit-grid > div:hover,
.faq-list > div:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 12px 31px #eab96c21;
}
.feature-grid img,
.service-list img {
  width: 44px; height: 44px;
  margin-bottom: 13px;
}

/* List item icons for vintage flavor */
ul > li::before {
  content: '\2724';
  color: var(--accent);
  font-size: 1rem;
  margin-right: 8px;
  font-family: var(--font-retro);
  position: relative;
  top: -1px;
}

/* ===============
   TABLES
   =============== */
table {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #e8b87d13;
  overflow: hidden;
  margin-bottom: 28px;
}
th, td {
  padding: 17px 13px;
  text-align: left;
  font-size: 1rem;
}
th {
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-retro);
}
td {
  border-top: 1px solid var(--retro-muted);
}
tr:nth-child(even) td {
  background: #f8ebd5;
}

/* ===============
   TESTIMONIALS
   =============== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px #bb976233;
  padding: 20px 28px;
  margin-bottom: 20px;
  position: relative;
  border-left: 8px solid var(--accent);
  font-family: var(--font-retro);
  color: var(--primary);
}
.testimonial-card p {
  font-size: 1.07rem;
  color: var(--retro-brown);
  margin-bottom: 0;
  font-style: italic;
  flex: 2 1;
}
.testimonial-card strong {
  font-family: var(--font-display);
  color: var(--secondary);
  font-size: 1rem;
  flex: 1 1;
  font-weight: bold;
  margin-left: 10px;
}

/* ===============
   FOOTER
   =============== */
footer {
  background: var(--retro-green);
  color: var(--primary);
  padding: 0 0 30px 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 38px 0 0 0;
}
footer img[alt="BrillantoX Express"],
footer img[alt="BrillantoX Express"],
footer img[alt="BrillantoX Express"],
footer img[alt="BrillantoX Express"] {
  width: 110px;
  margin-bottom: 16px;
}
.footer-nav, .legal-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.footer-nav a, .legal-nav a {
  font-family: var(--font-retro);
  font-size: 1.02rem;
  color: var(--primary);
  opacity: 0.89;
  transition: color 0.16s;
  border-radius: 4px;
  padding: 3px 0;
}
.footer-nav a:hover, .legal-nav a:hover {
  color: var(--retro-red);
  background: var(--accent);
}
.footer-contact img {
  width: 20px; height: 20px;
  vertical-align: middle;
  margin-right: 9px;
}
.footer-contact p {
  font-size: 0.97rem;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.footer-social a img {
  width: 28px; height: 28px;
  filter: grayscale(0.21) contrast(1.2);
  transition: filter 0.19s, transform 0.16s;
}
.footer-social a:hover img {
  filter: none;
  transform: scale(1.16) rotate(-2deg);
}

/* =========================
   COMPONENT CONTAINERS
   ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fffde9;
  border-radius: 13px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 23px 16px;
  border: 2.5px dashed var(--retro-brown);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-left: 6px solid var(--retro-turq);
  padding-left: 18px;
  margin-bottom: 18px;
}
.address-display {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.map-info {
  margin-top: 6px;
  color: var(--retro-brown);
  opacity: 0.93;
}

/* ===============
   COOKIE CONSENT
   =============== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 -2px 16px #eeb13c33;
  z-index: 4000;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 20px 22px;
  gap: 18px;
  font-family: var(--font-retro);
  font-size: 1rem;
  animation: cookie-popup-in 0.45s cubic-bezier(0.75,0.18,0.19,1) 1;
}
@keyframes cookie-popup-in {
  0% { transform: translateY(70px); opacity: 0; }
  75% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex-basis: 100%;
  margin-bottom: 6px;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
}
.cookie-btn,
.cookie-settings-btn {
  padding: 9px 22px;
  border-radius: var(--border-radius-btn);
  border: 2px solid var(--retro-brown);
  font-family: var(--font-retro);
  font-size: 1rem;
  font-weight: 700;
  background: #fff;
  color: var(--retro-brown);
  cursor: pointer;
  transition: background 0.13s, color 0.11s, border 0.11s;
}
.cookie-btn:hover, .cookie-settings-btn:hover {
  background: var(--retro-brown);
  color: #fffbe9;
  border-color: var(--accent);
}
.cookie-btn.reject {
  background: #fce6e5;
  color: var(--retro-red);
  border: 2px solid var(--retro-red);
}
.cookie-btn.reject:hover {
  background: var(--retro-red);
  color: #fff9eb;
}

/* Cookie modal overlay */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(28,35,49,0.63);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlayIn 0.24s cubic-bezier(0.42,0,0.58,1) 1;
}
@keyframes overlayIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff9ec;
  color: var(--retro-brown);
  border-radius: 20px;
  padding: 38px 30px 27px 30px;
  max-width: 420px;
  box-shadow: 0 7px 28px #bf884c42;
  min-width: 305px;
  border: 3px solid var(--accent);
  position: relative;
  animation: modalPopIn 0.29s cubic-bezier(0.52,0.04,0.41,1.12) 1;
}
@keyframes modalPopIn {
  0% { transform: scale(0.83); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 16px;
  color: var(--retro-red);
  font-size: 1.4rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 17px;
  font-size: 1rem;
}
.category-toggle {
  width: 36px;
  height: 20px;
  background: var(--retro-muted);
  border-radius: 12px;
  border: 1.5px solid var(--retro-turq);
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.13s, border-color 0.13s;
}
.category-toggle[aria-checked="true"] {
  background: var(--retro-turq);
  border-color: var(--retro-turq);
}
.category-toggle::after {
  content: '';
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #e7a64e37;
  position: absolute;
  top: 1px; left: 1px;
  transition: left 0.15s;
}
.category-toggle[aria-checked="true"]::after {
  left: 17px;
}
.category-desc {
  font-size: 0.97rem;
  color: #25211b;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 17px;
  background: transparent;
  color: var(--retro-red);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal-close:hover {
  color: var(--retro-brown);
}

/* ================
   MEDIA QUERIES
   ================ */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 960px) {
  nav.main-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  .content-wrapper, .footer .content-wrapper {
    gap: 18px;
  }
  .feature-grid, .service-list, .benefit-grid {
    gap: 18px;
  }
  .testimonial-card {
    gap: 12px;
    padding: 16px 11px;
  }
}
@media (max-width: 820px) {
  footer .content-wrapper {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  nav.main-nav,
  .footer-nav,
  .legal-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  section {
    margin-bottom: 35px;
    padding: 22px 6px;
  }
  .feature-grid, .service-list, .benefit-grid, .faq-list, .content-grid {
    flex-direction: column;
    gap: 11px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .container {
    padding: 0 5px;
  }
  .footer-contact p {
    font-size: 0.93rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.99rem;
    padding: 18px 8px;
    gap: 11px;
  }
  .cookie-buttons {
    gap: 11px;
    flex-grow: 1;
  }
}
@media (max-width: 510px) {
  .section, section, .text-section {
    padding: 11px 1px;
  }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1rem; }
  .cta-button {
    padding: 11px 8px;
    font-size: 0.97rem;
  }
  .cookie-modal {
    min-width: 98vw;
    max-width: 99vw;
    left: 0; right: 0;
    padding: 25px 10px 15px 10px;
    border-radius: 10px;
  }
}

/* ================
  Utility Classes
================== */
.rounded {
  border-radius: var(--border-radius-card);
}
.shadowed {
  box-shadow: var(--shadow-card);
}
.flex-row {
  display: flex;
  flex-direction: row;
}
.flex-col {
  display: flex;
  flex-direction: column;
}
.align-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}

/* ===============
   TRANSITIONS & MICRO-INTERACTIONS
   =============== */
.cta-button, .cookie-btn, .cookie-settings-btn, .category-toggle {
  transition: background 0.19s, color 0.19s, box-shadow 0.14s, border 0.14s, transform 0.17s;
}
.card, .feature-grid > div, .service-list > div, .benefit-grid > div, .faq-list > div {
  transition: box-shadow 0.17s, transform 0.15s;
}
.card:hover, .feature-grid > div:hover, .service-list > div:hover, .faq-list > div:hover {
  box-shadow: 0 8px 40px #ead6ba44;
  transform: scale(1.018) translateY(-3px);
}

/* ==================
   Scrollbars (retro styled)
   ================== */
body::-webkit-scrollbar {
  width: 10px;
  background: #F8DFB6;
}
body::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 7px;
}

@media (pointer: fine) {
  a, .cta-button, button, input[type='button'], input[type='submit'] {
    outline-color: var(--accent);
    outline-offset: 2px;
  }
}

/* End of CSS */
