/* -------------------------
   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;
  background: #fff;
  color: #222;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  box-sizing: border-box;
  background: none;
  border: none;
  outline: none;
}
::-webkit-input-placeholder { color: #aaa; }
::-moz-placeholder { color: #aaa; }
:-ms-input-placeholder { color: #aaa; }
::placeholder { color: #aaa; }

/* -----------------------------
   Brand Variables & Typography
------------------------------ */
:root {
  --primary: #205072;
  --secondary: #9BC1BC;
  --accent: #FFD662;
  --gray-100: #F7F9FA;
  --gray-200: #F0F2F4;
  --gray-300: #D8DEE3;
  --gray-400: #A6ABB4;
  --gray-900: #222;
  --shadow: 0 2px 16px 0 rgba(32,80,114,0.03), 0 1.5px 6px 0 rgba(32,80,114,0.07);
  --radius: 15px;
  --font-display: 'Raleway', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

/* Ensure fonts loaded -- note: In prod, use @import or link */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  src: local('Raleway'), local('Raleway-Bold');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans'), local('OpenSans-Regular');
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: #fff;
  color: var(--gray-900);
  min-height: 100vh;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 18px;
}
h1 {font-size: 2.25rem; margin-bottom: 24px;}
h2 {font-size: 1.5rem; margin-bottom: 18px;}
h3 {font-size: 1.125rem; margin-bottom: 12px;}
@media (min-width: 768px) {
  h1 {font-size: 3rem;}
  h2 {font-size: 2rem;}
  h3 {font-size: 1.25rem;}
}

p, ul, ol, address {
  font-family: var(--font-body);
  color: var(--gray-900);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
}

/* -------------
   Container
-------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  background: transparent;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ------------------------------
   Header & Main Navigation
------------------------------- */
header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}
header img {
  height: 38px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .18s, color .18s;
  position: relative;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cta-button {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  padding: 11px 28px;
  margin-left: 12px;
  box-shadow: 0 2px 10px rgba(32,80,114,0.07);
  transition: background .18s, box-shadow .20s, transform .20s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.03em;
}
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  color: var(--primary) !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 24px rgba(32,80,114,0.10);
}

/* ----------------------
   Mobile Navigation
----------------------- */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.16s;
  z-index: 1002;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.96);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.75,0,.30,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 26px 0 8px 18px;
  background: var(--gray-200);
  color: var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 2100;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--accent);
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 12px;
  padding: 14px 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--primary);
  padding: 12px 0 12px 8px;
  border-radius: 10px;
  background: none;
  transition: background 0.18s, color 0.16s;
  min-width: 70vw;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Hide main navigation for mobile, show toggle */
@media (max-width: 920px) {
  .main-nav,
  .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (min-width: 921px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/* ---------------------------
   Sections & Content Spacing
--------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  width: 100%;
  max-width: 800px;
}

.split-section {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .split-section {
    flex-direction: column;
    gap: 20px;
  }
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.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: flex-start;
    gap: 18px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .16s, transform .19s;
}
.card:hover {
  box-shadow: 0 6px 22px rgba(32,80,114,0.11);
  transform: translateY(-2px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 24px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 180px;
  margin-bottom: 20px;
  transition: box-shadow .18s;
}
.feature-item:hover {
  box-shadow: 0 4px 18px rgba(32,80,114,0.11);
}

/* Testimonial Cards */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(32,80,114,0.06);
  color: var(--primary);
  font-size: 1.07rem;
  border-left: 6px solid var(--accent);
  min-width: 220px;
  max-width: 450px;
}
.testimonial-card p {
  font-style: italic;
  color: var(--gray-900);
  font-size: 1.05rem;
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 0.97rem;
}

/* Ensure testimonial accessibility */
.testimonial-card,
.testimonial-card p,
.testimonial-card strong {
  color: #1C2632;
}

/* Weather Widget styling */
.weather-widget {
  background: var(--gray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.weather-widget ul {
  padding-left: 0;
  margin-bottom: 0;
  color: var(--primary);
}
.weather-widget li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.weather-widget .tip-of-the-day {
  background: var(--accent);
  color: var(--primary);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 1rem;
}

/* Cards/Lists with icons */
ul > li, .footer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.98rem;
}
ul > li img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-right: 4px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  ul > li img {
    width: 18px; height: 18px;
  }
}

/* General List styling */
ul, ol {
  margin-bottom: 20px;
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}
ul li, ol li {
  margin-bottom: 10px;
  position: relative;
}

/* ----------------------------------
   Footer
----------------------------------- */
footer {
  border-top: 1px solid var(--gray-200);
  background: #fff;
  padding: 0;
  width: 100%;
  box-shadow: 0 -1px 12px 0 rgba(32,80,114,0.04);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 12px 24px 12px;
}
footer .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}
footer img {
  height: 48px;
  margin-bottom: 8px;
}
footer address {
  font-style: normal;
  color: var(--gray-400);
  font-size: 0.98rem;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}
.footer-nav a {
  font-size: 0.94rem;
  color: var(--gray-400);
  padding: 5px 10px;
  border-radius: 8px;
  background: none;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 600px) {
  footer .container {
    flex-direction: column;
    padding: 22px 8px 18px 8px;
  }
  .footer-nav {
    gap: 7px;
  }
}

/* ---------------------------------
   Forms (Contact/Other)
---------------------------------- */
input, textarea, select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: #fff;
  margin-bottom: 16px;
  width: 100%;
  font-size: 1rem;
  color: var(--primary);
  transition: border-color .16s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
}

/* -----------------------------------------
   Cookie Consent Banner & Cookie Modal
------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  border-top: 1.5px solid var(--gray-300);
  box-shadow: 0 -3px 18px 0 rgba(32,80,114,0.08);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 3500;
  animation: banner-slide-up .45s cubic-bezier(.7,.1,.7,1);
  font-size: 1.06rem;
}
@keyframes banner-slide-up {
  0% {transform: translateY(100%); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  padding: 9px 21px;
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--gray-200);
  color: var(--primary);
  cursor: pointer;
  border: none;
  margin: 0;
  transition: background .18s, color .18s, box-shadow .18s;
}
.cookie-banner button.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-banner button.reject {
  background: var(--gray-400);
  color: #fff;
}
.cookie-banner button.settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  box-shadow: 0 2px 8px 0 rgba(32,80,114,0.10);
  opacity: 0.94;
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3600;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,80,114,0.18);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  animation: cookie-modal-fade-in .28s;
}
@keyframes cookie-modal-fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  padding: 34px 26px 22px 26px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(32,80,114,0.13);
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 98vw;
  min-width: 310px;
  width: 420px;
  position: relative;
  z-index: 3700;
  font-size: 1.04rem;
}
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  background: var(--gray-200);
  color: var(--primary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.24rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 3750;
  transition: background .12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--accent);
  color: var(--primary);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 9px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: var(--gray-100);
  padding: 12px 14px;
  border-radius: 9px;
}
.cookie-category-title {
  font-weight: bold;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 3px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cookie-toggle input[type=checkbox]{
  appearance: none;
  width: 32px;
  height: 18px;
  background: var(--gray-300);
  border-radius: 16px;
  position: relative;
  transition: background 0.14s;
  outline: none;
}
.cookie-toggle input:checked {
  background: var(--accent);
}
.cookie-toggle input[type=checkbox]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.17s;
}
.cookie-toggle input[type=checkbox]:checked::before {
  left: 15px;
  background: var(--primary);
}
.cookie-category[aria-disabled="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.cookie-modal .cookie-modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 14px;
}
.cookie-modal button {
  font-family: var(--font-display);
  font-weight: 700;
  padding: 8px 23px;
  border-radius: var(--radius);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: background .18s, color .14s, box-shadow .14s;
}
.cookie-modal button.secondary {
  background: var(--gray-400);
  color: #fff;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--accent);
  color: var(--primary);
}

/* --------------
   Micro States
--------------- */
a, button {
  transition: background 0.14s, color 0.14s, box-shadow 0.15s, border 0.15s, transform 0.13s;
}
a:active, button:active {
  opacity: 0.91;
}
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1.5px;
}

/* --------------------------
   Responsive Adjustments
-------------------------- */
@media (max-width: 1024px) {
  .container { max-width: 96vw; }
  .content-wrapper { max-width: 100%; }
}
@media (max-width: 768px) {
  section { padding: 30px 7vw; }
  .content-wrapper { max-width: 100vw; }
  .testimonial-card { max-width: 98vw; }
}
@media (max-width: 600px) {
  section { padding: 27px 2vw 25px 2vw; }
  .footer-nav {gap:4px;}
  .card,.feature-item,.weather-widget { padding: 15px 7px; }
  .cookie-modal { padding:18px 8px; width:97vw;min-width:0; }
  footer img { height:36px; }
}

/* Utility classes for minimalism */
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.flex { display: flex; }
.center { justify-content: center; align-items: center; }

/* Hide cookie banner/modal when not active */
.cookie-banner, .cookie-modal-overlay { display: none; }
.cookie-banner.active { display: flex; }
.cookie-modal-overlay.active { display: flex; }

/* --------------
   End of CSS
--------------- */
