/* ==== CSS RESET & BASE ==== */
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, 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, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #23282f;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

/* ==== BRAND VARIABLES ==== */
:root {
  --color-primary: #384C63;
  --color-secondary: #F9FAFB;
  --color-accent: #F7B801;
  --color-bg: #23282f;
  --color-bg-alt: #303642;
  --color-metal: #8893a3;
  --color-dark-gray: #23282f;
  --color-text: #E6ECF1;
  --color-light: #F9FAFB;
  --color-error: #C0392B;
  --color-shadow: rgba(25,31,38,0.34);
  --transition: 0.23s cubic-bezier(.77,.17,.18,1.01);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-md: 0 5px 18px var(--color-shadow);
  --shadow-sm: 0 2px 5px rgba(56,76,99, 0.09);
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
}

/* ==== BASE TYPESCALE ==== */
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-bg);
}
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.16;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: 12px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.01em;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-light);
}
p, li, blockquote, ol {
  font-size: 1rem;
  color: var(--color-text);
}
strong {
  color: var(--color-accent);
  font-weight: 700;
}

/* ==== CONTAINER UTILITIES ==== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* ==== HEADER ==== */
header {
  background: var(--color-bg-alt);
  box-shadow: 0 2px 16px rgba(35,40,47,0.25);
  z-index: 100;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
header a img {
  height: 48px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--color-light);
  letter-spacing: 0.02em;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
}
.cta-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  background: var(--color-accent);
  color: var(--color-bg);
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  padding: 11px 36px;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  margin-left: 18px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  border: 2px solid var(--color-accent);
  position: relative;
}
.cta-btn:hover,
.cta-btn:focus {
  background: transparent;
  color: var(--color-accent);
  box-shadow: 0 8px 28px var(--color-shadow);
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-accent);
  cursor: pointer;
  margin-left: 14px;
  z-index: 202;
  border-radius: 50%;
  width: 1.64em;
  height: 1.64em;
  transition: background var(--transition);
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--color-primary);
}

/* ==== MOBILE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.37s cubic-bezier(.79,.04,.32,1.15), opacity var(--transition);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 28px 0 0;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--color-accent);
  padding: 0.1em 0.25em;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition);
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  margin-top: 38px;
  padding: 0 38px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-accent);
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  transition: color var(--transition), border var(--transition);
  border-radius: 0;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-light);
  border-bottom: 2px solid var(--color-accent);
  background: none;
}

/* ==== HERO SECTION ==== */
.hero-section {
  background: linear-gradient(110deg, var(--color-primary) 60%, var(--color-bg) 100%);
  color: var(--color-light);
  padding: 80px 0 60px 0;
  box-shadow: var(--shadow-md);
}
.hero-section .container {
  align-items: flex-start;
  justify-content: center;
  min-height: 320px;
}
.hero-section h1 {
  color: var(--color-accent);
  margin-bottom: 18px;
  font-size: 2.4rem;
}
.hero-section p {
  font-size: 1.18rem;
  color: var(--color-light);
  margin-bottom: 20px;
}
.hero-section .cta-btn {
  margin-top: 14px;
}

/* ==== CTA BANNER ==== */
.cta-banner {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius);
  margin: 44px 0;
  box-shadow: var(--shadow-md);
}
.cta-banner .content-wrapper h2,
.cta-banner .content-wrapper p {
  color: var(--color-primary);
}
.cta-banner .cta-btn {
  background: var(--color-primary);
  color: var(--color-light);
  border: 2px solid var(--color-primary);
}
.cta-banner .cta-btn:hover,
.cta-banner .cta-btn:focus {
  background: var(--color-light);
  color: var(--color-primary);
}

/* ==== SECTIONS ==== */
section {
  width: 100%;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ==== FLEX LAYOUTS ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ==== FEATURE GRID ==== */
.feature-grid,
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin: 32px 0 12px 0;
}
.feature-item,
.service-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-dark-gray);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 26px 20px 20px 20px;
  min-width: 220px;
  flex: 1 1 280px;
  max-width: 340px;
  border: 1.5px solid var(--color-metal);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.feature-item:hover,
.service-item:hover {
  box-shadow: 0 10px 36px var(--color-shadow);
  transform: translateY(-4px) scale(1.03);
  border-color: var(--color-accent);
}
.feature-item img,
.service-item img {
  width: 32px;
  height: 32px;
  filter: grayscale(20%) brightness(1.05) drop-shadow(0 1px 1px #2c343e);
}
.feature-item h3,
.service-item h3 {
  color: var(--color-accent);
  font-size: 1.1rem;
}

/* ==== USP LIST ==== */
.usp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-left: 16px;
}
.usp-list li::before {
  content: "⦾ ";
  color: var(--color-accent);
  font-size: 1rem;
}

/* ==== FAQ LIST ==== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-item {
  background: var(--color-dark-gray);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  border-left: 4px solid var(--color-accent);
}
.faq-item h3 {
  font-size: 1.15em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

/* ==== PRICING TABLE ==== */
.pricing-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  margin: 24px 0;
}
.pricing-table th,
.pricing-table td {
  padding: 12px 16px;
  text-align: left;
}
.pricing-table th {
  background: var(--color-primary);
  color: var(--color-light);
  font-family: var(--font-display);
  font-weight: bold;
  letter-spacing: 0.03em;
  font-size: 1.08rem;
}
.pricing-table td {
  border-bottom: 1px solid var(--color-metal);
  color: var(--color-text);
  font-size: 1rem;
  background: var(--color-bg-alt);
}
.pricing-table tr:nth-child(even) td {
  background: var(--color-dark-gray);
}
.pricing-table tr:hover td {
  background: var(--color-metal);
  color: var(--color-bg);
  transition: background var(--transition), color var(--transition);
}
.pricing-notes {
  color: var(--color-accent);
  font-style: italic;
  margin-top: 10px;
}

/* ==== TESTIMONIAL CARDS ==== */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 16px;
}
.testimonial-card {
  background: var(--color-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 500px;
  position: relative;
  border: 1.5px solid var(--color-primary);
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  font-size: 1.09rem;
  color: var(--color-primary);
  margin: 0;
}
.testimonial-card footer {
  display: block;
  color: var(--color-metal);
  font-size: 0.94rem;
  margin-top: 10px;
}
.testimonial-rating {
  display: flex;
  gap: 2px;
  align-items: center;
}
.testimonial-rating img {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 0 var(--color-accent));
}
.overall-rating {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-light);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.overall-rating img {
  width: 21px;
  height: 21px;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.project-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  flex: 1 1 300px;
  min-width: 220px;
  border-left: 4px solid var(--color-accent);
  color: var(--color-text);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==== FOOTER ==== */
footer {
  background: var(--color-bg-alt);
  color: var(--color-light);
  padding: 36px 0 28px 0;
  box-shadow: 0 -3px 18px rgba(25,31,38,0.08);
  position: relative;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-col {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 200px;
  max-width: 360px;
}
.footer-col img {
  width: 42px;
  margin-bottom: 8px;
}
.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col nav a {
  color: var(--color-metal);
  font-size: 1rem;
  transition: color var(--transition);
}
.footer-col nav a:hover,
.footer-col nav a:focus {
  color: var(--color-accent);
}
.footer-col.contact-info {
  font-size: 1rem;
  gap: 10px;
}
.footer-col.contact-info img {
  height: 18px;
  width: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ==== CONTACT PAGE ==== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 22px;
}
.contact-info p {
  line-height: 1.6;
  font-size: 1.03em;
}
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
  margin-top: 6px;
}
.map-static {
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-metal);
  box-shadow: var(--shadow-md);
  width: 100%;
}
.map-static img {
  width: 100%;
  display: block;
}

/* ==== TYPOGRAPHIC SECTIONS ==== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 10px;
  color: var(--color-text);
}
.text-section ul, .text-section ol {
  margin-left: 24px;
  margin-bottom: 6px;
}
.text-section li {
  margin-bottom: 3px;
  position: relative;
}
.text-section ul li::before {
  content: "– ";
  color: var(--color-accent);
}
.text-section a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ==== BUTTONS & INTERACTIONS ==== */
button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close {
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
button:focus, .cta-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-bg-alt);
  color: var(--color-light);
  box-shadow: 0 -3px 18px var(--color-shadow);
  z-index: 9999;
  padding: 24px 18px 24px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition), transform var(--transition);
}
.cookie-consent-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-consent-banner__message {
  flex: 2 1 320px;
  margin-right: 12px;
  color: var(--color-light);
}
.cookie-consent-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  transition: background var(--transition), color var(--transition), border var(--transition);
  border: 2px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.cookie-btn:hover, .cookie-btn:focus {
  box-shadow: 0 4px 12px var(--color-shadow);
  transform: scale(1.04);
  background: var(--color-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 99999;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(30, 36, 45, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity var(--transition);
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--color-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 420px;
  padding: 34px 32px 28px 32px;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 23px;
  animation: fadeInModal 0.27s cubic-bezier(.47,1.3,.63,1.21);
  position: relative;
}
@keyframes fadeInModal {
  0% { opacity: 0; transform: translateY(60px) scale(0.92); }
  100% { opacity: 1; transform: none; }
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-preferences-list {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-preferences-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.08rem;
  color: var(--color-primary);
}
.cookie-preferences-category input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 23px;
  height: 23px;
}
.cookie-preferences-category[data-essential] label {
  color: var(--color-primary);
  font-weight: 600;
  opacity: 0.7;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 15px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
  cursor: pointer;
  z-index: 1;
  border-radius: 50%;
  transition: background var(--transition);
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 16px;
}

/* ==== RESPONSIVE DESIGN (MOBILE FIRST) ==== */
@media (max-width: 1080px) {
  .main-nav {
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
  }
  .footer-col {
    max-width: 100%;
    padding-bottom: 6px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .service-grid, .testimonial-list, .project-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html { font-size: 100%; }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 62px;
  }
  .feature-grid, .service-grid, .testimonial-list, .project-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item, .service-item {
    min-width: 0;
    max-width: 100%;
    padding: 20px 12px 16px 12px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 10px 16px 10px;
  }
  .overall-rating {
    font-size: 1.02rem;
    flex-wrap: wrap;
    gap: 6px;
  }
  .section {
    margin-bottom: 38px;
    padding: 28px 8px;
  }
  .hero-section {
    padding: 40px 0 32px 0;
  }
  .cta-banner {
    margin: 16px 0 22px 0;
    padding-left: 0; padding-right: 0;
  }
  .project-card, .card {
    min-width: 0;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 14px 8px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .footer-col {
    padding-bottom: 12px;
  }
}
@media (max-width:520px) {
  .hero-section h1 {
    font-size: 1.27rem;
  }
  h2, .h2 {
    font-size: 1.23rem;
  }
  .cookie-modal {
    max-width: 98vw;
    padding: 18px 3vw;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.97rem;
    padding: 14px 6px 14px 8px;
  }
  .cookie-consent-banner__message {
    margin: 0 0 7px 0;
  }
}

/* ==== ANIMATIONS & MICRO-INTERACTIONS ==== */
.cta-btn, .cookie-btn {
  transition: background 0.23s cubic-bezier(.62,.17,.48,1), color 0.27s cubic-bezier(.63,.22,.27,.98), box-shadow 0.21s cubic-bezier(.72,.32,.21,1);
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(0.97);
}
.feature-item, .service-item, .card, .project-card, .testimonial-card {
  transition: box-shadow 0.23s cubic-bezier(.36,1.12,.58,1), transform 0.17s cubic-bezier(.66,1.24,.76,1.02), border-color 0.23s cubic-bezier(.36,1.12,.58,1);
}

/* ==== SELECTION COLOR ==== */
::selection {
  background: var(--color-accent);
  color: var(--color-primary);
}
