/* === 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;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #F8F9FB;
  color: #22223B;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}
ul, ol {
  list-style: none;
}
button {
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
:focus {
  outline: 2px solid #22223B;
  outline-offset: 2px;
}

/* === BRAND COLORS & FONTS === */
:root {
  --primary: #22223B;
  --secondary: #4A4E69;
  --accent: #F2E9E4;
  --neutral-bg: #FFFFFF;
  --neutral-bg-alt: #F8F9FB;
  --shadow: 0 2px 12px rgba(44, 50, 71, 0.08);
  --radius: 12px;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Montserrat'), url('https://fonts.gstatic.com/s/montserrat/v25/JTUQjIg1_i6t8kCHKm4532VJOt5-QNNgm2A.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Open Sans'), url('https://fonts.gstatic.com/s/opensans/v34/mem8YaGs126MiZpBA-U1Ug.woff2') format('woff2');
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.18; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 14px; }
h4 { font-size: 1.125rem; margin-bottom: 10px; }

p, ul, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.7;
}

strong {
  font-weight: 700;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--neutral-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

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

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: var(--neutral-bg);
  box-shadow: 0 1px 8px rgba(60, 60, 60, 0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 0;
}
header img[alt="Gravig Axle"], header img[alt="Gravig Axle"] {
  height: 48px;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  color: var(--primary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 6px 0; /* clickable area */
  position: relative;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.19s;
  position: absolute;
  bottom: -3px; left: 0;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: var(--neutral-bg);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  box-shadow: 0 1px 5px rgba(40,30,60,0.06);
  margin-left: 18px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  z-index: 101;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--accent);
  color: var(--secondary);
}

/* Mobile navigation overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--neutral-bg);
  box-shadow: 0 10px 64px rgba(40,30,60,0.18);
  z-index: 100;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(.4,1.9,.6,.8), opacity 0.26s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 12px 0;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.18s, color 0.18s;
  border: none;
  box-shadow: 0 2px 6px rgba(50, 44, 69, 0.08);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 36px 16px 36px;
  width: 100%;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.13rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid #ececec;
  transition: color .2s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    gap: 0;
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-nav {
    gap: 12px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 480px) {
  .mobile-nav {
    padding: 12px 8vw 18px 8vw;
    gap: 12px;
  }
  .mobile-menu-close {
    margin: 10px 8vw 0 0;
    width: 42px;
    height: 42px;
  }
}

/* === HERO SECTIONS === */
.hero {
  background: var(--accent);
  display: flex;
  align-items: center;
  padding: 60px 0 58px 0;
  margin-bottom: 60px;
  min-height: 210px;
}
.hero .container {
  justify-content: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}
.hero h1 {
  color: var(--primary);
}
.hero p {
  color: var(--secondary);
  font-size: 1.18rem;
}
@media (max-width: 700px) {
  .hero {
    padding: 32px 0 32px 0;
    min-height: 130px;
  }
  .hero .content-wrapper h1 { font-size: 1.7rem; }
}

/* === BUTTONS === */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 700;
  box-shadow: 0 2px 16px rgba(34,34,59,0.10);
  letter-spacing: 0.02em;
  border: none;
  margin-top: 14px;
  margin-bottom: 6px;
  transition: background 0.24s, color 0.18s, box-shadow 0.18s, transform 0.13s;
}
.cta-button:hover, .cta-button:focus {
  background: var(--secondary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.036);
  box-shadow: 0 6px 28px rgba(34,34,59,0.16);
}

/* === FLEXBOX LAYOUTS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  background: var(--neutral-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 300px;
  max-width: 360px;
}
.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;
  padding: 20px;
  background: #F2E9E4;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(55,50,80,.05);
  margin-bottom: 24px;
  flex-direction: column;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grid for services - homepage and similar */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  min-width: 220px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow .18s, transform .17s;
  margin-bottom: 20px;
}
.feature-grid > div img {
  height: 38px;
  width: auto;
  margin-bottom: 10px;
}
.feature-grid > div h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--secondary);
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 6px 25px rgba(34, 34, 59, 0.14);
  transform: translateY(-3px) scale(1.025);
}

/* --- Testimonial Card --- */
.testimonial-card p {
  font-size: 1.13rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card strong {
  color: var(--secondary);
}
.testimonial-card span {
  color: #e0ad00;
  margin-left: 8px;
}

/* === CONTACT DETAILS / MAP PLACEHOLDER === */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.map-location {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 90px;
  margin-top: 12px;
  background: var(--neutral-bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.map-placeholder {
  color: var(--secondary);
  font-style: italic;
}

/* === CARDS & WHITE SECTIONS === */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 36px 0 18px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 48px;
}
footer a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
  margin-right: 16px;
  transition: color .2s;
}
footer a:hover, footer a:focus {
  color: var(--secondary);
}
.footer-nav {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  margin-bottom: 10px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.97rem;
  color: var(--accent);
}
.footer-contact img {
  width: 18px; height: 18px; margin-right: 6px; filter: invert(1);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 28px;
  }
  .footer-nav {
    gap: 12px;
  }
}

/* === SPACING === */
main > section {
  margin-bottom: 60px;
}
main > section:last-child {
  margin-bottom: 0;
}
.section + .section {
  margin-top: 60px;
}

/* === TYPOGRAPHY SCALE (mobile first) === */
@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  .cta-button {
    padding: 12px 18px;
    font-size: 1rem;
  }
}

/* === RESPONSIVE LAYOUTS === */
@media (max-width: 1000px) {
  .feature-grid {
    flex-wrap: wrap;
    gap: 20px;
  }
  .feature-grid > div {
    min-width: 160px;
    flex: 1 1 160px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
    padding-left: 6vw;
    padding-right: 6vw;
  }
}
@media (max-width: 700px) {
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div {
    max-width: 100%;
    width: 100%;
    margin-bottom: 14px;
  }
  .testimonial-card {
    padding: 14px 12px;
  }
}
@media (max-width: 700px) {
  .content-grid { flex-direction: column; gap: 12px; }
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
}

/* === LISTS, UL & OL === */
ul, ol {
  margin-left: 2em;
  margin-bottom: 12px;
}
.section ul, .section ol {
  padding-left: 1.2em;
}
.section ul li, .section ol li {
  margin-bottom: 10px;
  padding-left: 0.5em;
  position: relative;
}
.section ul li::before {
  content: '•';
  color: var(--secondary);
  font-size: 1.1em;
  font-weight: bold;
  margin-right: 7px;
  position: absolute;
  left: -16px;
  top: 0;
}

/* === VISUAL EFFECTS & MICRO-INTERACTIONS === */
a, .cta-button, button, .feature-grid > div {
  transition: color 0.13s, background 0.18s, box-shadow 0.19s, transform 0.15s;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2px 20px rgba(34, 34, 59, 0.09);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 44px 19px 24px;
  font-size: 1rem;
  animation: slideInUp 0.7s cubic-bezier(.27,.83,.49,1.05);
}
.cookie-banner.hide {
  display: none;
  pointer-events: none;
  opacity: 0;
}
@keyframes slideInUp {
  from { transform: translateY(64px); opacity: 0; }
  to { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  flex: 2 1 120px;
  font-size: 0.99rem;
}
.cookie-banner-actions {
  flex: none;
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  border: none;
  border-radius: 5px;
  padding: 7px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.18s, color 0.16s, box-shadow 0.15s;
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--accent);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-btn.reject {
  background: #eee;
  color: var(--primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-settings-btn {
  background: var(--accent);
  color: var(--primary);
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: var(--secondary);
  color: var(--accent);
}

/* Cookie modal overlay/popup */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 11000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(50, 44, 69, .13);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.18s;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 54px rgba(44,38,60,0.18);
  padding: 36px 32px 22px 32px;
  width: 96vw;
  max-width: 428px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  z-index: 11001;
  animation: fadeIn 0.35s cubic-bezier(.32,.91,.56,1.10);
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
.cookie-category-label {
  font-weight: 600;
  color: var(--secondary);
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  border: none;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--secondary);
  color: var(--accent);
}
.cookie-modal label {
  cursor: pointer;
  font-size: 1rem;
}
.cookie-modal .cookie-switch {
  margin-left: auto;
}
/* Custom toggle switches */
.cookie-switch {
  width: 38px;
  height: 22px;
  border-radius: 20px;
  background: #e2e2e2;
  display: inline-block;
  position: relative;
  transition: background .16s;
}
.cookie-switch.on {
  background: var(--secondary);
}
.cookie-switch-handle {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left .15s;
  box-shadow: 0 1px 3px rgba(30,30,40,0.09);
}
.cookie-switch.on .cookie-switch-handle {
  left: 19px;
}

/* Cookie modal always shows essential cookies enabled and disables toggling */
.cookie-category.essential .cookie-switch {
  background: #babbbc !important;
  opacity: 0.7;
  pointer-events: none;
}
.cookie-category.essential label {
  color: #888;
}

@media (max-width:600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 14px 14px 11px 12px;
    font-size: 0.97rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .cookie-modal {
    padding: 12vw 4vw 7vw 4vw;
    width: 97vw;
    max-width: 97vw;
  }
}

/* --- Misc. Accessibility & Detail --- */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid #4A4E69;
  outline-offset: 3px;
}

/* Hide visually (for accessibility support) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Selection highlight */
::selection {
  background: var(--secondary);
  color: #fff;
}

/* --- END OF STYLE.CSS --- */
