/* =========================================
   CSS RESET & NORMALIZATION
========================================= */
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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background-color: #F4F4F8;
  color: #14213D;
}
ol, ul {
  list-style: none;
}
a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #4F9DA6;
  outline-offset: 2px;
}

/* =========================================
   VARIABLES & FONTS
========================================= */
:root {
  --color-primary: #0B2545;
  --color-secondary: #4F9DA6;
  --color-accent: #F4F4F8;
  --color-heading: #1f2833;
  --color-body: #28384D;
  --color-link: #0B2545;
  --color-link-hover: #4F9DA6;
  --color-card-bg: #ffffff;
  --color-card-shadow: rgba(44, 62, 80, 0.07);
  --color-border: #e0e5ec;
  --color-footer-bg: #192C3E;
  --color-footer-text: #F4F4F8;
  --color-focus: #4F9DA6;
  --color-cta: #0B2545;
  --color-cta-hover: #355C7D;
  --color-btn-shadow: rgba(11,37,69,0.12);
  --color-cookie-bg: #edeaed;
  --color-cookie-shadow: rgba(44,62,80,0.05);
  --font-display: 'Montserrat', 'Georgia', serif;
  --font-body: 'Roboto', 'Georgia', serif;
  --font-serif: 'Georgia', serif;
  --font-sans: 'Montserrat', Arial, Helvetica, sans-serif;
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* =========================================
   BASE TYPOGRAPHY
========================================= */
body {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--color-body);
  background-color: var(--color-accent);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.36rem; margin-bottom: 10px; font-weight: 500; }
h4, h5, h6 { font-size: 1rem; }

p, ul, ol, li, blockquote {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-body);
}
blockquote {
  font-style: italic;
  border-left: 3px solid var(--color-secondary);
  margin-left: 0;
  margin-bottom: 8px;
  padding-left: 16px;
  color: var(--color-heading);
}
.subheadline {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-bottom: 20px;
}
a {
  transition: color 0.2s;
  color: var(--color-link);
}
a:hover, a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

strong {
  font-weight: 700;
}

/* =========================================
   LAYOUT CONTAINERS & SPACING
========================================= */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.flex {
  display: flex;
}
.align-center {
  align-items: center;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

/* FLEXBOX SPACING, CARDS, AND GRIDS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  position: relative;
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 16px 0 var(--color-card-shadow);
  padding: 32px 28px;
  margin-bottom: 20px;
  min-width: 270px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 8px 24px 0 var(--color-card-shadow);
  border-color: var(--color-secondary);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #FFF;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 var(--color-card-shadow);
  max-width: 680px;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px 0 var(--color-card-shadow);
}
.testimonial-card.short {
  max-width: 380px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FEATURE & SERVICE GRIDS
---------------------- */
.feature-grid, .service-tabs, .team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  width: 100%;
  justify-content: flex-start;
}
.feature, .service-tab, .team-member {
  background: var(--color-card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 var(--color-card-shadow);
  border: 1px solid var(--color-border);
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 265px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.22s, border 0.2s;
  margin-bottom: 20px;
}
.feature:hover, .service-tab:hover, .team-member:hover {
  box-shadow: 0 8px 24px 0 var(--color-card-shadow);
  border-color: var(--color-secondary);
  transform: translateY(-5px) scale(1.01);
}
.feature img, .team-member img {
  width: 48px;
  margin-bottom: 20px;
}

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--color-card-shadow);
  margin-bottom: 12px;
  padding: 18px 20px;
  transition: box-shadow 0.19s;
}
.faq-item h3 {
  cursor: pointer;
  font-size: 1.1rem;
}
.faq-content {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--color-body);
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 36px;
  height: 64px;
}
.logo img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  flex: 1;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-link);
  padding: 8px 2px;
  border-radius: 3px;
  transition: color 0.17s, background 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  background: rgba(79, 157, 166, 0.11);
}
.cta.primary {
  background: var(--color-primary);
  color: #FFF !important;
  border-radius: 8px;
  font-weight: 700;
  padding: 10px 24px;
  box-shadow: 0 2px 8px 0 var(--color-btn-shadow);
  margin-left: 14px;
  transition: background 0.18s, box-shadow 0.16s, color 0.17s;
  border: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-secondary);
  color: var(--color-primary) !important;
  box-shadow: 0 4px 12px 0 var(--color-btn-shadow);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 6px;
  height: 46px;
  width: 46px;
  margin-left: 10px;
  transition: background 0.18s;
  z-index: 201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF;
  z-index: 200;
  transform: translateX(-100%);
  box-shadow: 0 4px 34px 0 rgba(10,20,40,0.10);
  transition: transform 0.35s cubic-bezier(0.36,0.66,0.04,1);
  display: flex;
  flex-direction: column;
  padding: 0 30px 24px 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  color: var(--color-primary);
  font-size: 2.1rem;
  margin: 21px 0 16px 0;
  border-radius: 5px;
  width: 46px;
  height: 46px;
  transition: background 0.18s, color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 18px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 600;
  padding: 12px 8px;
  border-radius: 6px;
  color: var(--color-link);
  transition: background 0.12s, color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  background: linear-gradient(99deg, #F4F4F8 80%, #dfe8f1 100%);
  padding: 50px 0 36px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.6rem;
}
.hero .subheadline {
  color: var(--color-secondary);
  font-size: 1.25rem;
}

/* =========================================
   SECTIONS, CTA & CARDS
========================================= */
.cta-section {
  background: var(--color-primary);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(11,37,69,0.10);
  margin-bottom: 40px;
  padding: 38px 0 34px 0;
}
.cta-section h2, .cta-section .cta.primary {
  color: #fff;
}
.cta-section .cta.primary {
  background: #fff;
  color: var(--color-primary) !important;
  border: none;
  box-shadow: 0 2px 6px 0 var(--color-card-shadow);
}
.cta-section .cta.primary:hover {
  background: var(--color-secondary);
  color: #fff !important;
  box-shadow: 0 4px 16px 0 var(--color-btn-shadow);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* =========================================
   TESTIMONIALS, RATINGS
========================================= */
.review-summary, .star-rating-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0 0;
  font-family: var(--font-body);
  font-size: 1.10rem;
  color: var(--color-primary);
}
.review-summary img, .star-rating-preview img {
  margin: 0 1px;
  width: 22px;
  height: 22px;
}
.review-summary span, .star-rating-preview span {
  font-weight: 500;
  margin-left: 14px;
  color: var(--color-primary);
}

/* =========================================
   LEGAL SECTIONS
========================================= */
.legal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(44,62,80,0.05);
  padding: 48px 0 60px 0;
  margin-bottom: 48px;
}
.legal h1 {
  font-size: 2.2rem;
}
.legal ul {
  list-style-type: disc;
  padding-left: 28px;
  margin-bottom: 18px;
}
.legal li {
  padding-bottom: 6px;
}
.legal a {
  color: var(--color-link);
  text-decoration: underline;
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 38px 0 22px 0;
  margin-top: 30px;
  border-radius: 18px 18px 0 0;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.branding img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}
.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-footer-text);
}
.footer-links a {
  color: var(--color-footer-text);
  opacity: 0.90;
  transition: opacity 0.15s, color 0.17s;
  text-decoration: underline;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--color-secondary);
  opacity: 1;
}
.footer-contact a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color 0.17s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #fff;
}

/* =========================================
   CONTACT PAGE
========================================= */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
}
.contact-details img {
  width: 22px;
  height: 22px;
}

/* =========================================
   PROJECT/GALLERY CARDS
========================================= */
.project-summary {
  background: var(--color-card-bg);
  border-radius: 10px;
  border: 1px solid var(--color-border);
  padding: 22px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px 0 var(--color-card-shadow);
  transition: box-shadow 0.18s, border 0.14s;
}
.project-summary:hover {
  box-shadow: 0 8px 24px 0 var(--color-card-shadow);
  border-color: var(--color-secondary);
}

/* =========================================
   THANK-YOU PAGE
========================================= */
.thank-you {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(79,157,166,0.10);
  padding: 48px 0 60px 0;
  margin-bottom: 52px;
}

.next-steps {
  background: var(--color-accent);
  border-radius: 10px;
  padding: 24px 20px;
  margin-bottom: 20px;
}

/* =========================================
   COOKIE CONSENT BANNER & MODAL
========================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-cookie-bg);
  color: var(--color-primary);
  box-shadow: 0 -2px 30px var(--color-cookie-shadow);
  padding: 26px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 810;
  gap: 10px;
  animation: cookie-fadein 0.7s cubic-bezier(0.2,0.8,0.4,1);
}
@keyframes cookie-fadein {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 13px;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: center;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 22px;
  border: none;
  border-radius: 7px;
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 1px 5px var(--color-card-shadow);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
}
.cookie-btn.settings {
  background: #E1ECF4;
  color: var(--color-primary);
}
.cookie-btn.accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.reject {
  background: #b1b9c2;
  color: var(--color-primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-cta-hover);
  color: #fff;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 1001;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(15,25,35,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-fadein 0.35s;
}
.cookie-modal {
  background: #fff;
  color: var(--color-body);
  border-radius: 16px;
  box-shadow: 0 4px 38px 0 rgba(10,30,42,0.14);
  padding: 32px 24px 22px 24px;
  min-width: 330px;
  max-width: 95vw;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: cookie-modal-pop 0.20s;
}
@keyframes cookie-modal-pop {
  0% { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: var(--font-body);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 22px;
  height: 22px;
  margin-right: 8px;
}
.cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* Essential cookies always enabled */
.cookie-category.essential label {
  font-weight: bold;
  color: var(--color-primary);
}
.cookie-category.essential input[type="checkbox"] {
  display: none;
}

/* =========================================
   TRANSITIONS & MICRO-INTERACTIONS
========================================= */
.card, .feature, .service-tab, .team-member, .faq-item, .testimonial-card {
  transition: box-shadow 0.21s, border 0.14s, transform 0.14s;
}
.cta, .btn, .cookie-btn {
  transition: background 0.19s, color 0.17s, box-shadow 0.15s, border 0.11s;
}
input[type="text"], input[type="email"], textarea {
  border-radius: 7px;
  border: 1px solid var(--color-border);
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 14px;
  background: #fff;
  color: var(--color-body);
  transition: border 0.19s, box-shadow 0.14s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid var(--color-secondary);
  box-shadow: 0 0 2px 0 var(--color-secondary);
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE FIRST)
========================================= */
@media (max-width: 1040px) {
  .feature-grid, .service-tabs, .team-profiles, .footer-nav {
    flex-wrap: wrap;
    gap: 22px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .container { padding: 0 10px; }
  .feature-grid, .service-tabs, .team-profiles {
    gap: 14px;
  }
  .hero {
    padding: 38px 0 24px 0;
    margin-bottom: 22px;
  }
  .cta-section {
    margin-bottom: 18px;
    padding: 22px 0 18px 0;
  }
}
@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.27rem; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .feature-grid, .service-tabs, .team-profiles, .footer-nav {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .feature, .service-tab, .team-member {
    max-width: 100%;
    min-width: 0;
  }
  .hero .container, .cta-section .container {
    flex-direction: column;
    padding: 0 4px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .section {
    margin-bottom: 32px;
    padding: 28px 6px;
  }
  .testimonial-card, .project-summary, .card {
    padding: 16px 10px;
  }
  .next-steps {
    padding: 12px 6px;
  }
  .cookie-modal {
    min-width: unset;
    padding: 22px 8px 10px 8px;
  }
}
@media (max-width: 460px) {
  .hero, .section, .thank-you, .legal {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .container { padding: 0 2vw; }
}

/* =========================================
   PRINT STYLES
========================================= */
@media print {
  header, .main-nav, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, .cta-section, footer {
    display: none !important;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
  body {
    background: #fff;
    color: #000;
  }
}
