/*----------------------------------------
  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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #1B2838;
  color: #F5F5F5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/*----------------------------------------
  TYPOGRAPHY & BRAND
----------------------------------------*/
:root {
  --primary: #1B2838;
  --secondary: #D2B98B;
  --accent: #F5F5F5;
  --gray-800: #232e3b;
  --gray-600: #3a4552;
  --gray-400: #767c85;
  --white: #F5F5F5;
  --display-font: 'Montserrat', 'Arial Narrow', Arial, sans-serif;
  --body-font: 'Open Sans', Arial, Helvetica, sans-serif;
  --shadow: 0 4px 16px rgba(27,40,56,0.18);
  --border-radius: 12px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display-font);
  color: var(--secondary);
  letter-spacing: 0.01em;
  line-height: 1.2;
  font-weight: 700;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

p, li, th, td {
  font-family: var(--body-font);
  color: var(--accent);
  font-size: 1rem;
}
strong, b {
  font-weight: bold;
}
blockquote {
  font-style: italic;
  color: var(--gray-400);
}

.hero-sub {
  font-family: var(--display-font);
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

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

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

.text-section {
  margin-top: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/*----------------------------------------
  HEADER & NAVIGATION
----------------------------------------*/
header {
  background: var(--gray-800);
  border-bottom: 2px solid var(--secondary);
  box-shadow: 0 2px 8px rgba(27,40,56,0.05);
  position: static;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}
header img {
  height: 48px;
  min-width: 40px;
  filter: grayscale(15%) contrast(1.1);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--display-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
}

.cta-primary {
  font-family: var(--display-font);
  background: var(--secondary);
  color: var(--primary);
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-size: 1.125rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.cta-primary:hover, .cta-primary:focus {
  background: #ae9155;
  color: var(--accent);
  box-shadow: 0 8px 32px rgba(27,40,56,0.12);
}
.cta-secondary {
  font-family: var(--display-font);
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(213,185,139,0.05);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  margin-top: 16px;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
  box-shadow: 0 8px 32px rgba(213,185,139,0.12);
}

.mobile-menu-toggle {
  display: none;
  background: var(--gray-800);
  color: var(--secondary);
  font-size: 2rem;
  padding: 4px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  z-index: 120;
  margin-left: 12px;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}

/*----------------------------------------
  MOBILE MENU
----------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary);
  z-index: 5000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 20px;
  padding-left: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--secondary);
  font-size: 2rem;
  margin-left: 24px;
  margin-bottom: 24px;
  cursor: pointer;
  border: none;
  align-self: flex-start;
  z-index: 5010;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100vw;
  padding-left: 36px;
}
.mobile-nav a {
  color: var(--accent);
  font-family: var(--display-font);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 16px 0;
  border-left: 4px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  width: fit-content;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  border-left: 4px solid var(--secondary);
}

/*----------------------------------------
  HERO BLOCKS
----------------------------------------*/
.hero {
  padding: 60px 0 40px 0;
  background: linear-gradient(120deg, #232e3b 70%, #232e3b 100%);
  box-shadow: 0 6px 42px 0 rgba(20,24,29,0.08);
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  color: var(--secondary);
}
.hero-sub {
  color: var(--secondary);
}

/*----------------------------------------
  SECTIONS & WRAPPERS
----------------------------------------*/
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

.features,
.feature-grid,
.card-container,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid {
  gap: 32px;
}
.card-container {
  gap: 24px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
  }
}

.feature,
.card {
  background: #232e3b;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 24px 24px 24px;
  margin-bottom: 20px;
  min-width: 260px;
  color: var(--accent);
  border: 1px solid rgba(210,185,139,0.161);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
  position: relative;
  z-index: 1;
}
.feature img {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  filter: grayscale(35%) brightness(0.95) drop-shadow(0 0 6px #1b283833) contrast(1.05);
}
.feature:hover, .card:hover {
  box-shadow: 0 12px 42px rgba(210,185,139,0.11);
  border-color: var(--secondary);
  transform: translateY(-2px) scale(1.022);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/*----------------------------------------
  TESTIMONIALS
----------------------------------------*/
.testimonials {
  background: #F5F5F5;
  color: #232e3b;
  padding: 42px 0;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
}
.testimonials h2 {
  color: var(--primary);
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 18px 0 rgba(27,40,56,0.08);
  border-left: 6px solid var(--secondary);
  color: #232e3b;
  font-size: 1.1rem;
  font-family: var(--body-font);
  font-weight: 400;
}
.testimonial-card blockquote {
  margin: 0;
  color: #232e3b;
  font-style: italic;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*----------------------------------------
  ABOUT, SERVICES & CTA PREVIEWS
----------------------------------------*/
.about-preview, .services-preview, .cta, .cta-section {
  background: #232e3b;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.services-preview ul, .services-details ul {
  margin: 16px 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.services-preview ul li, .services-details ul li {
  padding-left: 26px;
  position: relative;
  color: var(--accent);
  font-size: 1.04rem;
}
.services-preview ul li:before, .services-details ul li:before {
  content: '•';
  color: var(--secondary);
  position: absolute;
  left: 0;
  font-size: 1.5em;
  top: 0;
}
/* CTA Section */
.cta, .cta-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  margin: 60px 0;
}
.cta .container, .cta-section .container {
  display: flex;
  justify-content: center;
}
.cta .content-wrapper,
.cta-section .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/*----------------------------------------
  FOOTER
----------------------------------------*/
footer {
  background: var(--primary);
  border-top: 2px solid var(--secondary);
  padding: 0;
  color: var(--accent);
}
footer .container {
  padding: 40px 20px 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.footer-brand {
  flex: 1 1 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--accent);
}
.footer-brand img {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  filter: grayscale(50%);
}
.footer-links, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 1rem;
  min-width: 155px;
}
.footer-links a,
.footer-legal a {
  color: var(--secondary);
  opacity: 0.94;
  transition: color 0.18s, opacity 0.18s;
}
.footer-links a:hover,
.footer-legal a:hover {
  color: var(--accent);
  opacity: 1.0;
}

.footer-bottom {
  border-top: 1px solid #353e45;
  margin-top: 36px;
  padding: 18px 0 8px 0;
  color: var(--accent);
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.1px;
}

/*----------------------------------------
  TABLES
----------------------------------------*/
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: #232e3b;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(27,40,56,0.12);
}
th, td {
  padding: 14px 10px;
  border-bottom: 1px solid #373f49;
  text-align: left;
  font-family: var(--body-font);
}
th {
  background: #2b3644;
  color: var(--secondary);
  font-weight: 700;
}
tr:last-of-type td {
  border-bottom: none;
}

/*----------------------------------------
  MISC. ELEMENTS
----------------------------------------*/

::-webkit-scrollbar {
  width: 12px;
  background: #232e3b;
}
::-webkit-scrollbar-thumb {
  background: #444d58;
  border-radius: 4px;
  border: 3px solid #232e3b;
}
::-webkit-scrollbar-thumb:hover {
  background: #888c93;
}

/* Feature Item Example */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 12px 0;
}

/* Card Example */
.card {
  margin-bottom: 20px;
  position: relative;
}

/* .section Spacing (MANDATORY) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* .card-container Spacing (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* .content-grid Spacing (MANDATORY) */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* .testimonial-card Spacing (MANDATORY) */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

/* .feature-item Spacing (MANDATORY) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*----------------------------------------
  RESPONSIVE DESIGN
----------------------------------------*/
@media (max-width: 1100px) {
  .footer .content-wrapper, .content-wrapper, .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }
}
@media (max-width: 870px) {
  .main-nav {
    gap: 14px;
  }
  .feature, .card {
    min-width: 220px;
  }
}
@media (max-width: 900px) {
  .footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .main-nav, .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero, .section, section, .cta, .cta-section {
    padding: 32px 8px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.45rem;
  }
  .footer .container {
    padding: 32px 8px 0 8px;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: 1.45rem;
  }
  .hero-sub {
    font-size: 1.04rem;
  }
  .feature, .card {
    padding: 18px 10px 14px 10px;
    min-width: 96px;
  }
}

/*----------------------------------------
  COOKIE CONSENT BANNER & MODAL
----------------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #232e3b;
  color: var(--white);
  box-shadow: 0 -4px 32px rgba(30,28,24,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 21px 12px;
  font-family: var(--body-font);
  font-size: 1rem;
  animation: slideInBanner 0.6s cubic-bezier(.4,0,.2,1);
}
@keyframes slideInBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  margin-left: 14px;
  font-family: var(--display-font);
  padding: 9px 18px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 7px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  margin-right: 6px;
  box-shadow: 0 2px 6px rgba(210,185,139,0.10);
  transition: background 0.2s, color 0.2s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #ae9155;
  color: var(--accent);
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  margin-left: 2px;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--secondary);
  color: var(--primary);
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 12000;
  background: rgba(27,40,56,0.54);
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.4s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #232e3b;
  color: var(--white);
  border-radius: 14px;
  box-shadow: 0 6px 32px 0 rgba(27,40,56,0.16);
  max-width: 410px;
  width: 94vw;
  padding: 38px 28px 18px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideInModal 0.33s cubic-bezier(.52,0,.48,1);
}
@keyframes slideInModal {
  from { transform: translateY(32px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--secondary);
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 14px 0;
  font-size: 1.04rem;
}
.cookie-category label {
  font-weight: 600;
  color: var(--accent);
}
.cookie-modal-close {
  position: absolute;
  top: 17px; right: 20px;
  font-size: 1.65rem;
  color: var(--secondary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 80;
  transition: color 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--accent);
}

/* Custom toggles for preferences */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  margin-left: 4px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #6a727a;
  border-radius: 22px;
  transition: background 0.23s;
}
.switch input:checked + .slider {
  background: var(--secondary);
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.23s;
  box-shadow: 0 1px 4px rgba(27,40,56,0.10);
}
.switch input:checked + .slider:before {
  transform: translateX(14px);
}
.cookie-modal-buttons {
  margin-top: 22px;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal-buttons button {
  padding: 8px 22px;
  border-radius: 7px;
  font-size: 1rem;
  font-family: var(--display-font);
  font-weight: 600;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  box-shadow: 0 2px 6px rgba(210,185,139,0.06);
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}
.cookie-modal-buttons button.cookie-cancel {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}
.cookie-modal-buttons button.cookie-cancel:hover {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal-buttons button:hover, .cookie-modal-buttons button:focus {
  background: #ae9155;
  color: var(--accent);
}

/*----------------------------------------
  MICRO-INTERACTIONS & HOVER STATES
----------------------------------------*/
a, button, .feature, .cta-primary, .cta-secondary, .footer-links a, .footer-legal a {
  transition: color 0.18s, background 0.18s, box-shadow 0.18s, border 0.18s, border-color 0.18s, transform 0.15s;
}
button:active, .cta-primary:active, .cta-secondary:active {
  transform: translateY(1px) scale(0.98);
}
.feature:active, .card:active {
  transform: scale(0.985) translateY(1px);
  box-shadow: 0 2px 4px rgba(210,185,139,0.07);
}

/*----------------------------------------
  PRINT HANDLING
----------------------------------------*/
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  section, .container, .content-wrapper, main {
    padding: 0 !important;
    margin: 0 !important;
  }
}
