/* HEXAGON · PRO — Styles */
/* Top Banner */
.top-banner {
  width: 100%;
  overflow: hidden;
  max-height: 200px;
  background: #f5f5f5;
}

.top-banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

:root {
    --bg: #ffffff;
    --text: #0f1115;
    --muted: #44495a;
    --line: #e9eaee;
    --black: #111111;
    --gold: #c7a144;
    --gold-strong: #b18b2c;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --radius: 12px;
}

/* Full-width container variant */
.container.full {
    max-width: none;
    width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}
/* Edge-to-edge variant */
.container.full.no-pad { padding-left: 0; padding-right: 0; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1100px, 92%); margin: 0 auto; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.9);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.lang-switch { display: flex; gap: 8px; align-items: center; margin-left: 16px; }
.lang-switch button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font: inherit; cursor: pointer; }
.lang-switch button.active { background: var(--gold); color: #111; border-color: var(--gold-strong); }
.brand { display: flex; align-items: center; padding: 10px 0; }
.brand-text { font-weight: 700; letter-spacing: 0.4px; }
.logo { width: 36px; height: 36px; border-radius: 8px; background:
    conic-gradient(from 0deg, var(--gold) 0 60deg, transparent 60deg 120deg) no-repeat,
    conic-gradient(from 180deg, var(--gold) 0 60deg, transparent 60deg 120deg) no-repeat; 
    background-color: #fff; border: 2px solid var(--black); position: relative; }
.logo.small { width: 28px; height: 28px; }
/* Image-based logo */
.logo-img { height: 100px; width: auto; display: block; }
.logo-img.small { height: 40px; width: auto; }

.nav-list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-list a { padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-list a:hover { border-color: var(--gold); }
.nav-toggle { display: none; font-size: 22px; background: none; border: none; }

/* Hero */
.section { padding: 0; }
.hero { 
    width: 100%;
    position: relative;
    min-height: 80vh; /* Make the hero section taller */
    height: 60vh; /* Reduced height for better cropping */
    overflow: hidden;
    margin: 0;
    padding: 0;
}
.hero .hero-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero .hero-image {
    position: relative;
    overflow: hidden;
}

.hero .hero-image img {
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1;
    animation: slideOutRight 1.5s ease-out forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.hero:hover .hero-image img {
    transform: scale(1.03);
}

/* Left-aligned hero content */
.hero .hero-content {
    position: absolute;
    bottom: 100px;
    left: 10%;
    max-width: 600px;
    opacity: 0;
    animation: slideInFromLeft 0.8s ease-out 0.3s forwards;
    z-index: 3;
}

/* Centered hero content */
.hero .hero-content-center {
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    max-width: 600px;
    text-align: left;
    width: auto;
    padding: 40px;
    box-sizing: border-box;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero .hero-content-center h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: #333;
    text-shadow: none;
    line-height: 1.2;
}

.hero .hero-content-center p {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 2rem 0;
    line-height: 1.5;
    text-shadow: none;
}

.hero .hero-content-center .cta-group {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 2.5rem;
}

.hero .hero-content h1 {
    font-size: 2.8rem;
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    animation: none;
}

.hero .hero-subtitle {
    font-size: 1.2rem;
    margin: 0 0 2rem 0;
    color: #555;
    max-width: 500px;
    line-height: 1.6;
    animation: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.hero-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--gold);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: none;
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: none; /* Remove fadeInUp from button as it's now handled by the parent */
    animation-fill-mode: both;
}

.hero-button:hover {
    background-color: var(--gold-strong);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%; /* Positioned lower */
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.7) 30%,
        rgba(255, 255, 255, 0.3) 70%,
        rgba(255, 255, 255, 0) 100%
    ), url('../bearbeitetebilder/autohero.png') no-repeat 30% center;
    background-size: cover;
    z-index: 1;
}
.hero-inner {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    margin-left: 5%;
}
.hero-content {
    max-width: 500px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-left: 0;
}

@media (max-width: 768px) {
   .hero .hero-content {
        top: auto;
        bottom: 80px;
        margin: 0 20px;
        transform: none;
        width: calc(100% - 40px);
        box-sizing: border-box;
        max-width: none;
    }
   .hero .hero-content-center {
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 40px);
        max-width: none;
        padding: 25px;
        text-align: center;
    }
    .hero .hero-content-center h1 {
        font-size: 2rem;
    }
    .hero .hero-content-center p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .hero-bg {
        background: linear-gradient(
            to right, 
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.8) 60%,
            rgba(255, 255, 255, 0.3) 80%,
            rgba(255, 255, 255, 0) 100%
        ), url('../bearbeitetebilder/autohero.png') no-repeat 30% center;
        background-size: cover;
        background-position: center 40%;
    }
    .hero-content {
        max-width: 100%;
        margin: 20px;
        background: rgba(255, 255, 255, 0.9);
        position: relative;
        top: 40%;
        transform: translateY(-50%);
    }
}
/* Vehicle Showcase */
.vehicle-showcase {
    background-color: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.vehicle-showcase .grid.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.vehicle-image {
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.vehicle-image:hover img {
    transform: scale(1.03);
}

.vehicle-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1a1d23;
}

.vehicle-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .vehicle-showcase .grid.two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vehicle-content {
        text-align: center;
    }
    
    .vehicle-image {
        max-width: 100%;
        margin: 0 auto;
        box-shadow: none;
    }
}

.hero h1 { font-size: clamp(28px, 4.6vw, 48px); line-height: 1.1; margin: 0 0 14px; }
.hero p { 
    color: #1a1d23;              /* darker for contrast */
    font-weight: 600;            /* make text thicker */
    max-width: 720px; 
    margin: 0 0 22px; 
    text-shadow: 0 1px 0 rgba(255,255,255,0.5); /* subtle lift on mixed bg */
}
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; transition: .2s ease; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: #111; border-color: var(--gold-strong); }
.btn-gold:hover { background: var(--gold-strong); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.full { width: 100%; text-align: center; }

/* Grids */
.grid.two-col {
    display: grid; gap: 28px; grid-template-columns: 1.2fr 1fr; align-items: center;
}

/* Brands row */
/* Old static grid left for reference, replaced by scroller on homepage */
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; align-items: stretch; margin-top: 10px; }
.brands .brand-logo { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; box-shadow: var(--shadow); display:flex; align-items:center; justify-content:center; min-height: 80px; transition: transform .2s ease, box-shadow .2s ease; }
.brands .brand-logo:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(17,17,17,0.06); }
.brands .brand-logo img { display:block; max-width: 100%; max-height: 40px; height: 40px; width: auto; object-fit: contain; }

/* Horizontal brand scroller */
.brand-scroller { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.brand-track { display: flex; gap: 18px; align-items: center; padding: 10px; width: max-content; animation: brand-marquee 28s linear infinite; will-change: transform; }
.brand-scroller:hover .brand-track { animation-play-state: paused; }
.brand-logo { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; box-shadow: var(--shadow); display:flex; align-items:center; justify-content:center; min-width: 180px; min-height: 84px; flex: 0 0 auto; }
.brand-logo img { display:block; max-height: 42px; height: 42px; width: auto; object-fit: contain; }

@keyframes brand-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); } /* move by exactly one set when 3 sets exist */
}

/* About & media placeholders */
.about-media, .portal-media { 
    border: 1px solid var(--line); 
    border-radius: var(--radius); 
    min-height: 260px; 
    background: linear-gradient(135deg, rgba(199,161,68,0.18), rgba(255,255,255,0.7));
    box-shadow: var(--shadow);
    overflow: hidden;            /* hide overflow for image crop */
    aspect-ratio: 16 / 9;        /* keep a pleasant media ratio */
}

/* Ensure about image fills container without distortion */
.about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founders h3 { margin-bottom: 6px; }
.founders p { margin-top: 0; color: var(--muted); }

/* Services */
.services .cards { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px;
    margin: 40px 0;
}
.card { 
    border: 1px solid var(--line); 
    border-radius: var(--radius); 
    padding: 20px; 
    background: #fff; 
    box-shadow: var(--shadow);
    font-size: 0.95em;
}
.card h3 { margin-top: 0; font-size: 22px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 1.1em; line-height: 1.55; }
/* Hover animation */
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(17,17,17,0.08); }

/* Team / Ansprechpartner */
.team-section {
    margin: 0.5cm 0;
}

.team-cards { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.5cm;
    margin: 0.5cm 0;
}
/* Variant: three cards per row */
.team-cards.three { grid-template-columns: repeat(3, minmax(300px, 1fr)); justify-content: center; gap: 22px; }
/* Hidden spacer to center the last row */
.team-cards .spacer { visibility: hidden; }
/* Variant: four cards per row */
.team-cards.four { grid-template-columns: repeat(4, 1fr); }
/* Variant: two cards centered */
.team-cards.two.center { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
    justify-content: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* Address section with image */
.address-section {
    margin: 0.5cm 0;
}

.address-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.address-image {
    flex: 0 0 80px;
}

.address-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.address-text {
    flex: 1;
}

.address-text h2 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
}

.address-text p {
    margin: 0 0 8px 0;
    line-height: 1.4;
    font-size: 0.95em;
}

/* Dedicated centered row for two members (Sven & Julian) */
.team-row.center {
  grid-column: 1 / -1;            /* span across all columns of parent grid */
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  justify-content: center;        /* center the 2 columns */
  gap: 18px;                      /* same gap as parent */
}

@media (max-width: 900px) {
  .team-row.center { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .team-cards.three { grid-template-columns: repeat(2, 1fr); }
  .team-cards.four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .team-cards, .team-cards.three { grid-template-columns: 1fr; }
  .team-cards.four { grid-template-columns: 1fr; }
}
/* Text with Image Layout */
.text-with-image {
  display: flex;
  align-items: center;
  gap: 50px;
  margin: 30px 0 40px;
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.text-content {
  flex: 1;
  text-align: left;
}

.text-content p {
  margin: 0;
  line-height: 1.8;
  color: #444;
  font-size: 1.1rem;
  text-align: justify;
  position: relative;
  padding-left: 20px;
  border-left: 4px solid #c7a144;
}

.text-content p::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, #c7a144, #e8c97e);
  border-radius: 2px;
}

.content-image {
  width: 350px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.content-image:hover {
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .text-with-image {
    flex-direction: column;
    text-align: center;
    padding: 25px;
  }
  
  .text-content p {
    padding-left: 15px;
    text-align: left;
  }
  
  .content-image {
    width: 100%;
    max-width: 400px;
    margin: 25px auto 0;
  }
}

/* Section Title with Image */
.section-title-container {
  margin-bottom: 30px;
}

.title-with-side-image {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.title-with-side-image h2 {
  margin: 0;
  color: #333;
  flex-grow: 1;
}

.title-text {
  flex: 1;
}

.intro-text {
  color: #333;
  font-size: 1.2rem;
  margin: 30px 0 30px 0;
  padding: 15px 20px;
  line-height: 1.5;
  max-width: 800px;
  font-weight: 500;
  background-color: #e6f2ff;
  border-radius: 4px;
  border-left: 4px solid #4d94ff;
}

.title-with-side-image h2 {
  margin: 0;
  color: #333;
}

.side-image {
  width: 150px;
  height: auto;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

/* Warranty section spacing */
.warranty-section {
    margin-top: 0.5cm;
}

.warranty-details h4 {
    margin: 0.5cm 0 0.3cm 0;
}

.warranty-details ul {
    margin: 0 0 0.5cm 0;
    padding-left: 1.2em;
}

.warranty-details li {
    margin-bottom: 0.2cm;
}

.warranty-disclaimer {
    margin-top: 0.5cm;
    font-size: 0.9em;
    color: #666;
}

/* Keep the original style for other pages */
.section-title-with-image {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding-left: 90px;
  min-height: 80px;
  background-image: url('bearbeitetebilder/ansprechpartner.jpg');
  background-size: 80px 80px;
  background-repeat: no-repeat;
  background-position: left center;
  border: 2px solid #c7a144;
  padding: 10px 20px 10px 90px;
  border-radius: 4px;
}

/* Team Section */
.team-photo {
    margin: 20px 0 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.team-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Profile Cards */
.profile-card { 
    display: grid; 
    grid-template-columns: 200px 1fr;
    gap: 20px; 
    align-items: center; 
    border: 1px solid var(--line); 
    border-radius: var(--radius); 
    background: #fff; 
    box-shadow: var(--shadow); 
    padding: 16px;
    transition: transform .25s ease, box-shadow .25s ease; 
    overflow: hidden;
}

.profile-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(17,17,17,0.08); 
}

.profile-card { 
    display: grid; 
    grid-template-columns: 220px 1fr;
    gap: 24px; 
    align-items: start;
    padding: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-card img { 
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-card > div {
    padding-right: 16px;
}

.profile-card p {
    line-height: 1.5;
    color: #444;
    margin: 8px 0;
}

.profile-card h3 {
    margin: 0 0 8px 0;
    color: #222;
    font-size: 1.2em;
}

.profile-meta {
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .profile-card { 
        grid-template-columns: 1fr;
        text-align: center;
        padding: 16px 12px;
    }
    
    .profile-card img { 
        max-width: 200px;
        margin: 0 auto 12px;
    }
    
    .profile-card > div {
        padding: 0 8px;
    }
    
    .profile-actions {
        justify-content: center;
        margin-top: 12px;
    }
}

.profile-card h3 { 
    margin: 0 0 6px; 
    color: var(--black);
}
/* Ensure long words/addresses wrap inside the card */
.profile-card p, .profile-card .contact-inline, .profile-card h3 { word-break: break-word; overflow-wrap: anywhere; hyphens: auto; }

.profile-meta {
    color: var(--muted);
    font-size: 0.9em;
    margin-bottom: 10px;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
/* Inline contact details under buttons */
.contact-inline {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9em;
}
.contact-inline a { text-decoration: underline; }
.profile-meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.profile-actions { display:flex; gap:10px; flex-wrap:wrap; }
.icon { width: 18px; height: 18px; display:inline-block; }
.social { display:flex; gap:10px; }
.social a { width: 28px; height: 28px; border-radius: 999px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--line); color: var(--black); }
.social a:hover { border-color: var(--gold); color:#fff; background:var(--gold); }

/* Contact */
.contact-list { padding-left: 0; list-style: none; margin: 0 0 16px; }
.map-embed iframe { width: 100%; height: 220px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

.contact-form { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; box-shadow: var(--shadow); }
.form-field { display: grid; gap: 6px; margin-bottom: 12px; }
.form-field input, .form-field textarea {
    width: 100%; padding: 12px 12px; border-radius: 10px; border: 1px solid var(--line);
    outline: none; font: inherit; background: #fff;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,161,68,0.18); }
.error { color: #b00020; font-size: 12px; min-height: 16px; }
.form-note { color: var(--muted); font-size: 12px; }
.form-status { margin-top: 10px; font-weight: 600; }

/* Fahrzeugportal */
.vehicle-filter { border:1px solid var(--line); border-radius: var(--radius); padding: 12px; background:#fff; box-shadow: var(--shadow); display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.vehicle-filter input, .vehicle-filter select { padding: 10px; border-radius: 8px; border:1px solid var(--line); font: inherit; }
.vehicle-list { display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vehicle { border:1px solid var(--line); border-radius: var(--radius); padding: 12px; background:#fff; box-shadow: var(--shadow); }
.vehicle .v-head { display:flex; justify-content: space-between; align-items:center; margin-bottom: 8px; }
.badge { display:inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; border:1px solid var(--line); }
.badge.gold { background: rgba(199,161,68,0.12); border-color: var(--gold); color: var(--black); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 32px; background: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.2fr auto auto; align-items: center; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 24px; }
.footer-brand .logo-img { height: 80px; width: auto; }
.footer-copy { color: var(--muted); text-align: right; }

/* Utilities */
h1,h2,h3 { color: var(--black); }
h2 { margin: 0 0 10px; font-size: 26px; }
section p { margin: 0 0 12px; }

/* Visually hidden utility (for a11y labels) */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Responsive */
@media (max-width: 1400px) {
    .services .cards { 
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .grid.two-col { grid-template-columns: 1fr; }
    .services .cards { 
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin: 30px 0;
    }
    .brands { grid-template-columns: 1fr 1fr 1fr; }
    .vehicle-list { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-copy { text-align: center; }
}

@media (max-width: 980px) {
    .services .cards { 
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 680px) {
    .services .cards {
        grid-template-columns: 1fr;
    }
    /* Mobile header layout */
    .header-inner { 
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Language switcher on mobile */
    .lang-switch {
        position: absolute;
        right: 50px; /* Space for menu button */
        top: 14px;
        z-index: 1001;
        margin: 0;
    }
    
    /* Menu button */
    .nav-toggle { 
        display: inline-block; 
        position: relative;
        right: 0;
        top: 0;
        z-index: 1001;
        margin: 0;
    }
    
    /* Navigation menu */
    .nav-list { 
        position: absolute; 
        right: 4%; 
        top: 60px; 
        background: #fff; 
        border: 1px solid var(--line); 
        border-radius: 10px; 
        padding: 10px 14px; 
        box-shadow: var(--shadow); 
        display: none; 
        flex-direction: column; 
        gap: 10px; 
        z-index: 1000;
        width: auto;
        min-width: 200px;
    }
    
    /* Adjust brand to take remaining space */
    .brand {
        flex: 1;
        min-width: 0;
    }
    
    .brand-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-list.open { display: flex; }
    .services .cards { 
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 25px 0;
    }
    .vehicle-filter { grid-template-columns: 1fr 1fr; }
    .vehicle-list { grid-template-columns: 1fr; }
    
    /* Stack all profile cards vertically on mobile */
    .team-cards.two, 
    .team-cards.three {
        display: flex;
        flex-direction: column;
        gap: 0.5cm;
        width: 100%;
        margin: 0.5cm 0;
        padding: 0 0.5cm;
    }
    
    .profile-card {
        width: 100% !important;
        margin: 0 0 20px !important;
        display: flex;
        flex-direction: column;
    }
    }
    
    .profile-card img {
        width: 100% !important;
        height: auto !important;
        max-width: 300px !important;
        margin: 0 auto;
    }
}

