/* ===== CSS RESET & BASE STYLES ===== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #222;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --color-primary: #003366;
  --color-secondary: #e6e6e6;
  --color-accent: #FFB100;
  --color-white: #fff;
  --color-black: #111;
  --color-grey: #b4bac0;
  --radius-main: 16px;
  --radius-small: 8px;
  --shadow-card: 0 2px 12px rgba(0,24,51,0.06), 0 1.5px 3px rgba(0,24,51,0.04);
  --shadow-strong: 0 4px 24px rgba(0,24,51,0.12);
  --font-display: 'Montserrat', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover, a:focus {
  color: var(--color-accent);
  outline: none;
}
ul, ol {
  margin-left: 2em;
  margin-bottom: 1em;
}
li {
  margin-bottom: 0.5em;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25em;
}
th, td {
  padding: 0.75em 1em;
  border-bottom: 1px solid #dadada;
  text-align: left;
}
th {
  background: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1.1em;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5em;
  line-height: 1.1;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  margin-bottom: 0.6em;
  line-height: 1.15;
  text-transform: uppercase;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4em;
  line-height: 1.2;
  text-transform: uppercase;
}
.subheadline {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
p {
  margin-bottom: 0.9em;
  font-size: 1.05rem;
}
strong, b {
  font-weight: 600;
  color: var(--color-primary);
}

/* ===== CONTAINER & LAYOUT UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 2.5px solid var(--color-secondary);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  padding: 20px 28px;
  margin-bottom: 24px;
  min-height: 108px;
  transition: box-shadow 0.27s cubic-bezier(.38,0,.15,1), border-color 0.27s cubic-bezier(.4,0,.2,1);
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-strong);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-secondary);
  border-radius: var(--radius-small);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  min-width: 230px;
  max-width: 300px;
  width: 100%;
  border: 2px solid var(--color-secondary);
  transition: border-color 0.19s, box-shadow 0.19s;
}
.feature-item:hover,
.feature-item:focus-within {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-strong);
}

.feature-item img {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 30% 70% 64% 36% / 46% 38% 62% 54%; /* Adding a geometric abstract shape */
  padding: 8px;
}

/* ===== HEADER, NAV & MOBILE MENU ===== */
header {
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 1px 0.5px rgba(80,80,80,0.04);
  position: relative;
  z-index: 40;
}
.header-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 22px;
}
.header-flex nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.header-flex a img,
.footer-flex img {
  height: 44px;
  width: auto;
  display: block;
}
.header-flex a.cta-primary {
  margin-left: auto;
}

nav a {
  position: relative;
  padding: 2px 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-primary);
  border-radius: var(--radius-small);
  transition: color 0.18s,
    background 0.18s;
}
nav a:hover, nav a:focus {
  background: var(--color-accent);
  color: #222;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-black);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 100px;
  padding: 0.6em 2.1em;
  border: none;
  box-shadow: 0 3px 14px rgba(0,38,102, 0.10);
  transition: background 0.25s, color 0.25s, box-shadow 0.22s;
  cursor: pointer;
  margin-top: 15px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 6px 24px rgba(0,51,102,0.13);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 26px;
  top: 27px;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 8px;
  font-size: 2.1rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 3px solid var(--color-accent);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateX(100vw);
  transition: transform 0.42s cubic-bezier(.33,1,.68,1);
  z-index: 2012;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 34px;
  padding-left: 30px;
  gap: 34px;
  box-shadow: -5px 0 18px rgba(0,24,51,0.10);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.3rem;
  font-weight: 700;
  position: absolute;
  top: 20px; right: 28px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff200;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  margin-top: 26px;
}
.mobile-nav a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 1.18rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 10px 2px;
  border-radius: var(--radius-small);
  transition: background 0.17s;
  width: 90%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

@media (max-width: 1050px) {
  .header-flex nav, .header-flex a.cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1051px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 70px 0 54px 0;
  display: flex;
  align-items: center;
}
.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-section .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 4px;
}
.hero-section h1,
.hero-section .subheadline {
  color: var(--color-accent);
  text-shadow: 0px 2px 12px rgba(0,24,51,.12);
}
.hero-section .cta-primary {
  background: var(--color-white);
  color: var(--color-primary);
}
.hero-section .cta-primary:hover,
.hero-section .cta-primary:focus {
  background: var(--color-accent);
  color: var(--color-black);
}

/* ===== FEATURES SECTION ===== */
.features-section .feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 24px;
  margin-top: 20px;
}
.features-section h2 {
  text-align: left;
}

/* ===== SERVICE GRID ===== */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 16px;
}
.service-item {
  background: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-main);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 20px 24px 20px;
  min-width: 250px;
  max-width: 325px;
  width: 100%;
  gap: 13px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, border-color 0.19s;
}
.service-item:hover,
.service-item:focus-within {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-strong);
}
.service-item img {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  padding: 8px;
  border-radius: 19% 81% 30% 70% / 46% 54% 46% 54%;
}
.service-item h2 {
  font-size: 1.22rem;
  margin-bottom: 0.33em;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.service-item p {
  color: #21242B;
  margin-bottom: 0.3em;
}

/* ===== PRICING TABLE ===== */
.pricing-table {
  background: var(--color-secondary);
  border-radius: var(--radius-main);
  padding: 36px 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
  margin-top: 12px;
}
.pricing-table table {
  background: none;
  border-radius: var(--radius-small);
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  font-size: 1rem;
}
.pricing-table th {
  color: var(--color-primary);
  border-bottom: 2.5px solid var(--color-accent);
  font-weight: 700;
  letter-spacing: .045em;
  background: #dde5ef;
}
.pricing-table tr:nth-child(even) td {
  background: #f8fafd;
}
.info-note {
  color: var(--color-primary);
  font-style: italic;
  font-size: 1.01em;
  margin-top: 15px;
  background: var(--color-accent);
  padding: 5px 11px;
  border-radius: var(--radius-small);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
  margin-top: 37px;
}
.cta-section h2 {
  color: var(--color-accent);
  font-size: 2.1rem;
  margin-bottom: 1.1em;
}
.cta-section .cta-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cta-section .cta-primary:hover,
.cta-section .cta-primary:focus {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section h2 {
  margin-bottom: 1.5em;
  color: var(--color-primary);
}
.testimonial-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-size: 0.92em;
}
.testimonial-info .stars {
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: 0.1em;
}
.testimonial-card p {
  font-size: 1.17em;
  font-family: var(--font-body);
  color: var(--color-black);
  margin-bottom: 0.6em;
}

/* ===== TEXT-IMAGE AND BLOCKS ===== */
.text-section {
  background: var(--color-secondary);
  border-radius: var(--radius-small);
  padding: 36px 24px 30px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}
.text-section h1, .text-section h2 {
  color: var(--color-primary);
}

.contact-info-block {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-main);
  padding: 26px 26px 19px 26px;
  margin-bottom: 20px;
}
.contact-info-block a {
  color: var(--color-accent);
  font-weight: 600;
}
.contact-info-block a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 50px 0 36px 0;
  margin-top: 60px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-flex > div, .footer-flex nav {
  flex: 1 1 190px;
  min-width: 170px;
}
.footer-flex img {
  height: 46px;
  margin-bottom: 22px;
}
.footer-contact {
  font-size: 1em;
  line-height: 1.4;
}
.footer-contact a {
  color: var(--color-accent);
  font-weight: 500;
}
.footer-contact a img {
  height: 18px;
  width: 18px;
  vertical-align: middle;
  margin-right: 4px;
}
footer nav {
  margin-bottom: 10px;
}
footer nav a {
  color: var(--color-white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1em;
  padding: 3px 7px;
  letter-spacing: 0.045em;
  transition: color 0.16s, text-decoration 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ===== COOKIE CONSENT BANNER ===== */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  color: var(--color-white);
  z-index: 9000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 38px;
  box-shadow: 0px -2px 22px rgba(0,24,51,0.16);
  min-height: 84px;
  gap: 30px;
  transition: transform 0.33s cubic-bezier(.37,1.01,.68,1);
}
#cookie-banner.hide {
  transform: translateY(130%);
}
#cookie-banner .cookie-text {
  font-size: 1.06rem;
  max-width: 460px;
}
#cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
}
#cookie-banner button {
  padding: 0.6em 1.7em;
  border-radius: var(--radius-small);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.16s;
}
#cookie-banner .accept {
  background: var(--color-accent);
  color: var(--color-black);
}
#cookie-banner .accept:hover, #cookie-banner .accept:focus {
  background: #FFD240;
}
#cookie-banner .reject {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
#cookie-banner .reject:hover, #cookie-banner .reject:focus {
  background: var(--color-accent);
  color: var(--color-black);
}
#cookie-banner .settings {
  background: none;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
#cookie-banner .settings:hover, #cookie-banner .settings:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ===== COOKIE PREFERENCES MODAL ===== */
#cookie-modal {
  display: none;
  position: fixed;
  z-index: 10100;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,24,51,0.56);
  align-items: center;
  justify-content: center;
}
#cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-strong);
  padding: 45px 32px 32px 32px;
  max-width: 430px;
  width: 95%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal-content h3 {
  font-size: 1.38rem;
  color: var(--color-accent);
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--color-secondary);
  padding: 10px 0;
  font-size: 1.09em;
}
.cookie-category:last-child {
  border-bottom: none;
}
.category-toggle {
  accent-color: var(--color-primary);
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.cookie-modal-content .close-modal {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-content .close-modal:hover, .cookie-modal-content .close-modal:focus {
  color: var(--color-accent);
}

/* ===== FORMS, BUTTONS ===== */
input, select, textarea, button {
  font-family: var(--font-body);
  font-size: 1rem;
}
button {
  cursor: pointer;
  border: none;
  border-radius: var(--radius-small);
  transition: background 0.16s, color 0.16s, box-shadow 0.2s;
}
button:focus {
  outline: 2px solid var(--color-accent);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
  .header-flex, .footer-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .container {
    padding: 0 12px;
  }
  .hero-section .container,
  .cta-section .container {
    padding: 0 7px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  h1 { font-size: 2.0rem; }
  h2 { font-size: 1.35rem; }
  .section {
    margin-bottom: 36px;
    padding: 28px 6px;
  }
  .footer-flex {
    flex-direction: column;
    gap: 18px;
    padding-top: 0;
  }
  .service-grid,
  .features-section .feature-grid,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item,
  .service-item,
  .testimonial-card,
  .pricing-table {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    padding: 17px 11px;
    gap: 10px;
    min-height: 44px;
  }
  .cta-section {
    border-radius: 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .mobile-menu {
    padding-left: 15px;
    gap: 14px;
  }
  #cookie-banner {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 18px 14px;
    gap: 14px;
    min-height: unset;
  }
}

/* ===== GEOMETRIC SHAPES/BORDERS ===== */
.hero-section, .cta-section {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 75% 100%, 0 99%);
}
@media (max-width: 768px) {
  .hero-section, .cta-section {
    clip-path: none;
    border-radius: 0;
  }
}
.feature-item, .service-item, .testimonial-card, .pricing-table, .text-section {
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-card);
}

/* ===== MICRO-INTERACTIONS & ANIMATIONS ===== */
.cta-primary, .feature-item, .service-item, .testimonial-card, .pricing-table, .contact-info-block {
  transition: box-shadow 0.23s cubic-bezier(.4,0,.2,1), border-color 0.21s cubic-bezier(.4,0,.2,1), background 0.18s;
}
.cta-primary:active, .feature-item:active, .service-item:active, .testimonial-card:active {
  box-shadow: 0 0 0 rgba(0,24,51,0.00);
}

/* ===== VISUAL HIERARCHY SPACING ===== */
.section > .container > .content-wrapper > h2,
.section > .container > .content-wrapper > h1 {
  margin-bottom: 16px;
}
.section > .container > .content-wrapper > ul,
.section > .container > .content-wrapper > p {
  margin-bottom: 14px;
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== CLASSES FROM HTML STRUCTURE ===== */
/* Ensuring all class selectors match HTML exactly */

/*.section, .card-container, .card, .content-grid, .text-image-section, .testimonial-card, .feature-item
=> covered above*/

/**** SYNTHETIC EXTRAS FOR DEMO: If needed by JS, you might want to add below (but these are not strictly visible) ****/

.hide { display: none !important; }

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