/* ==============================
   Reset & Base Styles
============================== */
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F6F3ED;
  color: #28313a;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 10px;
}
a {
  color: #314455;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #C0A074;
  outline: none;
}

/* ==============================
   Typography
============================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: -1px;
  color: #314455;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
}
p, blockquote {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 16px;
  color: #28313a;
}
blockquote {
  font-style: italic;
  border-left: 4px solid #C0A074;
  padding-left: 20px;
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
}
label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #314455;
  margin-bottom: 6px;
}

/* ==============================
   Layout Containers
============================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 16px;
}
.cta-banner {
  background: #314455;
  color: #fff;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 40px 0;
}
.cta-banner .content-wrapper h2,
.cta-banner .content-wrapper p {
  color: #fff;
}

/* ==============================
   Header / Navigation
============================== */
header {
  background: #fff;
  border-bottom: 3px solid #314455;
  box-shadow: 0 2px 12px 0 rgba(49,68,85,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
header img {
  max-height: 48px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  color: #314455;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active {
  background: #C0A074;
  color: #fff;
}
.btn-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  background: #C0A074;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 0 4px 18px 0 rgba(192,160,116,0.11);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #314455;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px 0 rgba(49,68,85,0.15);
  outline: none;
}

/* ==============================
   HERO SECTION (Index Page)
============================== */
.hero {
  background: #314455;
  color: #fff;
  border-radius: 0 0 60px 60px;
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
  padding-top: 64px;
  padding-bottom: 64px;
  overflow: hidden;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 600px;
  gap: 24px;
}
.hero h1 {
  color: #fff;
  font-size: 2.75rem;
}
.hero p {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 24px;
}
.hero .btn-primary {
  background: #C0A074;
  color: #fff;
}
.hero .btn-primary:hover {
  background: #fff;
  color: #314455;
}

/* ==============================
   Feature / Card / Grid Layouts
============================== */
.features-grid,
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 12px;
}
.features-grid > div,
.category-list > div {
  flex: 1 1 240px;
  min-width: 200px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 28px 0 rgba(49,68,85,0.08);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.16s;
}
.features-grid > div:hover,
.category-list > div:hover {
  box-shadow: 0 12px 40px 0 rgba(192,160,116,0.12);
  transform: translateY(-4px) scale(1.03);
}
.features-grid img,
.category-list img {
  width: 44px;
  height: 44px;
}
.features-grid h3, .category-list h2 {
  font-size: 1.2rem;
  color: #314455;
  font-weight: 800;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px 0 rgba(49,68,85,0.07);
  padding: 32px 22px;
  transition: box-shadow 0.19s, transform 0.13s;
}
.card:hover {
  box-shadow: 0 12px 34px 0 rgba(49,68,85,0.17);
  transform: translateY(-2px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.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;
}

.section .project-summary {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px 0 rgba(192,160,116,0.09);
  padding: 24px 18px;
  margin-bottom: 20px;
  border-left: 8px solid #C0A074;
}
.section .project-summary h2 {
  color: #C0A074;
  font-size: 1.35rem;
}

/* ==============================
   Testimonial Cards
============================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(49,68,85,0.09);
  padding: 20px 26px 20px 24px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.15s;
}
.testimonial-card blockquote {
  color: #314455;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
}
.testimonial-card p {
  margin-bottom: 0;
  color: #28313a;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.testimonial-card:hover {
  box-shadow: 0 14px 32px 0 rgba(192,160,116,0.14);
  transform: scale(1.01);
}

/* ==============================
   Forms
============================== */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
  margin: 0 auto;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  padding: 14px 12px;
  border: 2px solid #314455;
  background: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  outline: none;
  transition: border 0.2s;
  color: #28313a;
}
input:focus, textarea:focus {
  border-color: #C0A074;
}
button[type="submit"],
form .btn-primary {
  margin-top: 10px;
}

/* ==============================
   Footer
============================== */
footer {
  background: #314455;
  color: #fff;
  padding: 40px 0 0;
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -8px 44px 0 rgba(49,68,85,0.14);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
footer img {
  max-height: 40px;
  margin-bottom: 4px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.98rem;
  letter-spacing: 0.7px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #C0A074;
  color: #314455;
}
.footer-contact {
  text-align: center;
  color: #fff;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 6px;
}

/* ==============================
   Mobile Navigation
============================== */
.mobile-menu-toggle {
  display: none;
  background: #C0A074;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  margin-left: 12px;
  cursor: pointer;
  z-index: 420;
  position: relative;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #314455;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: #314455;
  color: #fff;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  padding: 32px 28px 24px 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.73,0.21,0.33,0.96);
  box-shadow: -8px 0 44px 0 rgba(49,68,85,0.11);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #fff;
  font-size: 2.6rem;
  border: none;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #C0A074;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  padding: 16px 0 4px 0;
  border-bottom: 2px solid rgba(255,255,255,0.10);
  transition: color 0.21s, background 0.18s;
  border-radius: 4px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #C0A074;
  background: rgba(255,255,255,0.06);
}

/* Hide on desktop, show on mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .btn-primary {
    display: none;
  }
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  header .container {
    gap: 10px;
  }
  .section, .cta-banner {
    margin-bottom: 36px;
    padding: 24px 8px;
    border-radius: 16px;
  }
  .hero {
    padding-top: 38px;
    padding-bottom: 38px;
    border-radius: 0 0 36px 36px;
  }
  .hero h1 {
    font-size: 2.16rem;
  }
  .features-grid, .category-list {
    flex-direction: column;
    gap: 18px;
  }
  .features-grid > div, .category-list > div {
    min-width: 0;
    width: 100%;
    padding: 22px 14px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px 10px 16px 12px;
  }
  footer {
    border-radius: 24px 24px 0 0;
    padding: 28px 0 0 0;
  }
}
@media (max-width: 525px) {
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
  .footer-contact {
    font-size: 0.93rem;
  }
}
@media (max-width: 425px) {
  h1 {
    font-size: 1.68rem;
  }
  h2 {
    font-size: 1.24rem;
  }
  .btn-primary, button {
    font-size: 0.97rem;
    padding: 11px 18px;
  }
}

/* ==============================
   Cookie Consent Banner & Modal
============================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid #C0A074;
  box-shadow: 0 -2px 36px 0 rgba(49,68,85,0.13);
  color: #314455;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 26px 22px 22px 22px;
  z-index: 12000;
  animation: slideBannerIn 0.6s cubic-bezier(.26,.91,.61,.92);
  font-size: 1rem;
}
@keyframes slideBannerIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  max-width: 600px;
  flex: 1 1 260px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-reject,
.cookie-banner .btn-settings {
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.18s;
}
.cookie-banner .btn-primary {
  background: #314455;
  color: #fff;
}
.cookie-banner .btn-primary:hover {
  background: #C0A074;
  color: #fff;
}
.cookie-banner .btn-reject {
  background: #fff;
  color: #314455;
  border: 2px solid #314455;
}
.cookie-banner .btn-reject:hover {
  background: #C0A074;
  color: #fff;
  border-color: #C0A074;
}
.cookie-banner .btn-settings {
  background: #C0A074;
  color: #fff;
}
.cookie-banner .btn-settings:hover {
  background: #314455;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40,49,58,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12010;
  animation: fadeModalIn 0.33s;
}
@keyframes fadeModalIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #314455;
  border-radius: 18px;
  max-width: 420px;
  padding: 38px 28px 28px 28px;
  box-shadow: 0 12px 60px 0 rgba(49,68,85,0.22);
  position: relative;
  font-size: 1rem;
  animation: showModalContent 0.45s cubic-bezier(.26,.91,.61,.92);
}
@keyframes showModalContent {
  0% { transform: translateY(80px) scale(0.94); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #C0A074;
  margin-bottom: 16px;
  margin-top: 0;
}
.cookie-modal-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}
.cookie-modal-content li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-toggle {
  width: 46px;
  height: 26px;
  appearance: none;
  background: #C0A074;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.12s;
}
.cookie-toggle:checked {
  background: #314455;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.14s, background 0.13s;
}
.cookie-toggle:checked:before {
  left: 23px;
  background: #fff;
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  border: none;
  color: #314455;
  font-size: 2.1rem;
  cursor: pointer;
}
.cookie-modal-footer {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    font-size: 0.98rem;
    padding: 16px 7px 12px 7px;
    box-shadow: 0 -3px 24px 0 rgba(49,68,85,0.22);
  }
  .cookie-modal-content {
    max-width: 92vw;
    padding: 18px 7vw 18px 7vw;
  }
}

/* ==============================
   Utilities & Effects
============================== */
.shadow-pop {
  box-shadow: 0 14px 60px 0 rgba(49,68,85,0.16);
}
.rounded-xl {
  border-radius: 18px;
}
.bg-primary {
  background: #314455;
  color: #fff;
}
.bg-accent {
  background: #F6F3ED;
}
.text-primary {
  color: #314455;
}
.text-secondary {
  color: #C0A074;
}
.text-center {
  text-align: center;
}

/* ==============================
   Geometric Decoration Elements
   (Optional for future SVG absolute bg shapes)
============================== */
.geometric-bg {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
}

/* ==============================
   Focus States & Accessibility
============================== */
*:focus-visible {
  outline: 2px solid #C0A074;
  outline-offset: 2px;
}

/* ==============================
   Print Styles
============================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
}
