/* ====================
   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,
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFFFFF;
  color: #0D324D;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  outline: none;
}
a {
  color: #398FC0;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #0D324D;
  text-decoration: underline;
}


/* ===============
   Brand Variables
   =============== */
:root {
  --color-primary: #0D324D;
  --color-secondary: #E5EEF4;
  --color-accent: #398FC0;
  --color-light: #FFFFFF;
  --color-dark: #0D324D;
  --color-gray: #64748B;
  --color-muted: #F5F7FA;
  --shadow-base: 0 2px 12px rgba(13,50,77,0.08);
  --radius-base: 10px;
  --transition-base: 0.3s cubic-bezier(.47,.13,.15,.97);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}


/* ===========================
   Container & Section Styling
   =========================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 992px) {
  .section {
    margin-bottom: 36px;
    padding: 32px 8px;
  }
  .container {
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 24px;
    padding: 24px 0;
  }
  .content-wrapper {
    gap: 18px;
  }
}


/* =============================
   Typography: Headers & Paragraph
   ============================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-top: 0;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.38rem;
  color: var(--color-accent);
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 600;
}
p, ul, ol, li {
  font-family: var(--font-body);
  color: #27364A;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 10px;
}
p:last-child {
  margin-bottom: 0;
}
strong, b {
  font-weight: bold;
}


/* ============================
   Header & Navigation Styling
   ============================ */
header {
  width: 100%;
  background: var(--color-light);
  box-shadow: 0 4px 18px rgba(13,50,77,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 70px;
}
header img {
  height: 44px;
  margin-right: 32px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  transition: color 0.15s;
  position: relative;
}
header nav a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
  position: absolute;
  bottom: 0;
  left: 0;
}
header nav a:hover::after {
  width: 100%;
}
header .cta-btn {
  margin-left: 32px;
}

/* Hide mobile toggle by default */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: auto;
  z-index: 102;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover {
  color: var(--color-accent);
}

@media(max-width: 991px) {
  header .container {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 58px;
  }
  header img {
    margin-right: 12px;
    height: 36px;
  }
  header nav {
    gap: 12px;
  }
  header .cta-btn {
    margin-left: 8px;
  }
}
@media(max-width: 768px) {
  header .container {
    flex-direction: row;
    min-height: 52px;
    padding: 0 8px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ===========================
   Mobile Slide-in Navigation
   =========================== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 340px;
  height: 100vh;
  background: var(--color-light);
  box-shadow: -6px 0 24px rgba(13,50,77,0.12);
  z-index: 1100;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 2rem;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.07rem;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 0;
  transition: color 0.18s, background 0.22s;
  border-radius: var(--radius-base);
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}
@media(min-width: 769px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Overlay for mobile menu */
.mobile-menu-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13,50,77,0.18);
  z-index: 1090;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.mobile-menu.open + .mobile-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}


/* =====================
   Hero & CTA Sections
   ===================== */
.hero, .cta {
  background: var(--color-secondary);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  margin-bottom: 60px;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.7rem;
}
.hero p {
  color: #405272;
  font-size: 1.2rem;
  margin-bottom: 26px;
}
.cta h2 {
  font-size: 2.2rem;
}
.cta-btn {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(13,50,77,0.03);
  transition: background var(--transition-base), box-shadow var(--transition-base), transform 0.16s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 5px 18px rgba(13,50,77,0.08);
}

@media (max-width: 768px) {
  .hero, .cta {
    padding: 32px 0 28px 0;
    margin-bottom: 28px;
  }
  .hero h1,
  .cta h2 {
    font-size: 1.4rem;
  }
}


/* =====================
   Card & Flex Patterns
   ===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.card {
  background: var(--color-light);
  box-shadow: var(--shadow-base);
  border-radius: var(--radius-base);
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
  flex: 1 1 280px;
  z-index: 0;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* Feature grid and items */
.features, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-item {
  background: var(--color-light);
  box-shadow: var(--shadow-base);
  border-radius: var(--radius-base);
  padding: 26px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 220px;
  min-width: 210px;
  transition: box-shadow 0.16s, transform 0.16s;
}
.feature-item:hover {
  box-shadow: 0 8px 20px rgba(13,50,77,0.18);
  transform: translateY(-3px) scale(1.015);
}
.feature-item img {
  height: 44px;
  width: 44px;
  object-fit: contain;
}

/* Card spacing patterns */
.card, .feature-item, .window-type, .service-item {
  margin-bottom: 20px;
}


/* =====================
   WINDOW TYPES & SERVICES
   ===================== */
.window-type-grid, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.window-type, .service-item {
  background: var(--color-light);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  padding: 24px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  flex: 1 1 220px;
  transition: box-shadow 0.14s, transform 0.13s;
}
.window-type:hover, .service-item:hover {
  box-shadow: 0 6px 24px rgba(57,143,192,0.17);
  transform: translateY(-3px) scale(1.013);
}
.window-type img, .service-item img {
  width: 42px;
  height: 42px;
}

@media (max-width: 900px) {
  .feature-grid, .window-type-grid, .service-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .window-type-grid, .service-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* ========================
   Testimonial Cards & Stars
   ======================== */
.testimonials, .testimonial-card {
  background: transparent;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-secondary);
  border-radius: var(--radius-base);
  box-shadow: 0 0.5px 6px rgba(13,50,77,0.10);
  padding: 20px;
  margin-bottom: 20px;
  color: var(--color-dark);
  font-size: 1.08rem;
}
.testimonial-card p {
  font-family: var(--font-body);
  color: #1B2533;
  font-size: 1rem;
  margin-bottom: 0;
}
.testimonial-card strong {
  display: block;
  font-weight: bold;
  color: var(--color-accent);
  font-size: 1rem;
  margin-top: 8px;
}
.star-ratings {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}
.star-ratings img {
  width: 22px;
  height: 22px;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .star-ratings {
    margin-left: 0;
    align-self: flex-end;
  }
}


/* =========================
   About, Contact, Process Sections
   ========================= */
.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;
  }
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.contact-info img {
  vertical-align: middle;
  margin-right: 6px;
  height: 22px;
}
.map {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
}

/* Lists, Tables */
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 2px;
}
ul li::before, ol li::before {
  content: '\2022';
  color: var(--color-accent);
  display: inline-block;
  width: 1.2em;
  margin-left: -1.2em;
}

ol {
  counter-reset: section;
}
ol li {
  counter-increment: section;
}
ol li::before {
  content: counter(section) '.';
  color: var(--color-accent);
  font-weight: bold;
  display: inline-block;
  width: 1.7em;
  margin-left: -1.7em;
}
.compare-table, table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  margin-top: 14px;
  background: #fff;
  box-shadow: var(--shadow-base);
  border-radius: var(--radius-base);
  overflow: hidden;
  font-size: 1rem;
}
table thead tr {
  background: var(--color-secondary);
}
table th, table td {
  padding: 15px 11px;
  text-align: left;
}
table th {
  color: var(--color-primary);
  font-weight: 700;
}
table tr + tr {
  border-top: 1px solid #E4EAF1;
}

/* =================
   Blog Teaser Grid
   ================= */
.blog-teaser-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.blog-teaser {
  flex: 1 1 260px;
  min-width: 220px;
  padding: 26px 20px 20px;
  background: var(--color-light);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  transition: box-shadow 0.13s, transform 0.12s;
}
.blog-teaser:hover {
  box-shadow: 0 6px 18px rgba(13,50,77,0.13);
  transform: translateY(-2px) scale(1.013);
}
@media(max-width: 950px) {
  .blog-teaser-grid {
    gap: 12px;
  }
}
@media(max-width: 768px) {
  .blog-teaser-grid {
    flex-direction: column;
    gap: 12px;
  }
}

/* =====================
   Newsletter & Forms
   ===================== */
.newsletter {
  background: var(--color-secondary);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-base);
  padding: 36px 20px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .newsletter {
    padding: 20px 0 18px 0;
    margin-bottom: 20px;
  }
}

/* ============
   Footer
   ============ */
footer {
  background: var(--color-primary);
  color: var(--color-light);
  padding: 36px 0 18px 0;
  font-family: var(--font-body);
}
footer .container {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
footer img {
  width: 48px;
  height: auto;
  margin-bottom: 8px;
}
footer p {
  color: var(--color-light);
  font-size: 1rem;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--color-accent);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: #FFFFFF;
}
@media (max-width: 768px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 0 8px;
  }
  footer nav {
    gap: 10px;
    flex-wrap: wrap;
  }
}

/* =============
   Cookie Consent
   ============= */
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-dark);
  color: #fff;
  width: 100vw;
  z-index: 1600;
  padding: 22px 12px 22px 12px;
  box-shadow: 0 -3px 18px rgba(13,50,77,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 1rem;
  animation: slideInUp 0.6s cubic-bezier(.47,.13,.15,.97);
}
@media (max-width: 768px) {
  .cookie-consent {
    flex-direction: column;
    gap: 14px;
    padding: 12px 6px 16px 6px;
    font-size: 0.94rem;
    align-items: flex-start;
  }
}
.cookie-consent button {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-base);
  margin-left: 10px;
  padding: 10px 22px;
  margin-top: 6px;
  transition: box-shadow 0.17s, background 0.17s;
  box-shadow: 0 2px 6px rgba(57, 143, 192, 0.07);
  cursor: pointer;
}
.cookie-consent .accept-btn {
  background: var(--color-accent);
  color: #fff;
}
.cookie-consent .accept-btn:hover {
  background: #2e6c94;
}
.cookie-consent .reject-btn {
  background: #fff;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.cookie-consent .reject-btn:hover {
  background: #E5EEF4;
}
.cookie-consent .settings-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 1px solid #b5c8d8;
}
.cookie-consent .settings-btn:hover {
  background: #eaf2f8;
  color: #15658C;
}

@keyframes slideInUp {
  0% { transform: translateY(110%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ===============
   Cookie Modal
   =============== */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(13,50,77,0.24);
  z-index: 1605;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -54%);
  background: #fff;
  color: var(--color-dark);
  border-radius: var(--radius-base);
  box-shadow: 0 8px 42px rgba(13,50,77,0.22);
  z-index: 1610;
  width: 98vw;
  max-width: 430px;
  min-width: 240px;
  padding: 34px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popFadeIn 0.36s cubic-bezier(.47,.13,.15,.97);
}
@keyframes popFadeIn {
  from { opacity: 0; transform: translate(-50%, -35%) scale(0.9); }
  to   { opacity: 1; transform: translate(-50%, -54%) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-modal .modal-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin: 10px 0 0 0;
  font-size: 1.04rem;
}
.cookie-modal label {
  cursor: pointer;
  colored: var(--color-primary);
  font-weight: 500;
}
.cookie-category-toggle {
  margin-left: auto;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal .modal-actions button {
  margin-left: 0;
  padding: 10px 18px;
  font-size: 1rem;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-gray);
  cursor: pointer;
}
.cookie-modal .close-modal:hover {
  color: var(--color-accent);
}

/* ===========
   Utilities
   =========== */
.text-center {text-align:center;}
.m-0 {margin:0;}
.mt-2 {margin-top:16px;}
.mb-2 {margin-bottom:16px;}
.mb-4 {margin-bottom:32px;}
.gap-8 {gap:8px;}
.gap-12 {gap:12px;}
.gap-24 {gap:24px;}

/* 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;
}

/* ===============
   Responsive
   =============== */
@media (max-width: 600px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  .card, .window-type, .service-item, .feature-item {
    min-width: 0;
    padding: 16px 10px 12px;
  }
  .container {
    padding: 0 2px;
  }
  .cookie-consent {
    font-size: 0.88rem;
  }
  .cookie-modal {
    padding: 18px 6px 18px 6px;
  }
}

/* Remove button and anchor outline except on focus-visible */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none !important;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--color-accent) !important;
  outline-offset: 2px;
}

/* ===================
   END OF CORPORATE CSS
   =================== */
