/* === 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,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;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  min-height: 100vh;
  background: #f6f8fb;
  color: #1B222C;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

/* === Font Imports === */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Roboto:wght@400;500;700&display=swap');

/* === Brand Variables (fallbacks for older browsers) === */
:root {
  --color-primary: #1B222C;
  --color-secondary: #0FA3B1;
  --color-accent: #f6f8fb;
  --color-gold: #C7A046;
  --color-gold-hover: #B8973E;
  --color-dark: #11151C;
  --color-body-bg: #f6f8fb;
  --color-white: #fff;

  --font-display: 'Orbitron', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* === General Layout Structure === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

header {
  background: var(--color-primary);
  color: var(--color-gold);
  width: 100%;
  padding: 0;
  z-index: 50;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.logo img {
  height: 42px;
  width: auto;
  vertical-align: middle;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.11));
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-gold);
  text-decoration: none;
  padding: 10px 4px;
  transition: color .16s;
  border-bottom: 2px solid transparent;
}
nav a:hover {
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
}

/* === CTA BUTTON === */
.cta-button {
  font-family: var(--font-display);
  background: var(--color-gold);
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 36px;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: background .18s, color .18s, box-shadow .2s, transform .22s cubic-bezier(0.2,0.7,0.5,1);
  display: inline-block;
  margin-left: 16px;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-gold-hover);
  color: var(--color-secondary);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 4px 24px rgba(0,0,0,.14);
}

/* === SECTION SPACING & LAYOUTS (MANDATORY) === */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 2px 18px 0 rgba(28,28,42,0.07);
  padding: 32px 24px;
  transition: box-shadow .22s, transform .22s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(28,28,42,0.16);
  transform: translateY(-3px) 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;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #232527;
  padding: 28px 32px;
  border-radius: 18px;
  box-shadow: 0 3px 18px 0 rgba(0,0,0,.10);
  margin-bottom: 20px;
  min-width: 260px;
  border-left: 5px solid var(--color-gold);
  font-size: 18px;
  transition: box-shadow .2s;
}
.testimonial-card strong {
  color: var(--color-primary);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(28,28,42,0.11);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === HERO AREA === */
main > section:first-of-type {
  background: #fff;
  padding-top: 64px;
  padding-bottom: 64px;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 24px 32px -12px rgba(27,34,44,.07);
  margin-bottom: 56px;
}
main > section:first-of-type h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.subheadline {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-secondary);
  margin-bottom: 32px;
}

/* === FEATURE/Service GRID === */
.feature-grid,
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid li,
.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  min-width: 260px;
  box-shadow: 0 2px 16px 0 rgba(50,50,64,.07);
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  border: 1.5px solid rgba(27,34,44,0.07);
  transition: box-shadow .18s, border-color .16s;
}
.feature-grid li:hover,.service-card:hover {
  box-shadow: 0 8px 32px 0 rgba(40,40,64,0.14);
  border-color: var(--color-gold);
  z-index: 2;
}
.feature-grid img,
.service-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 1px 6px rgba(200,180,90,.11));
}
.feature-grid h3,
.service-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.feature-grid p,
.service-card p {
  font-size: 16px;
  color: var(--color-primary);
}
.service-card strong {
  color: var(--color-gold);
  font-weight: 700;
}

/* === ABOUT + BLOG (Content-Heavy) === */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.text-section h2, .text-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.text-section p, .text-section ul, .text-section li {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 0;
  letter-spacing: 0.01em;
}
.text-section ul {
  margin-left: 24px;
  margin-bottom: 0;
  list-style: disc inside;
  gap: 8px;
  display: flex;
  flex-direction: column;
}
.text-section li {
  margin-left: 8px;
  margin-bottom: 6px;
}

/* === BLOG LIST + FILTER === */
.featured-posts {
  display: flex;
  flex-direction: row;
  gap: 24px;
  margin-top: 32px;
}
.featured-posts article {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(32,36,48,0.09);
  padding: 24px 22px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.featured-posts h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-secondary);
}
.featured-posts .read-more {
  font-family: var(--font-body);
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
  font-size: 15px;
  transition: color .15s;
}
.featured-posts .read-more:hover {
  color: var(--color-gold);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.blog-filters {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.blog-filters label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
}
.blog-filters select,
.blog-filters input[type="search"] {
  padding: 8px 14px;
  border: 1px solid #d7dce1;
  border-radius: 14px;
  background: #fff;
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
  transition: border .14s;
}
.blog-filters select:focus,
.blog-filters input[type="search"]:focus {
  border-color: var(--color-secondary);
}
.blog-preview {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1px 10px 0 rgba(32,36,48,0.07);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-preview h3 {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}
.blog-preview p {
  font-size: 15px;
}
.blog-preview a {
  color: var(--color-secondary);
  font-weight: 500;
  font-size: 15px;
  text-decoration: underline;
  margin-top: 4px;
  transition: color .14s;
}
.blog-preview a:hover {
  color: var(--color-gold);
}

/* === Footer === */
footer {
  background: var(--color-primary);
  color: var(--color-gold);
  font-family: var(--font-body);
  margin-top: 60px;
  padding: 0 0 0 0;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 20px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 120px;
  margin-right: 30px;
}
.footer-logo img {
  height: 40px;
  width: auto;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-right: 32px;
}
footer nav a {
  color: var(--color-gold);
  font-size: 15px;
  text-decoration: none;
  transition: color .15s;
  padding: 2px 0;
}
footer nav a:hover {
  color: var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--color-gold);
}
.footer-contact a {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* === Responsive (Mobile First) === */
@media (max-width: 1050px) {
  .container {
    max-width: 95vw;
    padding: 0 8px;
  }
  footer .container {
    padding: 28px 8px 16px 8px;
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
  }
  .feature-grid,
  .service-cards,
  .featured-posts {
    flex-direction: column;
    gap: 20px;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .footer-logo,footer nav,.footer-contact {
    margin-right: 0;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 12px;
  }
  nav {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 18px;
    top: 18px;
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 34px;
    z-index: 110;
    cursor: pointer;
    transition: color .15s;
    padding: 4px;
  }
  .mobile-menu-toggle:focus {
    outline: 2px solid var(--color-secondary);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    z-index: 120;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(27,34,44,0.99);
    color: var(--color-gold);
    transform: translateX(-100%);
    transition: transform .32s cubic-bezier(0.64,0,.36,1);
    box-shadow: 0 0 0 300px rgba(0,0,0,0.57);
    padding: 0;
    opacity: 0;
    pointer-events: none;
  }
  .mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 36px;
    margin: 24px 22px 14px 0;
    cursor: pointer;
    transition: color .13s;
    z-index: 2;
  }
  .mobile-menu-close:focus {
    outline: 2px solid var(--color-secondary);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 48px 28px;
    width: calc(100vw - 56px);
    align-items: flex-start;
  }
  .mobile-nav a {
    font-family: var(--font-body);
    font-size: 22px;
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid rgba(199,160,70,.17);
    color: var(--color-gold);
    text-decoration: none;
    transition: color .16s, background .16s;
  }
  .mobile-nav a:hover {
    color: var(--color-secondary);
    background: rgba(15,163,177,0.10);
  }
}
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* Responsive sections & text-image blocks */
@media (max-width: 768px) {
  section {
    padding: 28px 0 32px 0;
    margin-bottom: 32px;
  }
  .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    padding: 18px 12px;
    font-size: 16px;
  }
  .card, .feature-grid li, .service-card {
    padding: 18px 10px;
  }
  main > section:first-of-type {
    padding-top: 30px;
    padding-bottom: 36px;
    border-radius: 0 0 30px 30px;
  }
  main > section:first-of-type h1 {
    font-size: 34px;
  }
  .subheadline {
    font-size: 17px;
    margin-bottom: 20px;
  }
}

/* === Cookie Consent Banner === */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #1B222C;
  color: var(--color-gold);
  font-family: var(--font-body);
  padding: 26px 12px 22px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 16px;
  box-shadow: 0 -3px 16px 0 rgba(27,34,44,.10);
  z-index: 3000;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity .3s, transform .35s cubic-bezier(0.65,0,.4,1);
}
.cookie-consent-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  flex-direction: row;
}
.cookie-consent-banner button {
  font-family: var(--font-body);
  border: none;
  border-radius: 18px;
  padding: 8px 20px;
  font-size: 15px;
  margin: 0 4px;
  font-weight: 600;
  cursor: pointer;
  background: var(--color-gold);
  color: var(--color-primary);
  transition: background .19s, color .14s, transform .14s;
}
.cookie-consent-banner button:focus {
  outline: 2px solid var(--color-secondary);
}
.cookie-consent-banner button:hover {
  background: var(--color-gold-hover);
  color: var(--color-secondary);
  transform: translateY(-2px);
}
.cookie-consent-banner .settings {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-consent-banner .settings:hover {
  background: var(--color-primary);
  color: var(--color-gold);
}
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    font-size: 15px;
    padding: 16px 6px 16px 6px;
  }
  .cookie-consent-banner .cookie-buttons {
    justify-content: flex-end;
  }
}

/* === Cookie Modal Prefs === */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: rgba(27,34,44,0.60);
  opacity: 0;
  pointer-events: none;
  transition: opacity .23s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  min-width: 280px;
  max-width: 96vw;
  border-radius: 18px;
  box-shadow: 0 12px 40px 0 rgba(27,34,44,0.29);
  padding: 30px 24px 22px 24px;
  font-family: var(--font-body);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookie-modal-in .32s cubic-bezier(0.4,0,0.2,1);
  z-index: 4500;
}
@keyframes cookie-modal-in {
  from { opacity:0; transform: translateY(50px) scale(.93); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
.cookie-modal-title {
  font-size: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 4px;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.cookie-category .toggle {
  margin-left: auto;
}
.cookie-category .toggle input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 18px; height: 18px;
}
.cookie-category .always-on {
  color: var(--color-gold);
  font-size: 14px;
  font-weight: 600;
  margin-left: 10px;
}
.cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 8px 22px;
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background .14s, color .13s, transform .14s;
}
.cookie-modal-actions button:hover {
  background: var(--color-gold);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* === Forms, Inputs (for contact, cookie etc.) === */
input,select,textarea {
  font-family: var(--font-body);
  border: 1px solid #dbe2eb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 16px;
  outline: none;
  margin-bottom: 16px;
  transition: border-color .13s;
  background: #fff;
  color: var(--color-primary);
}
input:focus,select:focus,textarea:focus {
  border-color: var(--color-secondary);
}

/* === Headings & Typography === */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--color-primary);
}
h1 { font-size: 42px; margin-bottom: 20px; }
h2 { font-size: 28px; margin-bottom: 18px; }
h3 { font-size: 20px; margin-bottom: 10px; }

@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
}
p {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.65;
}
a {
  color: var(--color-secondary);
  text-decoration: underline;
}
a:hover {
  color: var(--color-gold);
  text-decoration: none;
}
strong {
  color: var(--color-gold);
  font-weight: 700;
}

ul,ol {
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding-left: 20px;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
li {
  margin-bottom: 0;
}

/* === Utility Classes === */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 12px;
}
.text-center { text-align: center; }
.text-right { text-align: right; }
.rounded { border-radius: 14px; }
.shadow { box-shadow: 0 2px 18px 0 rgba(28,28,42,0.06); }

/* === Animations === */
@media (prefers-reduced-motion: no-preference) {
  .cta-button, .card, .service-card, .feature-grid li, .testimonial-card,
  .blog-preview, .featured-posts article {
    transition: box-shadow .21s, transform .19s;
  }
  .cta-button:active, .service-card:active, .card:active {
    transform: scale(.98);
  }
}

/* === Miscellaneous Fixes === */
img { max-width:100%; height: auto; display: block; }

::-webkit-scrollbar {
  width: 8px;
  background: #ecf0f4;
}
::-webkit-scrollbar-thumb {
  background: #d4c08b;
  border-radius: 4px;
}

/* === ACQUIRED: From Brand Personality - Gold Accents & High-Tech Feel === */
.card, .service-card, .feature-grid li, .testimonial-card {
  border-top: 3.5px solid var(--color-gold);
}

.card:hover, .service-card:hover, .feature-grid li:hover, .testimonial-card:hover {
  box-shadow: 0 7px 42px 0 rgba(199,160,70,.12), 0 2px 10px rgba(27,34,44,0.06);
  border-color: var(--color-gold-hover);
}

/* Highlight text gold dynamically (if .highlight or [data-gold]) */
.highlight,[data-gold] {
  color: var(--color-gold);
  font-weight: 700;
}

/* Accent lines */
h1, h2, h3 {
  position: relative;
}
h2::after {
  content: '';
  display: block;
  margin: 8px 0 0 0;
  width: 44px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}
@media (max-width: 768px) {
  h2::after { width: 30px; height: 2px; margin-top: 6px; }
}

/* === Prevent element overlap & enforce margin between cards/sections === */
section + section {
  margin-top: 28px;
}
.card + .card, .service-card + .service-card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* === Ensure proper z-index for overlays === */
header, .mobile-menu, .cookie-consent-banner, .cookie-modal-backdrop, .cookie-modal {
  z-index: 1000 !important;
}

/* === Hide unwanted elements when overlay/menu is open (if body has .modal-open or .menu-open) === */
body.menu-open, body.modal-open {
  overflow: hidden;
}

/* === Contact Info Block Styling === */
.contact-info {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 8px 0 rgba(32,36,48,0.06);
  padding: 22px 18px;
  margin-top: 8px;
  color: var(--color-primary);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-info h2 {
  font-size: 20px;
  font-family: var(--font-display);
  color: var(--color-gold);
}

/* === Disabled/Non-clickable Elements (accessibility hinting) === */
[aria-disabled="true"], .disabled, button[disabled], select[disabled] {
  opacity: 0.54;
  pointer-events: none;
  filter: grayscale(.35);
}

/* === Thank You / Success Page Styling === */
main .cta-button, .contact-info a {
  margin-top: 14px;
}

/* === Custom selection === */
::selection {
  background: var(--color-secondary);
  color: #fff;
}
.footer-contact p {
  color: white;
}