/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: inherit;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  background: none;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  border: 0;
}

/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css?family=Bree+Serif:400|Open+Sans:400,600,700&display=swap');

:root {
  --color-primary: #396266;
  --color-primary-rgb: 57,98,102;
  --color-secondary: #F3EFEA;
  --color-accent: #D18F4E;
  --color-bg: #fff;
  --color-dark: #222;
  --color-light: #fff;
  --color-card-bg: #fff;
  --color-card-shadow: rgba(25,32,41, 0.08);
  --font-display: 'Bree Serif', serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  --transition-main: 0.22s cubic-bezier(0.4,0.1,0.6,1.1);
  --radius-lg: 20px;
  --radius-sm: 10px;
}

body {
  background: var(--color-secondary);
  font-family: var(--font-body);
  color: var(--color-dark);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

/* CONTAINERS & LAYOUT */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 4vw;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-lg);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--color-card-bg);
  padding: 30px 24px 28px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 28px var(--color-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 260px;
  flex: 1 1 240px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
  position: relative;
}
.feature-grid > div:hover {
  box-shadow: 0 10px 40px 0 rgba(209,143,78,0.18);
  transform: translateY(-6px) scale(1.03);
}
.feature-grid img {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  display: block;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 28px var(--color-card-shadow);
  padding: 28px 22px 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
}
.card:hover {
  box-shadow: 0 14px 42px 0 rgba(57,98,102,0.13);
  transform: scale(1.02) translateY(-3px);
}

.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;
  background: #fff;
  color: #1b2329;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px var(--color-card-shadow);
  padding: 20px;
  margin-bottom: 20px;
  flex: 1 1 300px;
  font-size: 1.1rem;
  position: relative;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
}
.testimonial-card:hover {
  box-shadow: 0 20px 48px 0 rgba(57,98,102,0.14);
  transform: translateY(-4px) scale(1.03);
}
.testimonial-card p {
  flex: 1;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.testimonial-card span {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  margin-left: 10px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: var(--radius-sm);
  padding: 13px 34px;
  box-shadow: 0 4px 16px 0 rgba(209, 143, 78, 0.08);
  cursor: pointer;
  border: none;
  transition: 
    background var(--transition-main),
    box-shadow var(--transition-main),
    color var(--transition-main),
    transform var(--transition-main);
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-secondary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent);
  color: var(--color-dark);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 28px 0 rgba(57,98,102,0.12);
}

.btn-secondary {
  background: var(--color-accent);
  color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 7px 22px 0 rgba(209,143,78, 0.14);
}

/* TYPOGRAPHY */
h1, .display {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.11;
  letter-spacing: 0.01em;
}
h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: 0.02em;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.22;
  letter-spacing: 0.03em;
}
h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
}
p, ul li, ol li, a, span, label {
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: var(--color-dark);
}
.subheadline {
  font-size: 1.3rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

ul, ol {
  margin-bottom: 10px;
}
ul li, ol li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
}
ul li:before, ol li:before {
  content: "";
  display: inline-block;
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* HEADER & NAVIGATION */
header {
  background: var(--color-bg);
  box-shadow: 0 2px 8px 0 rgba(57,98,102,0.05);
  z-index: 50;
  position: sticky;
  top: 0;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 0;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 22px;
}
.logo img {
  height: 54px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition-main);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
}

/* Hamburger menu for mobile */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  width: 46px;
  height: 46px;
  margin-left: 18px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-main), color var(--transition-main);
  z-index: 101;
}
.mobile-menu-toggle:active {
  background: var(--color-primary);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(243,239,234, 0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 200;
  transform: translateX(-110vw);
  transition: transform 0.33s cubic-bezier(.7,1.3,.7,1.01);
  padding: 0;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-accent);
  color: #fff;
  font-size: 2.2rem;
  border: none;
  border-radius: var(--radius-sm);
  margin: 28px 24px 0 0;
  width: 47px;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 11;
  transition: background var(--transition-main), color var(--transition-main);
}
.mobile-menu-close:active {
  background: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 44px 0 0 0;
  width: 100%;
  align-items: flex-start;
  gap: 5px;
  padding-left: 30px;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 16px 10px 16px 0;
  width: 85vw;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  transition: background var(--transition-main), color var(--transition-main);
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}

/* FOOTER */
footer {
  background: var(--color-primary);
  padding: 0;
  color: var(--color-secondary);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: 0 -5px 20px rgba(25,42,41,0.06);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 4vw 32px 4vw;
}
.footer-nav {
  display: flex;
  gap: 15px;
  font-family: var(--font-display);
  font-size: 1.01rem;
  color: var(--color-secondary);
  opacity: 0.9;
  align-items: center;
}
.footer-nav a {
  color: var(--color-secondary);
  font-weight: 600;
  transition: color var(--transition-main);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.footer-brand img {
  height: 50px;
  margin-bottom: 10px;
  display: block;
}
.footer-contact-info {
  color: var(--color-secondary);
  font-size: 1rem;
  opacity: 0.93;
  line-height: 1.6;
  font-family: var(--font-body);
}
.footer-contact-info img {
  display: inline-block;
  height: 15px;
  width: 15px;
  margin-right: 7px;
  vertical-align: middle;
}

/* COOKIE CONSENT BANNER */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-bg);
  box-shadow: 0 -8px 32px 0 rgba(57,98,102,0.09);
  color: var(--color-primary);
  padding: 26px 18px 22px 18px;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 36px;
  z-index: 502;
  font-size: 1.04rem;
  animation: cookieBannerSlideIn 0.6s cubic-bezier(.53,0,.34,1.25);
}
@keyframes cookieBannerSlideIn {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0%); opacity: 1; }
}
#cookie-consent-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
#cookie-consent-banner .cookie-btn {
  min-width: 120px;
  margin-top: 6px;
}

/* Cookie MODAL */
#cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(57,98,102,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(.7,1.3,.7,1.01);
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
#cookie-modal .cookie-modal-content {
  background: #fff;
  color: var(--color-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px 0 rgba(57,98,102,0.09);
  padding: 34px 28px 24px 28px;
  min-width: 300px;
  max-width: 92vw;
  width: 412px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: cookieModalIn 0.44s cubic-bezier(.53,0,.34,1.25);
}
@keyframes cookieModalIn {
  from { transform: translateY(60px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal-header {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 700;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.cookie-modal-category {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}
.cookie-modal-category label {
  font-size: 1.08rem; 
  color: var(--color-dark);
}
.cookie-toggle {
  margin-top: 2px; margin-right: 6px;
  width: 25px; height: 25px;
  accent-color: var(--color-accent);
}

.cookie-modal-btns {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: flex-end;
}

.cookie-modal-content .cookie-info {
  font-size: 0.99rem;
  opacity: 0.86;
}

/* GENERAL SPACING AND FLEX GAPS */
main {
  flex: 1 0 auto;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-lg);
}

/* Utility Classes */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-40 { margin-bottom: 40px !important; }

/* FORM STYLES */
input, textarea, select {
  width: 100%;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #ececec;
  font-size: 1rem;
  margin-bottom: 16px;
  background: #fff;
  color: var(--color-dark);
  transition: border var(--transition-main);
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-primary);
}
label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.09rem;
}

/* DECORATIVE GEOMETRIC ELEMENTS */
.feature-grid > div::before {
  content: "";
  display: block;
  position: absolute;
  top: -18px; right: -20px;
  width: 38px; height: 38px;
  background: var(--color-accent);
  opacity: 0.12;
  border-radius: 13px 60px 34px 9px;
  z-index: 0;
}
.feature-grid > div:hover::before {
  opacity: 0.14;
}

/*==== RESPONSIVE DESIGN ====*/
@media (max-width: 1200px) {
  .container {
    max-width: 92vw;
  }
  .footer-nav {
    flex-direction: column;
    gap: 7px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 97vw;
  }
  .footer-brand, .footer-contact-info {
    display: none;
  }
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 32px 5vw 28px 5vw;
  }
}
@media (max-width: 768px) {
  html { font-size: 15.5px; }
  header .container {
    flex-direction: row;
    gap: 0;
    min-height: 54px;
    padding: 12px 3vw;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .logo img {
    height: 45px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .card-container, .content-grid, .footer-nav {
    flex-direction: column;
    gap: 14px;
  }
  .section, section {
    padding: 26px 6vw;
    margin-bottom: 40px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    padding: 15px 13px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    text-align: left;
  }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 2vw; }
  header .container {
    padding: 9px 2vw;
  }
  .section, section {
    padding: 21px 4vw;
  }
  #cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 19px 8px 15px 10px;
    font-size: 0.95rem;
  }
  #cookie-modal .cookie-modal-content {
    width: 94vw;
    font-size: 0.99rem;
    padding: 18px 10px 13px 10px;
  }
}

/*==== ANIMATION UTILITIES ====*/
.btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close, #cookie-consent-banner .cookie-btn, .cookie-modal-close, .cookie-modal-btns button {
  transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main), transform var(--transition-main);
}

/*---- Scrollbar Styling ----*/
body {
  scrollbar-color: var(--color-accent) var(--color-secondary);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 7px; background: var(--color-secondary); border-radius: 8px; }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 8px; }

/*==== ACCESSIBILITY ====*/
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/*==== END ====*/
