/* ==== 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 {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: #FAFAFA;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2C3E50;
  font-size: 1rem;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #16A085;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #2C3E50;
  outline: none;
}
:focus {
  outline: none;
}

/* ==== BRAND FONTS (FALLBACK) ==== */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat Bold'), local('Montserrat-Bold');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Regular'), local('Roboto-Regular');
}

/* ==== CONTAINER ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ==== HEADER & NAVIGATION ==== */
header {
  background: #FFF;
  box-shadow: 0 2px 12px 0 rgba(44,62,80,0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 24px;
}
.logo img {
  height: 46px;
  width: auto;
  display: block;
  padding: 8px 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}
.main-nav a:not(.btn-primary):hover, .main-nav a:not(.btn-primary):focus {
  background: rgba(22,160,133,0.13);
  color: #2C3E50;
}

/* Burger button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #16A085;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(22,160,133,0.17);
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #FDFDFD;
  box-shadow: 0 8px 32px 0 rgba(44,62,80,0.16);
  z-index: 66;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.4, .8, .3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 24px 24px 24px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #16A085;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E3F6F3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: #2C3E50;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  padding: 14px 8px 14px 0;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E3F6F3;
  color: #16A085;
}

/* Show/hide nav for mobile */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ==== HERO SECTION ==== */
.hero {
  background: #F6F8F7;
  min-height: 340px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 60px 0 40px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}
.hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  line-height: 1.08;
  font-weight: 700;
  color: #2C3E50;
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.22rem;
  color: #2C3E50;
  margin-bottom: 24px;
}

@media (min-width: 700px) {
  .hero .container {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
}

/* ==== SECTION SPACING & FLEX PATTERNS ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  min-width: 240px;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(44,62,80,0.08);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 16px 0 rgba(44,62,80,0.15);
  transform: translateY(-2px);
}
.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;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.section:last-child {
  margin-bottom: 0;
}

/* ==== TYPOGRAPHY ==== */
h1, .h1 {
  font-size: 2.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2C3E50;
  margin-bottom: 18px;
}
h2, .h2 {
  font-size: 1.6rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #2C3E50;
  margin-bottom: 16px;
}
h3, .h3 {
  font-size: 1.17rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222;
  font-weight: 500;
  margin-bottom: 12px;
}
h4, .h4 {
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
}

p, li, dl, dd {
  font-size: 1rem;
  color: #2C3E50;
}
strong {
  font-weight: 700;
}

ul, ol, dl, dd, dt {
  margin-bottom: 14px;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0;
}

blockquote {
  border-left: 4px solid #16A085;
  background: #F3FBF8;
  padding: 14px 22px;
  font-style: italic;
  border-radius: 0 8px 8px 0;
  margin: 22px 0 22px 0;
  color: #373737;
}

/* ==== BUTTONS ==== */
.btn-primary, .btn-link {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 12px 32px;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  box-shadow: 0 2px 8px 0 rgba(44,62,80,0.05);
  margin: 14px 0 0 0;
  min-width: 160px;
  text-align: center;
}
.btn-primary {
  background: #16A085;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #13876C;
  color: #FFF;
  box-shadow: 0 2px 16px 0 rgba(22,160,133,0.13);
}
.btn-link {
  background: none;
  color: #16A085;
  text-decoration: underline;
  padding: 0;
  min-width: unset;
  box-shadow: none;
}
.btn-link:hover, .btn-link:focus {
  color: #2C3E50;
  background: rgba(22,160,133,0.07);
  text-decoration: underline;
}

/* ==== TABLE STYLES ==== */
.price-table {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(44,62,80,0.08);
  margin-bottom: 28px;
  overflow-x: auto;
  border-collapse: collapse;
  margin-top: 16px;
}
.price-table th, .price-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #F1F1F1;
  font-size: 1em;
}
.price-table th {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #16A085;
  background: #F9E79F;
  font-weight: 700;
}
.price-table tr:last-child td {
  border-bottom: none;
}

/* ==== TESTIMONIALS ==== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #FFF;
  margin-bottom: 24px;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(44,62,80,0.09);
  padding: 20px 26px;
  color: #222;
  transition: box-shadow 0.13s, transform 0.12s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(44,62,80,.15);
  transform: translateY(-2px);
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}
.testimonial-meta {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #16A085;
  font-size: 1em;
}

.testimonial-excerpt {
  background: #F6F8F7;
  border-left: 4px solid #16A085;
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #232323;
  margin-bottom: 16px;
}

/* ==== FOOTER ==== */
footer {
  background: #F6F8F7;
  border-top: 1px solid #E2E6E4;
  margin-top: 80px;
  padding: 48px 0 16px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
footer .logo img {
  height: 34px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #16A085;
  font-weight: 600;
  font-size: 1em;
  transition: color .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #2C3E50;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98em;
  color: #495057;
}
.footer-contact img {
  height: 1.3em;
  width: 1.3em;
  margin-right: 8px;
  vertical-align: middle;
}
.footer-copy {
  font-size: 0.95em;
  color: #839495;
  margin-top: 18px;
  font-family: 'Roboto', Arial, sans-serif;
  letter-spacing: .01em;
}

@media (min-width: 670px) {
  footer .container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }
  .footer-contact {
    max-width: 240px;
  }
}

/* ==== FORMS / CONTACT DETAILS ==== */
.contact-details, .inline-contact, .thank-you-message, .next-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.contact-details img, .inline-contact img {
  height: 1.15em;
  width: 1.15em;
  margin-right: 8px;
  vertical-align: middle;
}

/* ==== FEATURE GRID (HOME) ==== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 12px;
  margin-top: 12px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 1px 6px 0 rgba(44,62,80,0.06);
  padding: 20px 18px;
  transition: box-shadow 0.14s;
}
.feature-grid > div:hover {
  box-shadow: 0 2px 14px 0 rgba(22,160,133,0.12);
}
.feature-grid img {
  height: 32px;
  width: 32px;
  margin-bottom: 8px;
}

/* ==== TEAM LIST (ABOUT) ==== */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 18px;
}
.team-list > div {
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(44,62,80,0.07);
  padding: 20px 16px;
  flex: 1 1 180px;
}

/* ==== SERVICE CATEGORIES (SERVICES) ==== */
.service-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 24px;
}
.service-categories > div {
  flex: 1 1 220px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(44,62,80,0.07);
  padding: 20px 16px;
  transition: box-shadow 0.13s;
}
.service-categories > div strong {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 7px;
  font-size: 1.1em;
}
.service-categories > div img {
  height: 30px;
  width: 30px;
  margin-bottom: 8px;
}

/* ==== CASE STUDY & GALLERY CARDS (GALLERY) ==== */
.case-studies {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.case-studies > div {
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(44,62,80,.08);
  padding: 22px 18px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  transition: box-shadow 0.15s;
}
.case-studies > div:hover {
  box-shadow: 0 4px 18px rgba(22,160,133,.14);
}

/* ==== DL FAQ (PRICES) ==== */
dt {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 1.05em;
  color: #2C3E50;
}
dd {
  margin-bottom: 16px;
  margin-left: 0;
}

.assurance-note, .pricing-notes {
  font-size: 0.99em;
  padding: 12px 16px;
  background: #F3FBF8;
  border-left: 4px solid #16A085;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}

/* ==== MAP EMBED (CONTACT) ==== */
.map-embed {
  border-radius: 12px;
  overflow: hidden;
  margin-top: 18px;
  background: #f6f8f7;
}
.map-embed img {
  width: 100%;
  max-width: 300px;
  object-fit: cover;
  display: block;
}

/* ==== MODAL OVERLAYS ==== */
.modal-overlay {
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(44,62,80,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.21s;
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFF;
  box-shadow: 0 -2px 16px 0 rgba(44,62,80,0.18);
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 34px 22px 24px;
  font-size: 1em;
  border-top: 1px solid #F0F0F0;
  animation: banner-slide-in 0.35s cubic-bezier(.4, .8, .3, 1);
}
@keyframes banner-slide-in {
  from { transform: translateY(88px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #2C3E50;
  margin-right: 28px;
  flex: 3 1 260px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1em;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #16A085;
  color: #fff;
  margin-left: 0;
  margin-right: 0;
  transition: background .17s, box-shadow .13s, color .14s;
  box-shadow: 0 1px 6px 0 rgba(44,62,80,0.07);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #13876C;
  color: #fff;
}

.cookie-btn-reject {
  background: #EEE;
  color: #2C3E50;
  border: 1px solid #D1D3CB;
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #F9E79F;
  color: #2C3E50;
}
.cookie-btn-settings {
  background: #F9E79F;
  color: #2C3E50;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: #ffe392;
}

/* ---- COOKIE MODAL ---- */
.cookie-modal {
  background: #FFF;
  padding: 34px 30px 26px 30px;
  border-radius: 14px;
  box-shadow: 0 4px 44px 0 rgba(44,62,80,0.19);
  max-width: 400px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.22em;
  color: #2C3E50;
  margin-bottom: 10px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1em;
  color: #222;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #16A085;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 700px) {
  .section {
    margin-bottom: 40px;
    padding: 28px 6px;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 16px;
  }
  .case-studies, .feature-grid, .service-categories, .team-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px !important;
  }
  .testimonial-card, .card {
    padding: 18px 8px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 12px;
    gap: 12px 0;
  }
  .cookie-modal {
    padding: 18px 8px;
    max-width: 99vw;
  }
}

/* ==== ANIMATIONS / MICRO-INTERACTIONS ==== */
.btn-primary, .btn-link, .cookie-btn, .main-nav a, .mobile-nav a {
  transition: background 0.2s, color 0.17s, box-shadow 0.2s, outline 0.15s;
}
.card, .testimonial-card, .case-studies > div {
  transition: box-shadow 0.18s, transform 0.12s;
}
.card:hover, .testimonial-card:hover, .case-studies > div:hover {
  box-shadow: 0 6px 20px rgba(44,62,80,0.15);
  transform: translateY(-3px) scale(1.024);
}

/* ==== SCROLLBARS ==== */
::-webkit-scrollbar {
  width: 8px;
  background: #F6F8F7;
}
::-webkit-scrollbar-thumb {
  background: #E3F6F3;
  border-radius: 6px;
}

/* ==== MISC ==== */
::selection {
  background: #F9E79F;
  color: #2C3E50;
}

/* ==== ACCENT ELEMENTS ==== */
.accent-bg {
  background: #F9E79F;
}
.accent-text {
  color: #16A085;
}

/* ==== MODAL EXAMPLES (OVERRIDES) ==== */
@media (max-width: 440px) {
  .cookie-modal {
    min-width: 90vw;
    max-width: 96vw;
    padding: 7vw 2vw;
  }
}

/* ==== HIDE ELEMENTS GENERIC ==== */
.hidden { display: none !important; }

/* ==== A11Y ==== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
