/* =============================================
   Fiber Haven Corporate Style CSS
   Modern, professional, blue/gray, business look
   - Mobile-first, responsive, flexbox-only layouts
   ============================================= */

/* ====== 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;
}
html { box-sizing: border-box; font-size: 16px; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body { background: #F5F8FC; color: #24334B; min-height: 100vh; line-height: 1.7; }
img { max-width: 100%; display: block; height: auto; }
a { color: #24334B; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #6CC2E6; }
ul, ol { list-style: none; }
button { border: none; outline: none; background: none; cursor: pointer; font: inherit; }

/* ====== Font Family & Hierarchy ======= */
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  background-color: #F5F8FC;
  color: #24334B;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #24334B;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p, li, .text-section { font-size: 1rem; color: #24334B; }
@media (min-width: 600px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
  p, li, .text-section { font-size: 1.1rem; }
}

/* ===== Brand Containers & Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(36,51,75,0.07);
}
@media (max-width: 800px) {
  .section {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
}

/* ===== Header ===== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(36,51,75,0.05);
  position: relative;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}
.logo-link img { height: 44px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #24334B;
  transition: color 0.2s;
  padding: 8px 4px;
}
.main-nav a:hover, .main-nav a:focus {
  color: #6CC2E6;
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #24334B;
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(36,51,75,0.12);
  transition: background 0.2s, box-shadow 0.2s, transform 0.12s;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #395982;
  box-shadow: 0 4px 18px rgba(36,51,75,0.15);
  transform: translateY(-2px) scale(1.02);
}
.btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #6CC2E6;
  color: #24334B;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(108,194,230,0.16);
  transition: background 0.2s, box-shadow 0.2s, transform 0.12s;
  display: inline-block;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #4CAACC;
  box-shadow: 0 5px 20px rgba(108,194,230,0.22);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
}

/* ===== Mobile Burger Menu ===== */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #24334B;
  color: #fff;
  font-size: 2rem;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  margin-left: 10px;
  transition: background 0.2s;
  z-index: 1201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #395982;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(36,51,75, 0.95);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.55,0,.1,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 30px 30px 18px 0;
  background: #fff;
  color: #24334B;
  font-size: 2.2rem;
  border-radius: 6px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 1202;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #6CC2E6;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 12px 30px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 12px 0;
  border-radius: 5px;
  transition: background 0.14s, color 0.2s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus{
  background: #6CC2E6;
  color: #24334B;
}
@media (min-width: 980px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .main-nav { display: flex; }
  .btn-primary { display: inline-block; }
}
@media (max-width: 979px) {
  .main-nav { display: none !important; }
  .btn-primary { display: none !important; }
  .mobile-menu-toggle { display: flex !important; }
}

/* ===== Section, Card & Flex Utilities ===== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(36,51,75,0.07);
  transition: box-shadow 0.2s, transform 0.11s;
  padding: 28px 22px;
}
.card:hover {
  box-shadow: 0 4px 14px rgba(36,51,75,0.19);
  transform: translateY(-2px) scale(1.01);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section,
  .content-grid, .card-container, .feature-grid, .service-card-grid, .testimonial-slider, .feature-icons {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
}

/* ===== Reusable Feature/Grid Blocks ===== */
.feature-grid, .service-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .service-card-grid > div {
  flex: 1 1 220px;
  background: #F5F8FC;
  padding: 28px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(36,51,75,0.06);
  text-align: left;
  transition: box-shadow 0.18s, transform 0.16s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  gap: 8px;
}
.feature-grid > div:hover, .service-card-grid > div:hover {
  box-shadow: 0 4px 16px rgba(108,194,230,0.13);
  transform: translateY(-3px) scale(1.015);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 1.08rem;
}
.feature-list img { width: 26px; height: 26px; margin-top: 1px; }
.stats {
  display: flex; flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0;
}
.stats p { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: 1.1rem; }
.certifications ul, .industries ul, .innovation-points, .category-list, .benefits-list, .popular-guides ul {
  display: flex; flex-direction: column; gap: 9px; margin-bottom: 11px;
}

/* ===== Testimonials ===== */
.testimonial-slider, .featured-posts {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: #F5F8FC;
  border: 1px solid #E5ECF4;
  border-radius: 12px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 390px;
  box-shadow: 0 1px 6px rgba(36,51,75,0.065);
  transition: box-shadow 0.15s, transform 0.10s;
}
.testimonial-card:hover {
  box-shadow: 0 3px 16px rgba(36,51,75,0.11);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-stars {
  font-size: 1.2rem;
  color: #FFD700;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 1.5px;
}
.testimonial-author {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  color: #24334B;
  font-size: 1rem;
  opacity: 0.84;
}

/* ===== Blog/FAQ/Other Cards ===== */
.featured-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-post {
  padding: 24px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(36,51,75,0.09);
  flex: 1 1 300px;
  max-width: 370px;
  transition: box-shadow 0.15s, transform 0.10s;
}
.blog-post:hover {
  box-shadow: 0 4px 14px rgba(36,51,75,0.15);
  transform: translateY(-3px) scale(1.015);
}

/***** FAQ Accordion *****/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item h3 {
  font-size: 1.15rem;
  cursor: pointer;
  background: #F5F8FC;
  color: #24334B;
  padding: 14px 20px;
  border-radius: 8px 8px 0 0;
  transition: background 0.17s;
}
.faq-item h3:hover {
  background: #E5ECF4;
}
.faq-item div {
  background: #fff;
  color: #23334b;
  padding: 15px 20px 13px 20px;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #E5ECF4;
  font-size: 0.98rem;
}

/***** Sections & Utilities *****/
.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
}
.text-section p {
  display: flex; align-items: center; gap: 10px;
}
.text-section img {
  width: 20px; height: 20px;
}

/***** Footer *****/
footer {
  background: #24334B;
  color: #fff;
  padding: 42px 0 15px 0;
  margin-top: 80px;
  border-top: 5px solid #6CC2E6;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 15px;
}
.footer-nav a {
  color: #CEE7F3;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0.92;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #6CC2E6;
}
.footer-contact {
  text-align: center;
  color: #A7B8CF;
  font-size: 0.95rem;
}

/* ===== Cookie Consent Banner & Modal ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #24334B;
  color: #fff;
  padding: 22px 36px;
  z-index: 2000;
  gap: 20px;
  box-shadow: 0 -2px 16px rgba(36,51,75,0.07);
  border-radius: 12px 12px 0 0;
  animation: fadeInCookie 0.8s;
  flex-wrap: wrap;
}
.cookie-banner p {
  font-size: 1rem;
  margin: 0;
  color: #E5ECF4;
}
.cookie-buttons {
  display: flex; gap: 16px;
}
.cookie-banner .btn-cookie {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  color: #24334B;
  transition: background 0.16s, color 0.16s;
  margin-left: 0;
  border: 1px solid #6CC2E6;
  min-width: 112px;
}
.cookie-banner .btn-cookie:hover, .cookie-banner .btn-cookie:focus {
  background: #6CC2E6;
  color: #fff;
}
.btn-cookie-settings {
  background: #6CC2E6 !important;
  color: #24334B !important;
  border: none !important;
}
.btn-cookie-settings:hover, .btn-cookie-settings:focus {
  background: #395982 !important;
  color: #fff !important;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 12px;
    gap: 14px;
  }
}
@keyframes fadeInCookie {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: none; }
}
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(36,51,75,0.65);
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.22s;
}
@keyframes cookieModalFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #24334B;
  border-radius: 14px;
  box-shadow: 0 4px 30px rgba(36,51,75,0.19);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 97vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalSlideIn 0.18s;
}
@keyframes cookieModalSlideIn {
  0% { transform: translateY(32px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 7px;
  color: #24334B;
}
.cookie-modal-close {
  background: #6CC2E6;
  color: #fff;
  font-size: 1.7rem;
  width: 38px; height: 38px;
  border-radius: 7px;
  display: flex; justify-content: center; align-items: center;
  cursor: pointer;
  transition: background 0.16s;
  border: none;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #24334B;
  color: #fff;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}
.cookie-category input[type="checkbox"] {
  width: 22px; height: 22px;
  accent-color: #6CC2E6;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  cursor: pointer;
}
.cookie-category.disabled label {
  font-weight: 500;
  color: #395982;
  opacity: 0.78;
}
.cookie-actions {
  margin-top: 20px;
  display: flex; gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .btn-primary, .cookie-modal .btn-secondary {
  min-width: 120px;
  padding: 11px 22px;
  font-size: 1rem;
}

/* ========== Animations & Micro-interactions ========== */
section, .card, .feature-grid > div, .testimonial-card, .blog-post {
  transition: box-shadow 0.17s, transform 0.11s;
}
section:hover, .card:hover, .testimonial-card:hover, .blog-post:hover {
  /* Subtle lift effect on hover for cards/sections */
  /* Avoids stacking effect for main section; only for cards */
}
a, button { outline: none; transition: color 0.13s, background 0.11s, box-shadow 0.13s, transform 0.09s; }

/* ========== Responsive Layouts & Typography ========== */
@media (max-width: 700px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  h1 { font-size: 1.25rem; margin-bottom: 12px; }
  h2 { font-size: 1.07rem; }
  h3 { font-size: 1rem; }
  .footer-nav { flex-direction: column; gap: 14px; }
}
@media (max-width: 540px) {
  .cookie-modal-content {
    min-width: unset;
    padding: 22px 6px 14px 6px;
  }
}
/***** Utilities *****/
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-20 { gap: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Prevent overlapping by enforcing spacing */
.card, .testimonial-card, .feature-grid > div, .service-card-grid > div, .blog-post { margin-bottom: 20px; }
section + section { margin-top: 44px !important; }

/* ====== Accessibility Focus ====== */
a:focus, button:focus {
  outline: 2px solid #6CC2E6;
  outline-offset: 2px;
}

/* ====== Misc (lists, categories, benefits) ====== */
.categories ul, .benefits-list, .category-list, .popular-guides ul {
  padding-left: 0;
  gap: 8px;
}
.categories ul li, .benefits-list li, .category-list li, .popular-guides ul li {
  padding-left: 16px;
  position: relative;
}
.categories ul li:before, .benefits-list li:before, .category-list li:before, .popular-guides ul li:before {
  content: '\2022';
  color: #6CC2E6;
  position: absolute;
  left: 0; font-size: 1.1rem;
}


/* ===== Industry Accent ===== */
.guarantees, .industries, .certifications {
  background: #F5F8FC;
  padding: 18px 16px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(36,51,75,0.10);
  margin-bottom: 15px;
}
.guarantees strong { font-weight: 700; color: #395982; }

/***** Map Embed Block Styling (Contact Page) *****/
.map-embed { margin-top: 16px; background: #F5F8FC; padding: 16px 11px; border-radius: 7px; font-size: 0.99rem; color: #23334b; }

/***** Newsletter Signup (Blog) *****/
.newsletter-signup {
  background: #6CC2E6;
  color: #24334B;
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 2px 8px rgba(36,51,75,0.09);
  margin-bottom: 24px;
}

/***** Hide/nonhide classes for JS interactivity *****/
.hide { display: none !important; }

/* End Fiber Haven Corporate CSS */
