
/* GENERAL STYLING */

html{
    scroll-behavior: smooth;
}*, *::before, *::after {
box-sizing: border-box;
}

section {
    scroll-margin-top: 5rem; /* match your header height */
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;     /* 🔹 prevents sideways scrolling */
}

/* --- Global Font Setup --- */

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    background-color: #fdfdfd;
    margin: 0;
    padding: 0;
}

body.nav-open {
  overflow: hidden;       /* no scroll when sidebar is open */
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI Semibold', 'Roboto Slab', 'Helvetica Neue', sans-serif;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.max-w{
    max-width: 80rem;
}
header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
   /* must be higher than the overlay (250) so the sidebar is on top */
    z-index: 400;
  }

  /* Respect safe area on phones with a notch */
@supports (padding-top: env(safe-area-inset-top)) {
  header {
    padding-top: env(safe-area-inset-top);
  }
}

.nav-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem 0;
  }
  
.nav-bar h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

/* Desktop: no hamburger */
.nav-toggle {
  display: none;
}

.mobile-lang-select {
  display: none;
}

nav ul {
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

nav ul li a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: #007bff;
}

/* Optional: underline hover effect */
nav ul li a::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
    position: absolute;
    bottom: -4px;
    left: 0;
}

nav ul li a:hover::after {
    width: 100%;
}

img{
    max-width: 100%;
    height: auto;
    display: block;
}
.format-horizontal{
    padding-left: 5rem;
    padding-right: 5rem;
    margin-left: auto;
    margin-right: auto;
}
.format-vertical{
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.link{
    color: rgb(74, 177, 247);
}

.lang-switcher {
  appearance: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--divider);
  border-radius: .5rem;
  padding: .4rem .6rem;
  margin-left: 1rem;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.lang-switcher:hover {
  background-color: color-mix(in srgb, var(--text) 10%, transparent);
}
[data-theme="light"] .lang-switcher {
  /* stays readable on light backgrounds */
  border-color: #cbd5e1;
}



/* --- HERO SECTION --- */


.hero-section{
    background-color: #0f172a;
    background-image: radial-gradient(rgba(56, 189, 248, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem;
}

.hero-text{
    color:white;
}

.hero-picture{
    display: flex;
    justify-content: center;
}

.hero-text,
.hero-picture{
    flex: 1 1 50%;
}

#logo{
    width: 70%;
    height: auto;
}


/* ================================
   HERO STACKING FOR TABLETS + PHONES
   ================================ */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;      /* stack vertically */
    align-items: center;         /* center items horizontally */
    text-align: center;          /* center hero text */
  }

  /* Logo comes FIRST */
  .hero-picture {
    order: 1;
    margin-bottom: 1.5rem;
    justify-content: center;
  }

  /* Text comes AFTER logo */
  .hero-text {
    order: 2;
    max-width: 32rem;  
  }

  /* Make logo a bit smaller on small screens */
  #logo {
    width: 65vw;        /* responsive width */
    max-width: 320px;   /* don’t get too huge */
    margin: 0 auto 1.5rem;
  }
}



/* --- ABOUT SECTION --- */

/* Clean divider between About and Services */
#about::after {
  content: '';
  display: block;
  width: 60%;
  max-width: 20rem;
  height: 0.25rem;
  background-color: #007bff;  /* your brand blue */
  margin: 3rem auto 0;        /* centers the line */
  border-radius: 0.125rem;
}

.about-section {
    background-color: #f9fafb;
    padding: 4rem 1rem;
}

.about-head {
    text-align: center;
    margin-bottom: 2rem;
}

.about-head h2 {
    font-size: 2.5rem;
    color: #333;
}

.about-head p {
    font-size: 1.2rem;
    color: #666;
    margin-top: 0.5rem;
    max-width: 37.5rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.about-head::after {
    content: '';
    display: block;
    width: 3.75rem;   
    height: 0.25rem;
    background-color: #007bff;
    margin: 1.5rem auto 0;
    border-radius: 0.125rem; 
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    max-width: 62.5rem; 
    margin: 0 auto;
}

.about-picture {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
}

.about-picture img {
    max-width: 18.75rem;
    width: 100%;
    height: auto;
}

.about-text {
    display: flex;
    flex-direction: column;
    font-size: 1.125rem;
    line-height: 1.8;
}

/* --- ABOUT LAYOUT (no overlap) --- */

.about-text-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  column-gap: 4rem;
  row-gap: 3rem;
  position: relative;
  align-items: start;
}

.about-text-left,
.about-text-right {
  display: contents; /* let inner blocks be grid items */
}

/* exact grid positions */
#drop-text { grid-column: 1; grid-row: 1; }
#fast-service-text { grid-column: 2; grid-row: 1; }
#exp-text { grid-column: 1; grid-row: 2; }
#payment-text { grid-column: 2; grid-row: 2; }

/* vertical divider between the two columns */
.about-text-top::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: var(--divider);
  transform: translateX(-50%);
  pointer-events: none;
}

/* optional: bottom part of about section if you add it later */
.about-text-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 3rem;
}

.about-text-bottom ul {
  text-align: left;
  display: inline-block;
  margin: 1rem auto;
  padding-left: 1.5rem;
}

.about-text-bottom li {
  margin-bottom: 0.5rem;
}

/* ---------- RESPONSIVE: stack columns on tablet/phone ---------- */
@media (max-width: 900px) {
  .about-text-top {
    grid-template-columns: 1fr;   /* single column */
    row-gap: 2rem;
  }

  .about-text-top::before {
    display: none;               /* hide vertical divider */
  }

    /* ===== ABOUT SECTION: phones & tablets ===== */

  .about-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .about-text-top {
    display: flex;            /* stop using grid on small screens */
    flex-direction: column;
    gap: 2rem;
    position: static;         /* so the old ::before line doesn't matter */
  }

  .about-text-top::before {
    display: none;            /* hide the vertical divider on small screens */
  }

  /* let items flow naturally, not in fixed grid cells */
  #drop-text,
  #fast-service-text,
  #exp-text,
  #payment-text {
    grid-column: auto;
    grid-row: auto;
  }

}


/* --- SERVICE SECTION --- */


.service-section {
    background-color: #f5f5f5;
    padding: 4rem 1rem;
}

.service-head {
    text-align: center;
    margin-bottom: 3rem;
}

.service-head h2 {
    font-size: 2.5rem;
}

.service-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem;
}

.service-content div {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-content div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.service-content h3 {
    font-size: 1.5rem;
    color: rgb(74, 177, 247);
    margin-bottom: 1rem;
}

.service-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

@media (max-width: 768px) {
.service-content {
    grid-template-columns: 1fr; /* Stack vertically on small screens */
}
}

/* --- PRICE SECTION --- */


.price-section {
    background-color: #f8f9fa;
    padding: 4rem 1rem;
}

.price-head {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
}

.price-head h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.price-head p {
    font-size: 1.1rem;
    color: #666;
}

.price-box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.price-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.price-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.price-box div>span:first-child {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.price-box div>span:last-child {
    font-size: 0.95rem;
    color: #777;
    display: block;
    margin-top: 0.25rem;
}

.price-box button {
    margin-top: 1.5rem;
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.price-box button:hover {
    background-color: #0056b3;
}

.info-box {
    display: none;
    position: absolute;
    bottom: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    padding: 1rem;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    z-index: 10;
    font-size: 0.95rem;
    color: #444;
}

.info-box.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* --- REMOTE SECTION --- */
.remote-section {
  background: #163b6133; /* LIGHT BLUE — easy to read */
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.remote-head{
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
}

.remote-head h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.remote-head p {
    font-size: 1.1rem;
    color: #666;
}
.remote-text{
    padding-top: 0.5rem ;
    padding-bottom: 0.5rem ;
}

/* --- CONTACT SECTION --- */


.contact-head {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-body {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.form-box {
    flex: 1 1 45%;
    background-color: #f0f7ff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}
  
.contact-info {
    flex: 1 1 45%;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

#contact-form {
    display: flex;
    flex-direction: column;
}

.form-box input,
.form-box textarea,
.form-box button,
.form-box select {
    margin: 0.75rem 0;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-family: inherit;
    width: 100%;
}

.form-box select {
    background-color: white;
    appearance: none;
    cursor: pointer;
}
  
.form-box label {
    font-weight: 500;
    margin-top: 1rem;
    display: block;
    color: #ffffff;
}
  

.form-box textarea {
    resize: vertical;
}

.form-box input:focus,
.form-box textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);

}

.form-box button {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
}

.form-box button:hover {
    background-color: #0056b3;
}

/* Honeypot field: visually hidden but present in DOM */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Status message under contact form */
.contact-status {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.contact-status.success {
  color: #16a34a; /* green */
}

.contact-status.error {
  color: #dc2626; /* red */
}

.contact-info h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-info p {
    margin: 0 0 1rem;
    color: #c4c3c3;
}

.contact-icons{
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 1.5rem;
    margin-right: 1rem;
}


/* Responsive: Stack on smaller screens */
@media (max-width: 768px) {
    .contact-body {
        flex-direction: column;
        align-items: stretch;
    }

    .form-box,
    .contact-info {
        flex: 1 1 100%;
    }
}

/* --- FOOTER --- */


footer {
    background-color: #0f172a;
    color: white;
    font-size: 1rem;
}
  
.footer-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: flex-start;
}
  
.footer-info,
.footer-links {
    padding: 2rem 0;
}
  
.footer-info h3,
.footer-links h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-info p {
    line-height: 1.6;
    color: #ccc;
    max-width: 32rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links ul li a:hover {
    color: #ffffff;
}

.footer-socials {
    display: flex;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.icon-link {
    color: #ccc;
    transition: color 0.3s ease;
    margin-right: 2rem;
}

.icon-link:hover {
    color: #ffffff;
}

.icon-link svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

.footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.875rem;
    color: #999;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}
  



/*   DARK MODE   */

/* ---------- THEME VARIABLES (default: dark) ---------- */
:root {
  /* colors for dark */
  --bg: #0b1220;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --surface: #0f172a;         /* header / sections */
  --surface-2: #111827;       /* hero / deep surfaces */
  --card: #0f172a;            /* cards/boxes */
  --primary: #007bff;
  --accent: #007bff;
  --divider: #1f2937;
  --grid-dot: rgba(56, 189, 248, 0.10);
  --shadow: rgba(0,0,0,0.35);
}

/* Light theme overrides */
[data-theme="light"] {
  --bg: #fdfdfd;
  --text: #0f172a;
  --muted: #556;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --card: #ffffff;
  --primary: #007bff;
  --accent: #007bff;
  --divider: #e5e7eb;
  --grid-dot: rgba(56, 189, 248, 0.10);
  --shadow: rgba(0,0,0,0.08);
}

/* Smoothen theme switch */
html, body, section, header, footer, .price-box, .contact-info, .form-box {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* ---------- APPLY VARIABLES WITHOUT REWRITING EVERYTHING ---------- */
body { background: var(--bg); color: var(--text); }

/* Header / nav */
header { background-color: var(--surface); box-shadow: 0 2px 8px var(--shadow); }
nav ul li a { color: var(--text); }
nav ul li a:hover { color: var(--accent); }
nav ul li a::after { background-color: var(--accent); }

/* Hero */
.hero-section {
  background-color: var(--surface-2);
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
}

/* About */
.about-section { background: var(--surface-2); }
.about-head h2 { color: var(--text); }
.about-head p { color: var(--muted); }
.about-head::after { background-color: var(--accent); }
.about-text-top::before { background-color: var(--divider); }

/* Services / Cards */
.service-section { background: var(--surface-2); }
.service-content div { background: var(--card); box-shadow: 0 6px 16px var(--shadow); }
/* .service-content h3 { color: var(--primary); } */
.service-content p { color: var(--text); }

/* Prices */
.price-section { background: var(--surface-2); }
.price-box { background: var(--card); box-shadow: 0 6px 16px var(--shadow); }
.price-box h3 { color: var(--text); }
.price-box div>span:first-child { color: var(--primary); }
.price-box button { background: var(--primary); }
.price-box button:hover { background: color-mix(in srgb, var(--primary) 80%, #000 20%); }

/* Remote */
.remote-head p { color: var(--muted); }

/* Contact */
.contact-info { background: var(--card); box-shadow: 0 8px 16px var(--shadow); }
.form-box { background: color-mix(in srgb, var(--primary) 5%, var(--surface)); box-shadow: 0 8px 16px var(--shadow); }
.form-box input,
.form-box textarea,
.form-box select { background: var(--surface); color: var(--text); }
.form-box button { background: var(--primary); }
.form-box button:hover { background: color-mix(in srgb, var(--primary) 80%, #000 20%); }

/* Footer */
footer { background: var(--surface); color: var(--text); }
.footer-links a { color: color-mix(in srgb, var(--text) 70%, transparent); }
.footer-links a:hover { color: var(--text); }
.footer-copyright { border-top-color: color-mix(in srgb, var(--text) 10%, transparent); }

/* Divider used in About */
.about-text-top::before { background: var(--divider); }

/* Toggle button styling */
/* --- Theme toggle base --- */
.theme-toggle {
  margin-left: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* hover effect for both modes */
.theme-toggle:hover {
  background-color: color-mix(in srgb, var(--text) 10%, transparent);
}

/* --- Specific styling when LIGHT mode is active --- */
[data-theme="light"] .theme-toggle {
  background-color: #0f172a;   /* dark button on white background */
  color: #ffffff;              /* white text */
  border-color: #0f172a;
}

[data-theme="light"] .theme-toggle:hover {
  background-color: #1e293b;   /* slightly lighter on hover */
}




/* DARK AND LIGHT MODE EXEPTIONS */

footer {
  background-color: #0f172a !important; /* your original dark tone */
  color: #ffffff !important;
}

footer a,
.footer-links a,
.footer-info p,
.footer-copyright {
  color: #ccc !important;
}

.footer-links a:hover {
  color: #ffffff !important;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}


/* --- Keep hero section dark in both light and dark modes --- */
.hero-section {
  background-color: #0f172a !important;
  background-image: radial-gradient(rgba(56, 189, 248, 0.1) 1px, transparent 1px) !important;
  background-size: 20px 20px !important;
  color: #ffffff !important;
}

.hero-text h2,
.hero-text p {
  color: #ffffff !important;
}

.hero-picture {
  display: flex;
  justify-content: center;
  align-items: center;
}


/* --- Language flag menu --- */

.lang-menu {
  position: relative;
  margin-left: 1rem;
  font-size: 0.9rem;
  display: inline-block;
}

/* Button that shows the current language */
.lang-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-current .flag {
  font-size: 1.1rem;
}

/* Just a hover effect for the button itself */
.lang-menu.open .lang-current,
.lang-menu:hover .lang-current {
  background-color: color-mix(in srgb, var(--text) 10%, transparent);
}

/* Dropdown list */
.lang-dropdown {
  position: absolute;
  top: 100%;      /* sits directly under the button */
  right: 0;
  margin-top: 0;
  padding: 0.35rem 0;
  list-style: none;
  min-width: 8rem;
  border-radius: 0.5rem;
  border: 1px solid var(--divider);
  background-color: var(--surface);
  box-shadow: 0 8px 16px var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 200;
}

/* 🔹 DROPDOWN VISIBLE ONLY WHEN .open IS SET BY JS */
.lang-menu.open .lang-dropdown {
  opacity: 1;
  pointer-events: auto;
}

/* Dropdown items */
.lang-option {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lang-option .flag {
  font-size: 1.1rem;
}

.lang-option .lang-label {
  white-space: nowrap;
}

/* Hover + active state */
.lang-option:hover {
  background-color: color-mix(in srgb, var(--text) 12%, transparent);
}

.lang-option.is-active {
  font-weight: 600;
}


/* --- Warranty Modal --- */

.modal {
  position: fixed;
  inset: 0;
  display: none;            /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 500;             /* above header/nav */
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65); /* dark translucent backdrop */
}

.modal-content {
  position: relative;
  max-width: 40rem;
  max-height: 80vh;
  width: 90%;
  overflow-y: auto;
  background: var(--card);
  color: var(--text);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 20px 40px var(--shadow);
  z-index: 1;
}

.modal-content h2,
.modal-content h3 {
  margin-top: 0;
}

.modal-content ul {
  padding-left: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Make the footer "Warranty" button look like a text link */
.footer-link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #ccc;
  cursor: pointer;
  text-align: left;
}

.footer-link-button:hover {
  color: #ffffff;
}




/* ================================
   PHONES & TABLETS (≤ 900px)
   ================================ */
@media (max-width: 900px) {
  /* Reduce horizontal padding a bit */
  .format-horizontal {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Header layout: only burger visible, aligned to the right */
  .nav-bar {
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  /* Off-canvas nav panel */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    max-width: 80%;
    background: var(--surface);
    box-shadow: -12px 0 24px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 1.75rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);      /* hidden off-screen to the right */
    transition: transform 0.25s ease;
    z-index: 300;
  }

  /* When JS adds .is-open, panel slides in */
  .main-nav.is-open {
    transform: translateX(0);
  }

  /* Nav list becomes vertical inside panel */
  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
  }

  .main-nav ul li a {
    display: block;
    width: 100%;
    padding: 0.35rem 0;
  }

  /* Language button sits INSIDE the sliding panel */
  .main-nav .lang-menu {
    margin-left: 0;
    margin-top: 1.5rem;
  }

  /* MOBILE HAMBURGER BUTTON */

  .nav-toggle {
    display: inline-flex;            /* now visible on mobile */
    align-items: center;
    justify-content: center;
    width: 2.75rem;                  /* hit area width */
    height: 2.75rem;                 /* hit area height */
    border-radius: 0.5rem;
    border: 1px solid var(--divider);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    padding: 0;                      /* icon centered in full area */
    z-index: 350;                    /* above overlay */
  }

  /* Make the whole button clickable, not just the image */
  .nav-toggle img#menubtn {
    width: 1.6rem;
    height: 1.6rem;
    display: block;
    pointer-events: none;            /* clicks go to the button, not the img */
  }

  /* If you only want the image (no bars), hide the bars */
  .nav-toggle-bar {
    display: none;
  }

  /* Dark overlay behind the panel when open */
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 250;
  }
    /* Force hamburger icon to appear white */
  #menubtn {
      filter: brightness(0) invert(1);
  }

  /* Flag buttons inside sidebar */
  .mobile-lang-select {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
  }

  .mobile-lang:hover {
    background-color: color-mix(in srgb, var(--text) 12%, transparent);
  }

  #lang-menu {
      display: none !important;
  }
  .mobile-lang {
    border: none;
    outline: none;
    background: transparent;
    font-size: 2rem;       /* adjust to preferred size */
    cursor: pointer;
    padding: 0.25rem 0.5rem;  
  }

  /* Remove the default blue focus outline (Safari/Chrome) */
  .mobile-lang:focus,
  .mobile-lang:focus-visible,
  .mobile-lang:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
  }
}

