/* Mirage Tract - Monochrome Sophisticated Style CSS (Flexbox Only) */
/* ====================================================================== */
/* 1. CSS RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #181818;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, picture, video {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  appearance: none;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  padding-left: 1.25em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.4em;
}
strong {
  font-weight: 700;
}

/* ====================================================================== */
/* 2. COLOR / TYPOGRAPHY VARIABLES */
:root {
  --primary: #273E47;
  --secondary: #fff;
  --gray-100: #EFEFEF;
  --gray-200: #E5E5E5;
  --gray-300: #cccccc;
  --gray-600: #888;
  --gray-900: #181818;
  --accent: #B05B00;
  --accent-hover: #814100;
  --black: #000;
  --white: #fff;
  --shadow-card: 0 4px 18px rgba(24,24,24,0.11);
  --border-radius: 16px;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* ====================================================================== */
/* 3. LAYOUT CONTAINERS & SPACING */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(24,24,24,0.03);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.22s cubic-bezier(.6,.04,.98,.34);
  padding: 28px 22px;
  flex: 1 1 321px;
}

.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;
  margin-bottom: 12px;
}

/* ====================================================================== */
/* 4. TYPOGRAPHY & HEADINGS */
h1{
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.14;
}
@media (max-width: 540px) {
  h1 {
    font-size: 2rem;
  }
}
h2{
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--black);
  margin-bottom: 14px;
  line-height: 1.18;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--primary);
  margin-bottom: 10px;
}
p {
  font-family: var(--font-body);
  font-size: 1.09rem;
  color: var(--gray-900);
  margin-bottom: 12px;
}
ul,ol{
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 20px;
  line-height: 1.6;
}
blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--primary);
  margin-bottom: 10px;
  position: relative;
  padding-left: 18px;
}
blockquote:before {
  content: '\201C';
  font-size: 2.5rem;
  color: var(--accent);
  position: absolute;
  left: 0;
  top: -18px;
}

/* TYPOGRAPHY SCALE */
/* 14px, 16px, 18px, 24px, 32px, 48px mapped to headings as above */

/* ====================================================================== */
/* 5. HEADER & NAVIGATION */
header {
  width: 100%;
  background: var(--white);
  border-bottom: 1.5px solid var(--gray-200);
  position: relative;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 75px;
}
.logo img {
  height: 44px;
  transition: filter 0.22s;
}
.logo:hover img {
  filter: brightness(0.7) contrast(1.3);
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--gray-900);
  font-size: 1rem;
  padding: 6px 0;
  margin: 0 2px;
  position: relative;
  transition: color 0.13s;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: var(--primary);
  transition: width 0.24s cubic-bezier(.55,.13,.47,.84);
  position: absolute;
  bottom: -3px; left: 0;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--accent);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 70%;
  background: var(--accent);
}

.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 6px;
  padding: 12px 36px;
  margin-left: 18px;
  box-shadow: 0 4px 15px rgba(39, 62, 71, 0.07);
  transition: background 0.18s, box-shadow 0.21s, transform 0.13s;
  border: none;
  text-align: center;
  cursor: pointer;
  outline: none;
  letter-spacing: 0.5px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--accent-hover);
  box-shadow: 0 6px 32px 0px rgba(39,62,71,0.15);
  transform: translateY(-2px) scale(1.04);
}

/* ====================================================================== */
/* 6. MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 10px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  border: none;
  transition: background 0.16s;
  margin-left: 8px;
  z-index: 111;
  cursor: pointer;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent-hover);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  color: var(--white);
  transform: translateX(-102vw);
  transition: transform 0.33s cubic-bezier(.49,.13,.36,.97);
  z-index: 1200;
  padding: 0;
  opacity: 0.99;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu .mobile-menu-close {
  align-self: flex-end;
  background: var(--gray-200);
  color: var(--primary);
  font-size: 2.1rem;
  border: none;
  border-radius: 8px;
  width: 48px; height: 48px;
  margin: 18px 16px 0 0;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 1120;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 48px 24px 24px 34px;
}
.mobile-nav a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 10px 0;
  border-radius: 4px;
  transition: background 0.16s, color 0.12s;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: var(--secondary);
}

/* Hide main nav, show burger on mobile */
@media (max-width: 1024px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ====================================================================== */
/* 7. MAIN CONTENT & SECTION STYLES */
main {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--secondary);
}
section {
  width: 100%;
  min-height: 80px;
}

/* HERO SECTIONS */
section .container {
  gap: 28px;
}

/* Feature/Service List */
ul li, ol li {
  margin-bottom: 12px;
  padding-left: 0;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

/* ====================================================================== */
/* 8. CARDS, TESTIMONIALS, AND VISUAL BLOCKS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 22px;
  background: #f8f8f8;
  color: var(--primary);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(39,62,71,0.07);
  border-left: 4px solid var(--accent);
  max-width: 600px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.testimonial-card blockquote {
  font-size: 1.09rem;
  color: var(--primary);
  padding-left: 12px;
  border-left: 2.5px solid var(--accent);
  margin-bottom: 8px;
}
.testimonial-card p {
  font-size: 0.97rem;
  color: var(--black);
  margin-bottom: 0;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(39,62,71,0.11);
  border-left: 6px solid var(--primary);
}

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 6px 36px 8px rgba(39,62,71,0.14);
  transform: translateY(-3px) scale(1.02);
}

/* ====================================================================== */
/* 9. FOOTER */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 48px 0 18px 0;
  margin-top: 40px;
  border-top: 3px solid var(--black);
  width: 100%;
  font-family: var(--font-body);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.88;
  transition: color 0.13s, opacity 0.19s;
}
.footer-nav a:hover {
  color: var(--accent);
  opacity: 1;
}
footer .logo img {
  height: 40px;
  margin-bottom: 10px;
  filter: brightness(200%) contrast(110%);
}
footer .contact-details {
  font-size: 0.98rem;
  color: var(--gray-100);
  opacity: 0.96;
  text-align: center;
  margin-bottom: 10px;
}
footer .copy {
  color: var(--gray-200);
  font-size: 0.97rem;
  margin-top: 12px;
}

/* ====================================================================== */
/* 10. RESPONSIVE DESIGN (Mobile-First, Flexbox direction adjust) */
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .section {
    padding: 24px 7px;
    margin-bottom: 38px;
  }
  h1 {
    font-size: 1.55rem;
  }
  h2 {
    font-size: 1.14rem;
  }
  .main-nav {
    display: none !important;
  }
  .content-wrapper, .text-section, .content-grid {
    gap: 14px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    padding: 15px;
  }
  .footer-nav {
    gap: 11px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 430px) {
  h1, h2 {
    font-size: 1.09rem;
  }
  .testimonial-card {
    font-size: 0.96rem;
  }
}

/* ====================================================================== */
/* 11. BUTTONS & LINKS */
button, .cta-btn {
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 6px;
}

a {
  transition: color 0.12s;
}
a:hover {
  color: var(--accent);
}

/* ====================================================================== */
/* 12. COOKIE CONSENT BANNER AND MODAL */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 18px 18px 40px;
  z-index: 2500;
  box-shadow: 0 -2px 20px rgba(24,24,24,0.19);
  font-family: var(--font-body);
  transition: transform 0.32s, opacity 0.25s;
  opacity: 0.98;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__msg {
  flex: 1 1 280px;
  font-size: 1rem;
  color: var(--secondary);
  min-width: 0;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: var(--accent);
  color: var(--white);
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.18s, color 0.18s, transform 0.11s;
  outline: none;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: scale(1.04);
}
.cookie-btn--secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 1.5px solid var(--accent);
}
.cookie-btn--secondary:hover {
  background: var(--accent);
  color: var(--secondary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24,24,24,0.52);
  z-index: 2560;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.22s;
  pointer-events: auto;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--white);
  color: var(--black);
  border-radius: 16px;
  box-shadow: 0 6px 48px rgba(39,62,71,0.21);
  max-width: 410px;
  width: 93vw;
  padding: 34px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  position: relative;
}
.cookie-modal h2 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 1.25rem;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
.cookie-modal-category label {
  font-size: 1.02rem;
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-body);
}
.cookie-modal-toggle {
  width: 36px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.cookie-modal-toggle input {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gray-200);
  border-radius: 34px;
  transition: background 0.22s;
}
.cookie-modal-toggle input:checked + .toggle-slider {
  background: var(--accent);
}
.toggle-slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1.5px 2.5px rgba(24,24,24,0.14);
  transition: transform 0.2s;
}
.cookie-modal-toggle input:checked + .toggle-slider:before {
  transform: translateX(14px);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}

/* ====================================================================== */
/* 13. MICRO-INTERACTIONS & EFFECTS */
.card, .testimonial-card, .cta-btn, .cookie-btn {
  transition: box-shadow 0.19s, transform 0.15s, background 0.17s, color 0.13s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 10px 40px 0px rgba(39,62,71,0.13);
  transform: translateY(-3px) scale(1.03);
}

/* ====================================================================== */
/* 14. FORM & FOOTER DETAILS */
footer .contact-details span {
  margin: 0 2px;
  white-space: nowrap;
}

footer .logo {
  margin-bottom: 8px;
}

/* ====================================================================== */
/* 15. MISC*/
hr {
  border: none;
  height: 1.5px;
  background: var(--gray-200);
  margin: 30px 0;
}

/* Prevent overflow */
body {
  overflow-x: hidden;
}

/* Responsive grid fallback for .container (absolutely no grid, only flex) */
@media (min-width: 900px) {
  .container {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
  main > section > .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* Hide scroll on mobile nav open */
.mobile-menu.open ~ main,
.mobile-menu.open ~ footer {
  filter: blur(2.5px) grayscale(0.15);
}

/* ====================================================================== */
/* 16. UTILITIES */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0);
  border: 0;
}

/* ====================================================================== */
/* END OF STYLES */
