/* =============================================================================
   Faint Horizons Monochrome Sophisticated Style
============================================================================= */
/* RESET & BASELINE ------------------------------------------------------------ */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  color: #1B1B1B;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #1B405C;
  text-decoration: none;
  transition: color 0.23s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: #BF5A1A;
  outline: none;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: #141414;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.75rem;
  letter-spacing: -0.03em;
  margin-top: 0;
}
h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
h4, h5, h6 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
}
p, li, blockquote {
  color: #353535;
  line-height: 1.65;
  font-size: 1rem;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}
blockquote {
  font-style: italic;
  border-left: 4px solid #222;
  margin-left: 0;
  padding-left: 18px;
  color: #191919;
  background: #F6F6F6;
  border-radius: 0 7px 7px 0;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* MONOCHROME COLOR PALETTE & BRAND ------------------------------------------- */
:root {
  --dark: #101010;
  --gray-900: #232323;
  --gray-800: #303338;
  --gray-750: #53555A;
  --gray-700: #636363;
  --gray-600: #868686;
  --gray-400: #d3d3d3;
  --gray-200: #F6F6F6;
  --white: #fff;
  --primary: #1B405C;
  --secondary: #F4E4B4;
  --accent: #BF5A1A;
  --brand-gradient: #fff;
}

/* LAYOUT & SPACING RULES ----------------------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(10,20,30,0.13);
  padding: 32px 26px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.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: #F6F6F6;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.feature-grid li {
  background: var(--gray-200);
  border-radius: 9px;
  box-shadow: 0 1px 6px rgba(21,21,21,0.07);
  flex: 1 1 240px;
  max-width: 295px;
  min-width: 190px;
  padding: 25px 18px 21px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.feature-grid li img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  filter: grayscale(0.85) contrast(1.2);
}
.feature-grid li h3 {
  font-size: 1.15rem;
  margin-bottom: 0;
  color: var(--primary);
  font-weight: 700;
}
.feature-grid li:hover,
.feature-grid li:focus-within {
  box-shadow: 0 6px 22px rgba(27,64,92,0.11), 0 1.5px 7px rgba(27,64,92,.10);
  z-index: 1;
}

/* HERO ----------------------------------------------------------------------- */
.hero {
  background: linear-gradient(120deg, #fff 80%, #232323 100%);
  padding-top: 48px;
  padding-bottom: 56px;
  position: relative;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: #111111;
}
.hero .subheadline {
  font-size: 1.28rem;
  color: #353535;
  margin-bottom: 12px;
  max-width: 600px;
}

/* BUTTONS -------------------------------------------------------------------- */
.cta,
button,
input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border-radius: 30px;
  border: none;
  background: var(--dark);
  color: var(--white);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(30,30,45,0.08);
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.cta.primary {
  background: var(--primary);
  color: var(--white);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px rgba(191,90,26,0.13);
}
.cta.secondary {
  background: var(--gray-800);
  color: var(--white);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--secondary);
  color: var(--primary);
}
button, .cta:not(a) {
  border: none;
  cursor: pointer;
}
a.cta {
  text-align: center;
}

/* NAVIGATION & HEADER -------------------------------------------------------- */
header {
  background: #fff;
  border-bottom: 1px solid #ededed;
  box-shadow: 0 1.5px 9px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: #232323;
  padding: 7px 13px;
  border-radius: 22px;
  transition: background 0.16s, color 0.14s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: #eaeaea;
  color: var(--primary);
}
header .cta {
  margin-left: 16px;
  margin-right: 4px;
}
header img[alt="Faint Horizons"] {
  height: 44px;
  width: auto;
}

/* BURGER MENU (MOBILE) ------------------------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: var(--primary);
  font-size: 2.2rem;
  padding: 5px 15px;
  border-radius: 9px;
  margin-left: 14px;
  transition: background 0.13s;
  z-index: 1030;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #ececec;
  color: var(--accent);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(243,243,243, 0.99);
  box-shadow: 0 0 80px 0 rgba(24,24,24,0.09);
  z-index: 9998;
  transform: translateX(100%);
  transition: transform 0.39s cubic-bezier(.68,-0.09,.32,1.12);
  padding: 26px 30px 16px 26px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #232323;
  font-size: 2rem;
  margin-bottom: 26px;
  margin-top: 4px;
  cursor: pointer;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  padding: 15px 8px;
  font-size: 1.21rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #232323;
  border-radius: 7px;
  font-weight: 700;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #ececec;
  color: var(--accent);
}

/* MAIN CONTENT & CARDS ------------------------------------------------------- */
.services ul, .features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.services ul li, .features ul li {
  flex: 1 1 255px;
  min-width: 170px;
  background: var(--white);
  border-radius: 9px;
  box-shadow: 0 1px 6px rgba(21,21,21,0.07);
  padding: 19px 17px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.services ul li h3, .features ul li h3 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.services ul li .price, .feature-grid li .price {
  color: var(--accent);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 2px;
}

/* TESTIMONIALS --------------------------------------------------------------- */
.testimonials {
  background: #fff;
  padding: 40px 20px;
  margin-bottom: 60px;
}
.testimonials h2 {
  margin-bottom: 22px;
}
.testimonial-card {
  background: var(--gray-200);
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(27,64,92,0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 22px;
  margin-bottom: 26px;
  color: #111;
  font-size: 1rem;
  max-width: 725px;
  transition: box-shadow 0.12s;
}
.testimonial-card blockquote {
  margin: 0;
  padding-left: 0;
  border: none;
  background: none;
  font-size: 1.07rem;
  color: #181818;
  font-weight: 500;
}
.testimonial-card .customer {
  font-size: 0.95rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #53555A;
  margin-left: 12px;
  margin-bottom: 0;
}
.testimonial-card:hover {
  box-shadow: 0 5px 22px rgba(191,90,26,0.09),0 2px 8px rgba(15,40,55,.07);
}

/* SPECIAL SECTIONS ----------------------------------------------------------- */
.about h2, .about h3, .services h2, .contact-form h1, .privacy-policy h1, .terms-of-use h1 {
  margin-top: 0;
  margin-bottom: 22px;
}
.services a.cta, .contact-form a.cta, .hero a.cta {
  margin-top: 20px;
}
.text-section {
  margin-bottom: 22px;
}

/* FOOTER --------------------------------------------------------------------- */
footer {
  background: #191B1D;
  color: #F6F6F6;
  padding: 0 0 8px 0;
  margin-top: 25px;
  border-top: 2px solid #222;
}
footer .container {
  padding-top: 38px;
  padding-bottom: 6px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 44px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand,
.footer-contact,
.footer-navigation,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-brand img {
  max-width: 44px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 1.5px 7px rgba(0,0,0,0.08);
}
.footer-brand span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.19rem;
  margin-top: 7px;
  color: var(--secondary);
}
.footer-tagline {
  font-size: 0.96rem;
  color: #eee;
  margin-top: 3px;
}
.footer-contact h4 {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 5px;
  font-weight: 700;
}
.footer-contact p {
  font-size: 0.99rem;
  color: #d3d3d3;
  line-height: 1.5;
}
.footer-navigation {
  font-size: 1rem;
}
.footer-navigation a {
  color: #d3d3d3;
  margin-bottom: 4px;
  border-radius: 8px;
  padding: 2px 9px;
  transition: background 0.14s, color 0.14s;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  color: #fff;
  background: #2b2b2b;
}
.footer-social {
  flex-direction: row;
  gap: 17px;
}
.footer-social a {
  display: flex;
  align-items: center;
}
.footer-social img {
  width: 24px;
  height: 24px;
  filter: grayscale(1) contrast(1.15);
  opacity: 0.85;
  transition: filter 0.14s, opacity 0.14s;
}
.footer-social a:hover img {
  filter: none;
  opacity: 1;
}

/* COOKIE CONSENT BANNER ------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #141414;
  color: #fff;
  z-index: 11000;
  box-shadow: 0 0 40px 10px rgba(0,0,0,0.09);
  padding: 30px 16px 24px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  transition: transform 0.33s cubic-bezier(0.65,0,0.32,1.18), opacity 0.29s;
}
.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-msg {
  flex: 1 1 320px;
  font-size: 1.01rem;
  color: #eee;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
}
.cookie-banner button {
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
  border: none;
  cursor: pointer;
}
.cookie-banner button.cookie-settings {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--accent);
  color: #fff;
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: var(--gray-200);
  color: var(--dark);
}

/* COOKIE PREFERENCES MODAL --------------------------------------------------- */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24,24,24,0.32);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.cookie-modal-backdrop.open {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  color: #191919;
  border-radius: 18px;
  box-shadow: 0 8px 40px 4px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 420px;
  padding: 32px 30px 28px 30px;
  z-index: 12010;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: fadeInUp 0.37s cubic-bezier(.7,.08,.32,1.1);
}
@keyframes fadeInUp {
  from { transform: translateY(48px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h3 {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.21rem;
}
.cookie-modal-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 0;
  margin: 0 0 1rem 0;
}
.cookie-modal-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #232323;
}
.cookie-modal-list input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.cookie-modal-list .cookie-essential {
  color: #7c7c7c;
  font-size: 0.96rem;
  font-style: italic;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 7px;
}
.cookie-modal .modal-actions button {
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 22px;
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  transition: background 0.15s, color 0.14s;
}
.cookie-modal .modal-actions button.secondary {
  background: #ececec;
  color: #232323;
}
.cookie-modal .modal-actions button.secondary:hover {
  background: #e6e6e6;
}
.cookie-modal .modal-actions button:hover, .cookie-modal .modal-actions button:focus {
  background: var(--accent);
  color: #fff;
}

/* TYPOGRAPHY SCALE ----------------------------------------------------------- */
@media (max-width: 840px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.32rem;
  }
  .hero .subheadline {
    font-size: 1.12rem;
  }
}
@media (max-width: 580px) {
  h1 {
    font-size: 1.47rem;
  }
  h2 {
    font-size: 1.07rem;
  }
  h3 {
    font-size: 1rem;
  }
  p, li, blockquote {
    font-size: 0.97rem;
  }
}

/* RESPONSIVE DESIGN ---------------------------------------------------------- */
@media (max-width: 1150px) {
  .feature-grid li, .services ul li, .features ul li {
    max-width: 46vw;
    min-width: 42vw;
  }
}
@media (max-width: 990px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 23px;
    align-items: flex-start;
  }
  .footer-brand, .footer-contact, .footer-navigation, .footer-social {
    margin-bottom: 7px;
  }
}
@media (max-width: 900px) {
  .container {
    padding-left: 11px; padding-right: 11px;
  }
}
@media (max-width: 820px) {
  .feature-grid, .services ul, .features ul {
    flex-wrap: wrap;
    gap: 14px;
  }
  .feature-grid li, .services ul li, .features ul li {
    min-width: 180px;
    max-width: 100%;
    flex-basis: 100%;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 40px;
    padding: 24px 6px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .card-container, .feature-grid, .services ul, .features ul {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  header .container {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 13px;
    padding-bottom: 13px;
    gap: 8px;
  }
  header nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 580px) {
  .cookie-modal {
    max-width: 98vw;
    padding: 20px 5vw 16px 5vw;
  }
}
@media (max-width: 520px) {
  .testimonials, .section {
    padding-left: 1px; padding-right: 1px;
  }
  .testimonial-card {
    padding: 13px 6px 13px 7px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 15px;
    padding: 17px 4px 12px 4px;
  }
}

/* TABLES, FORMS, MISC -------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 7px;
  border: 1px solid #d3d3d3;
  background: #fafafa;
  font-family: inherit;
  font-size: 1rem;
  color: #232323;
  margin-bottom: 11px;
  margin-top: 3px;
  transition: border-color 0.14s;
}
input:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
}

ol {
  list-style: decimal inside;
  margin-bottom: 22px;
  margin-top: 5px;
  padding-left: 13px;
}
ul {
  list-style: disc inside;
  margin-top: 4px;
}

/* MICRO ANIMATIONS ----------------------------------------------------------- */
.cta, button, .footer-social img {
  will-change: background, color, box-shadow, filter, opacity;
}
.cta:active, button:active {
  transform: translateY(1px) scale(0.991);
}

/* CLARITY & ACCESSIBILITY ---------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #b5b5b5; }
::-moz-placeholder { color: #b5b5b5; }
:-ms-input-placeholder { color: #b5b5b5; }
::placeholder { color: #b5b5b5; }


/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
