/* ==========================================================================
   IS Svarvning – stylesheet
   Palette: deep navy + steel grey + brand red accent
   ========================================================================== */

:root {
    --navy: #1d2126;
    --navy-2: #292e34;
    --navy-3: #363c44;
    --accent-color: #c8202f;
    --accent-dark: #a31a27;
    --text-color: #22272d;
    --muted: #646b74;
    --dark-gray: #4d545c;
    --line: #dfe2e6;
    --border-color: #dfe2e6;
    --primary-bg: #ffffff;
    --secondary-bg: #f4f5f6;
    --light-gray: #e7e9ec;
    --shadow-color: rgba(29, 33, 38, 0.12);
    --radius: 12px;
    --font-montserrat: 'Montserrat', sans-serif;
    --font-roboto: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-roboto);
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--primary-bg);
}

img { max-width: 100%; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Language toggle support */
.lang { display: none; }
[lang="sv"] .lang-sv { display: inline; }
[lang="en"] .lang-en { display: inline; }

/* ==========================================================================
   Header
   ========================================================================== */

header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 24px rgba(29, 33, 38, 0.06);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.2px;
    flex-shrink: 0;
}

.logo img { height: 46px; width: auto; display: block; }

/* Navigation */
nav#mainNav { margin-left: auto; }

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

nav ul li { position: relative; }

nav ul li > a {
    display: block;
    padding: 30px 14px;
    color: var(--navy);
    text-decoration: none;
    font-family: var(--font-montserrat);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    position: relative;
    transition: color 0.2s ease;
}

/* animated underline bar */
nav ul li > a::before {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

nav ul li > a:hover { color: var(--accent-color); }
nav ul li > a:hover::before,
nav ul li > a.active::before,
nav ul li.has-dropdown.active > a::before { transform: scaleX(1); }

nav ul li > a.active,
nav ul li.has-dropdown.active > a { color: var(--accent-color); }

nav ul li.has-dropdown > a { padding-right: 30px; }

nav ul li.has-dropdown > a::after {
    content: '';
    position: absolute;
    right: 13px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-top: 3px solid var(--accent-color);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 18px 40px rgba(29, 33, 38, 0.18);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 999;
}

nav ul li.has-dropdown:hover > .dropdown,
nav ul li.has-dropdown:focus-within > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 12px 22px;
    font-size: 0.82rem;
    white-space: nowrap;
    color: var(--navy);
}

.dropdown li a::before { display: none; }
.dropdown li a:hover { background: var(--secondary-bg); color: var(--accent-color); }

.dropdown li a.current-service,
.dropdown li a.current-sub {
    color: var(--accent-color);
    background: rgba(200, 32, 47, 0.07);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

header .quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 6px;
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

header .quote-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }

header .lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 6px;
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 0.78rem;
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

header .lang-toggle:hover { background: var(--navy); color: #fff; }

.mobile-menu-toggle { display: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 15px 34px;
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover { background: var(--navy); transform: translateY(-2px); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    background: var(--navy) url('images/image.png') center/cover no-repeat;
    min-height: 620px;
    height: 82vh;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(20, 23, 27, 0.92) 0%, rgba(20, 23, 27, 0.7) 50%, rgba(20, 23, 27, 0.35) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content > * { max-width: 700px; }

.hero-content::before {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background: var(--accent-color);
    margin-bottom: 28px;
}

.hero h1 {
    font-family: var(--font-montserrat);
    font-size: clamp(2.3rem, 5.2vw, 4.2rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 22px;
    color: #fff;
    animation: fadeInDown 0.9s ease-out;
}

.hero p {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.88);
    animation: fadeInUp 0.9s ease-out 0.25s both;
}

.hero .btn { animation: fadeIn 0.9s ease-out 0.5s both; }

@media (prefers-reduced-motion: reduce) {
    .hero-video { display: none; }
    * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Generic sections
   ========================================================================== */
main > section { padding: 0; }

main > section.container { padding: 80px 20px; }

main > section.container > h2,
section.service-page h2.section-title {
    font-family: var(--font-montserrat);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    text-align: center;
    margin-bottom: 18px;
    color: var(--navy);
    position: relative;
    padding-bottom: 18px;
}

main > section.container > h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    background: var(--accent-color);
}

.section-lead {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 44px;
    color: var(--muted);
    font-size: 1.05rem;
}

/* Highlight */
.highlight { background: var(--secondary-bg); padding: 90px 0; }

.highlight-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.highlight-text h2 {
    font-family: var(--font-montserrat);
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.15;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 22px;
}

.highlight-text p {
    font-size: 1.08rem;
    color: var(--dark-gray);
    margin-bottom: 16px;
}

.highlight-image { position: relative; }

.highlight-image::before {
    content: '';
    position: absolute;
    top: -14px;
    left: -14px;
    width: 55%;
    height: 55%;
    border-top: 4px solid var(--accent-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 10px 0 0 0;
}

.highlight-image img {
    position: relative;
    width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(29, 33, 38, 0.22);
}

@media (max-width: 900px) {
    .highlight-grid { grid-template-columns: 1fr; gap: 40px; }
    .highlight-image { order: -1; }
}

/* ==========================================================================
   "Våra tjänster" – photo cards
   ========================================================================== */
.whatwedo {
    background: var(--navy);
    color: #fff;
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

.whatwedo::before {
    content: '';
    position: absolute;
    right: -140px;
    top: -140px;
    width: 420px;
    height: 420px;
    border: 60px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.whatwedo-head {
    max-width: 760px;
    margin-bottom: 48px;
    position: relative;
}

.whatwedo-head h2 {
    font-family: var(--font-montserrat);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 18px;
    color: #fff;
}

.whatwedo-head h2::before {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--accent-color);
    margin-bottom: 22px;
}

.whatwedo-head p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
}

.service-cards {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative;
}

.service-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: var(--navy-2);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    isolation: isolate;
}

.service-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: -2;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 23, 27, 0.1) 0%, rgba(20, 23, 27, 0.5) 55%, rgba(20, 23, 27, 0.88) 100%);
    z-index: -1;
}

.service-card::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 0;
    background: var(--accent-color);
    transition: width 0.35s ease;
    z-index: 2;
}

.service-card:hover .service-card-bg { transform: scale(1.07); }
.service-card:hover::before { width: 100%; }

.service-card h3 {
    padding: 26px 28px;
    font-family: var(--font-montserrat);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.1vw, 1.75rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

@media (max-width: 960px) {
    .whatwedo { padding: 72px 0; }
    .service-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .service-cards { grid-template-columns: 1fr; }
    .service-card { height: 240px; }
}

/* CTA band */
.cta-band {
    background: var(--accent-color);
    color: #fff;
    padding: 56px 0;
}

.cta-band .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.cta-band h3 {
    font-family: var(--font-montserrat);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 6px;
}

.cta-band p { color: rgba(255, 255, 255, 0.92); }

.cta-band .btn { background: #fff; color: var(--accent-color); }
.cta-band .btn:hover { background: var(--navy); color: #fff; }

/* Map */
.map-frame {
    width: 100%;
    height: 0;
    padding-bottom: 46%;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(29, 33, 38, 0.2);
    border: 1px solid var(--line);
}

.map-frame iframe {
    border: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 700px) { .map-frame { padding-bottom: 75%; } }

/* ==========================================================================
   Service / detail pages
   ========================================================================== */
.service-page { padding: 40px 0 70px; background: #fff; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    font-size: 0.9rem;
    color: var(--muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.breadcrumb a { color: var(--accent-color); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--muted); }

.service-header {
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 70px;
    max-width: 1100px;
}

.service-text {
    flex: 1;
    min-width: 320px;
    max-width: 540px;
    text-align: left;
}

.service-text h1 {
    font-family: var(--font-montserrat);
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    line-height: 1.1;
    margin-bottom: 12px;
    color: var(--navy);
}

.service-text h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-top: 18px;
}

.service-text h2 {
    font-family: var(--font-montserrat);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    margin: 20px 0 16px;
    color: var(--accent-color);
}

.service-text p {
    margin-bottom: 18px;
    color: var(--dark-gray);
    line-height: 1.75;
}

.service-text .btn { margin-top: 10px; }

.service-image { flex: 1; min-width: 320px; max-width: 520px; width: 100%; }

.service-image img {
    width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(29, 33, 38, 0.22);
}

.service-detail { padding: 20px 0 0; background: #fff; }

.detail-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.detail-text { max-width: 560px; }

.detail-text h2 {
    font-family: var(--font-montserrat);
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    margin-bottom: 18px;
    color: var(--navy);
}

.detail-text p { color: var(--dark-gray); line-height: 1.75; margin-bottom: 18px; }

.detail-text ul { list-style: none; padding: 0; margin: 0; }

.detail-text ul li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    color: var(--dark-gray);
}

.detail-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    transform: translateY(-50%) rotate(45deg);
}

.detail-image { border-radius: 10px; overflow: hidden; }

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(29, 33, 38, 0.2);
}

@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .detail-grid > .detail-image { order: 1; }
    .detail-grid > .detail-text { order: 2; }
    .detail-text { max-width: 100%; }
    .service-header { flex-direction: column; }
    .service-header .service-image { order: 1; }
    .service-header .service-text { order: 2; }
    .service-text { text-align: center; max-width: 720px; }
    .service-text h1::after { margin-left: auto; margin-right: auto; }
}

/* Technical info */
.tech-info {
    background: var(--secondary-bg);
    padding: 48px 32px;
    border-radius: var(--radius);
    border-top: 4px solid var(--accent-color);
}

.tech-info h3 {
    font-family: var(--font-montserrat);
    font-size: 1.9rem;
    margin-bottom: 28px;
    color: var(--navy);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.tech-card {
    background: #fff;
    padding: 28px;
    border-radius: 10px;
    border: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(29, 33, 38, 0.06);
}

.tech-card i {
    font-size: 1.6rem;
    color: #fff;
    background: var(--navy);
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 18px;
}

.tech-card h4 {
    font-family: var(--font-montserrat);
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.tech-card p,
.tech-card ul { color: var(--dark-gray); font-size: 1rem; line-height: 1.6; }
.tech-card p { margin-bottom: 14px; }
.tech-card ul { padding-left: 20px; margin: 0; }
.tech-card ul li { margin-bottom: 8px; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(29, 33, 38, 0.12);
    position: relative;
    background: var(--navy);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(29, 33, 38, 0.1) 40%, rgba(29, 33, 38, 0.88) 100%);
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: var(--font-montserrat);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 22px;
    border-bottom: 4px solid var(--accent-color);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-content { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }

.contact-info,
.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    padding: 36px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 34px rgba(29, 33, 38, 0.1);
    border: 1px solid var(--line);
}

.contact-info { flex: 0.7; background: var(--navy); border-color: var(--navy); color: #fff; }
.contact-form-wrapper { flex: 1.3; }

.contact-info h3,
.contact-form-wrapper h3 {
    font-family: var(--font-montserrat);
    font-size: 1.7rem;
    margin-bottom: 24px;
    color: var(--navy);
}

.contact-info h3 { color: #fff; }

.contact-info p {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
}

.contact-info i {
    color: #f91423;
    margin-right: 16px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.form-lead { margin-bottom: 24px; color: var(--muted); }

.contact-form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-montserrat);
    color: var(--navy);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea,
.contact-form input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--font-roboto);
    font-size: 1rem;
    background: var(--secondary-bg);
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(200, 32, 47, 0.14);
}

.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.85rem; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.optional-tag { font-weight: 400; color: var(--muted); font-size: 0.85rem; }

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"],
.contact-form select[aria-invalid="true"] {
    border-color: var(--accent-color);
    background: #fdf2f2;
}

.field-error { display: none; color: var(--accent-color); font-size: 0.88rem; margin-top: 6px; }
.field-error.visible { display: block; }

.form-status { display: none; padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.98rem; }
.form-status.visible { display: block; }
.form-status.success { background: #eaf7ee; border: 1px solid #b9e4c4; color: #1e6b34; }
.form-status.error { background: #fdf2f2; border: 1px solid #f1c2c2; color: #8a1f1f; }

.contact-form.is-submitted { display: none; }

.success-box {
    display: none;
    padding: 32px;
    border-radius: 10px;
    background: #eaf7ee;
    border: 1px solid #b9e4c4;
    color: #1e6b34;
    text-align: center;
}

.success-box.is-visible { display: block; }
.success-box h3 { font-family: var(--font-montserrat); margin-bottom: 8px; color: #1e6b34; }

#fileList { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.file-chip {
    display: inline-flex;
    align-items: center;
    background: var(--secondary-bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.contact-form button[type="submit"] {
    background: var(--accent-color);
    color: #fff;
    padding: 16px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-montserrat);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 100%;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form button[type="submit"]:hover { background: var(--navy); transform: translateY(-1px); }
.contact-form button[type="submit"]:disabled { cursor: not-allowed; opacity: 0.75; transform: none; }

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.contact-form button.is-loading .btn-spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .contact-info, .contact-form-wrapper { padding: 26px 20px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 28px;
    border-top: 5px solid var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 24px;
}

.footer-section h4 {
    font-family: var(--font-montserrat);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-section p i { color: var(--accent-color); margin-right: 10px; width: 16px; text-align: center; }

.footer-section a:hover { color: #fff; }

.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-nav a { font-weight: 500; }

.footer-social { display: flex; gap: 12px; align-items: center; }

.footer-social a {
    width: 44px;
    height: 44px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 1.1rem;
    color: #fff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover { background: var(--accent-color); border-color: var(--accent-color); }

.footer-bottom { text-align: center; font-size: 0.88rem; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 800px) {
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
}

/* ==========================================================================
   Mobile navigation
   ========================================================================== */
@media (max-width: 1020px) {
    .topbar-right { display: none; }

    header .container { min-height: 70px; gap: 12px; }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 6px;
        border: 1.5px solid var(--navy);
        background: #fff;
        color: var(--navy);
        cursor: pointer;
        font-size: 1.15rem;
        margin-left: auto;
        order: 2;
    }

    .header-actions { order: 3; }
    header .quote-btn { display: none; }

    header .lang-toggle { width: 44px; height: 44px; padding: 0; }
    header .lang-toggle .lang-toggle-label { display: none; }

    nav#mainNav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(29, 33, 38, 0.16);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        margin-left: 0;
    }

    header.nav-open nav#mainNav { display: block; }

    nav ul { flex-direction: column; align-items: stretch; gap: 0; }

    nav ul li { border-top: 1px solid var(--line); }
    nav ul li:first-child { border-top: none; }

    nav ul li > a { padding: 16px 20px; }
    nav ul li > a::before { display: none; }
    nav ul li.has-dropdown > a::after { display: none; }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        background: var(--secondary-bg);
        padding: 0;
        display: flex;
    }

    .dropdown li { border-top: 1px solid var(--line); }
    .dropdown li a { padding: 14px 20px 14px 38px; }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
    .container { padding-left: 16px; padding-right: 16px; }
    .logo { font-size: 1.25rem; }
    .logo img { height: 40px; }
    .hero { min-height: 540px; }
    .topbar-left { gap: 14px; font-size: 0.78rem; }
    main > section.container { padding: 56px 16px; }
    .breadcrumb { font-size: 0.85rem; }
    .service-header { gap: 30px; margin-bottom: 44px; }
    .tech-info { padding: 32px 18px; }
    body:not(.page-contact) { overflow-x: hidden; }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
