/* ===== 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html, body { height: 100%; }
body { line-height: 1.5; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
:focus { outline: none; box-shadow: 0 0 0 2px #89B4E7; }

/* ===== ROOT VARIABLES (with fallbacks) ===== */
:root {
  --color-primary: #23344D;
  --color-secondary: #89B4E7;
  --color-accent: #F7F5F2;
  --color-dark: #181C22;
  --color-metal: #8B929C;
  --color-metal-80: #6A6F78;
  --color-text-main: #ECEEEF;
  --color-text-light: #9BAEC9;
  --color-shadow: rgba(59,68,80,0.14);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 5px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --transition: all .24s cubic-bezier(.4,.6,.25,1);
  --shadow-md: 0 2px 16px rgba(48, 54, 66, 0.13), 0 1.5px 2.5px rgba(35,52,77,0.04);
  --shadow-cta: 0 2px 14px 0 rgba(35, 52, 77, 0.18);
  --header-height: 76px;
  --z-cookie: 10000;
  --z-mobile-menu: 11000;
}

/* ===== BODY / HTML ===== */
body {
  background: var(--color-dark);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.18;
  margin-bottom: 18px;
  color: var(--color-accent);
  text-shadow: 0 2px 6px rgba(35,52,77,0.15);
}
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--color-secondary);
}
h3 {
  font-size: 1.28rem;
  margin-bottom: 6px;
  color: var(--color-accent);
}
.subtitle {
  font-size: 1.18rem;
  color: var(--color-text-light);
  font-family: var(--font-body);
  margin-bottom: 16px;
}
p, li, ul, ol, form, span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-main);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-section h3 {
  font-size: 1.16rem;
  color: var(--color-secondary);
  margin-top: 18px;
}
.text-section ul, .text-section ol {
  padding-left: 2em;
  margin-top: 8px;
  color: var(--color-accent);
}
.text-section ul li, .text-section ol li {
  margin-bottom: 6px;
  list-style-type: disc;
  font-size: 1rem;
}

/* ===== HEADER ===== */
header {
  width: 100%;
  background: linear-gradient(90deg, #232B36 80%, #1C2026 100%);
  box-shadow: 0 2px 16px rgba(35, 52, 77, 0.10);
  position: sticky;
  top: 0;
  z-index: 9000;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
.logo img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  color: var(--color-metal);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1rem;
  position: relative;
  transition: var(--transition);
  padding: 2px 4px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  text-shadow: 0 1px 4px var(--color-metal);
}

header .cta.primary {
  margin-left: 18px;
}

/* ===== BUTTONS & CTAs ===== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 44px;
  padding: 0 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-cta);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition);
  outline: none;
  border: 2px solid transparent;
}
.cta.primary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 2px solid var(--color-secondary);
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.cta.secondary {
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--color-dark);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

button.cta, .cta.button {
  cursor: pointer;
  user-select: none;
}

/* ===== MOBILE BURGER MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: var(--z-mobile-menu);
  font-size: 2.2rem;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px 14px;
  border: 1px solid var(--color-secondary);
  transition: background .2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(108deg, #232B36 90%, #10141a 100%);
  box-shadow: 0 2px 16px rgba(18,27,38,0.35);
  padding-top: 18px;
  padding-left: 0;
  z-index: var(--z-mobile-menu);
  transform: translateX(-100%);
  pointer-events: none;
  opacity: 0;
  transition: transform .34s cubic-bezier(.58,.02,.25,1), opacity .24s;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-accent);
  background: none;
  border: none;
  margin: 10px 0 18px 24px;
  cursor: pointer;
  transition: color .16s;
}
.mobile-menu-close:hover { color: var(--color-secondary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
  width: 100%;
  padding-left: 36px;
  margin-top: 12px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.16rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 4px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(141,150,162,0.09);
  width: 80vw;
  transition: color .18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-secondary);
}

@media (max-width: 1000px) {
  .main-nav {
    display: none;  
  }
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1001px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===== SECTIONS & SPACING (MANDATORY FLEX + GAP) ===== */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  width: 100%;
  display: flex;
  justify-content: center;
}

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

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

.card {
  background: #202631;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 26px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(137, 180, 231, 0.12);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: stretch;
}
.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: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 20px 26px;
  margin-bottom: 20px;
  min-width: 300px;
  max-width: 600px;
  border: 2px solid var(--color-secondary);
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 500;
}
.testimonial-card strong {
  color: var(--color-metal-80);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  margin-top: 18px;
}
.features-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #232B36;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 4px solid var(--color-secondary);
  transition: box-shadow .23s, border-color .22s;
}
.features-grid > div:hover {
  box-shadow: 0 4px 24px 0 rgba(137,180,231,0.14);
  border-left: 4px solid var(--color-accent);
}
.features-grid img {
  width: 34px; height: 34px;
  filter: grayscale(30%) contrast(1.2);
  margin-bottom: 10px;
}
.features-grid h3 {
  color: var(--color-secondary);
  font-size: 1.12rem;
  margin-bottom: 0;
}
.features-grid p {
  color: var(--color-text-main);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .features-grid > div {
    min-width: 0;
    width: 100%;
  }
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-list li {
  background: #232B36;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--color-secondary);
  padding: 18px 18px 18px 22px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: box-shadow .2s, border-color .18s;
}
.service-list li:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 20px 0 rgba(137,180,231,0.10);
}
.service-list li h3 {
  color: var(--color-accent);
  margin-bottom: 0;
  font-size: 1.08rem;
}
.service-list span {
  color: var(--color-secondary);
  font-weight: bold;
  font-family: var(--font-display);
  margin-top: 4px;
  font-size: 0.98rem;
}

/* Card content alignment */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ===== FORMS & INPUTS ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 440px;
}
input[type="text"],
input[type="email"],
textarea {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.4px solid #232B36;
  background: #14171C;
  color: var(--color-accent);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 8px;
  transition: border .17s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.7px solid var(--color-secondary);
}
textarea {
  resize: vertical;
  min-height: 90px;
  max-height: 240px;
}

::placeholder { color: #9BAEC9; opacity: 1; }

button[type="submit"], form .cta {
  margin-top: 4px;
}

/* ===== FOOTER ===== */
footer {
  width: 100%;
  background: #1B222B;
  border-top: 2px solid #2D3643;
  padding: 38px 0 30px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 10px;
}
.footer-nav a {
  color: var(--color-metal);
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  transition: color .15s, border-bottom .16s;
  border-bottom: 1.4px dashed transparent;
}
.footer-nav a:hover {
  color: var(--color-secondary);
  border-bottom: 1.4px dashed var(--color-secondary);
}
.brand-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  color: var(--color-metal);
  font-size: 1rem;
}
.brand-info img {
  width: 38px; height: 38px;
}
.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.social-links a img {
  width: 30px; height: 30px;
  filter: grayscale(60%) brightness(1.1);
  transition: filter .19s;
}
.social-links a:hover img {
  filter: grayscale(0%) brightness(1.42) drop-shadow(0 2px 4px #89B4E7);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #232B36;
  color: var(--color-accent);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 22px 28px;
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 -4px 24px 0 rgba(35,52,77,0.10);
  z-index: var(--z-cookie);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .27s, transform .32s;
  gap: 35px;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-msg {
  font-size: 1.06rem;
  color: var(--color-accent);
  flex: 2;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner .cookie-btn {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: bold;
  padding: 10px 22px;
  margin: 0 1px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: .98rem;
  transition: background .19s, color .18s, box-shadow .21s;
  box-shadow: 0 2px 8px 0 rgba(137, 180, 231, 0.09);
}
.cookie-banner .cookie-btn.cookie-settings {
  background: var(--color-primary);
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 2px 16px 0 rgba(137,180,231,0.15);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 12px 66px 12px;
    gap: 18px;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    gap: 10px;
    justify-content: stretch;
  }
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: calc(var(--z-cookie) + 10);
  background: rgba(24,28,34,0.89);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .26s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #232B36;
  color: var(--color-accent);
  padding: 40px 26px 28px 26px;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 44px 0 rgba(35,52,77,0.19);
  min-width: 300px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  position: relative;
}
.cookie-modal h2 {
  color: var(--color-secondary);
}
.cookie-modal .cookie-close {
  position: absolute;
  top: 16px;
  right: 22px;
  color: var(--color-metal);
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.cookie-pref-group {
  border-top: 1px solid #30363E;
  padding-top: 18px;
  margin-top: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-pref-row {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cookie-pref-row label {
  font-size: 1.03rem;
  color: var(--color-accent);
  font-family: var(--font-body);
}
.cookie-switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  background: #141922;
  border-radius: 99px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--color-secondary);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  transition: transform 0.22s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
  background: var(--color-primary);
}
.cookie-pref-row input[disabled] + .cookie-slider {
  background: #4C5566;
  opacity: 0.7;
}
.cookie-save-btn {
  margin-top: 20px;
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  min-width: 130px;
  min-height: 42px;
  padding: 0 22px;
  font-size: 1rem;
  border: none;
  transition: background .18s, color .16s;
}
.cookie-save-btn:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* ===== RESPONSIVE: CONTAINERS & FLEX ===== */
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 0;
  }
  .brand-info {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
  .container {
    padding: 0 8px;
  }
  .section{
    padding: 28px 8px;
  }
  /* Section & grid flex direction */
  .text-image-section{
    flex-direction: column;
    align-items: flex-start;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  main section {
    padding: 32px 4px;
  }
}

/* ===== ACCESSIBILITY & FOCUS ===== */
a:focus,
.cta:focus,
button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ===== PAGE-SPECIFIC: BLOG LIST ===== */
.text-section ul li h3 {
  margin-bottom: 2px;
  color: var(--color-secondary);
}
.text-section ul li p {
  margin-bottom: 7px;
}

/* ===== HOVER & MICRO-INTERACTIONS ===== */
.card, .features-grid > div, .service-list li {
  transition: box-shadow 0.18s, border-color 0.14s;
}
.card:hover, .features-grid > div:hover, .service-list li:hover {
  box-shadow: 0 4px 24px 0 rgba(137,180,231,0.13);
  border-color: var(--color-accent);
}

.cta, button.cta {
  transition: background .19s, color .16s, box-shadow .23s;
}

/* ===== Z-INDEX LAYERING ===== */
header, .mobile-menu, .cookie-banner, .cookie-modal {
  z-index: calc(var(--z-cookie) + 100);
}

/* ===== MISC CLASSES ===== */
.hide { display: none !important; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 9px; background: #202631; }
::-webkit-scrollbar-thumb { background: #232B36; border-radius: var(--radius-md); }

/* ===== UTILITY GAPS ===== */
.mt-3 { margin-top: 24px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }

/* END OF INDUSTRIAL MODERN THEME FOR FROSTED GLINT STUDIO */
