/* ================================================
   SMITHS DRYLINING - Professional Website Styles
   Brand Colors: Red #D42B2B, Dark Red #7A1A1A, Grey #6B6B6B, Light Grey #C0C0C0
   ================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #D42B2B;
    --red-dark: #A81E1E;
    --red-deeper: #7A1A1A;
    --grey-dark: #2D2D2D;
    --grey: #6B6B6B;
    --grey-medium: #999;
    --grey-light: #E8E8E8;
    --grey-lighter: #F5F5F5;
    --white: #FFFFFF;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--grey-dark);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Headers --- */
.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--grey-dark);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--grey);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header__logo {
    height: 100px;
    width: auto;
    margin: 0 auto 20px;
    display: block;
    opacity: 0.15;
}

.section-header__logo--light {
    filter: brightness(0) invert(1);
    opacity: 0.12;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.btn--primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn--primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 43, 43, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn--outline:hover {
    background: var(--white);
    color: var(--grey-dark);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* ================================================
   HEADER / NAVIGATION
   ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition);
}

.header--scrolled {
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.nav__logo-img {
    height: 75px;
    width: auto;
}

.nav__menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav__link {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--grey-dark);
    border-radius: 6px;
    transition: all var(--transition);
}

.nav__link:hover {
    color: var(--red);
    background: rgba(212, 43, 43, 0.05);
}

.nav__link--cta {
    background: var(--red);
    color: var(--white) !important;
    padding: 10px 24px;
    margin-left: 8px;
}

.nav__link--cta:hover {
    background: var(--red-dark) !important;
}

/* Hidden checkbox for CSS-only hamburger */
.nav__checkbox {
    display: none;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav__toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--grey-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ================================================
   HERO
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--grey-dark) 0%, #1a1a2e 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.7) 0%, rgba(26, 26, 46, 0.65) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.hero__logo {
    height: 90px;
    width: auto;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero__title br {
    display: block;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    max-width: 560px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero__badges {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.hero__badge {
    text-align: center;
}

.hero__badge-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}

.hero__badge-text {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
    font-weight: 400;
}

/* ================================================
   ABOUT
   ================================================ */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__text {
    font-size: 1.05rem;
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about__stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

.about__stat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.about__stat-icon {
    width: 36px;
    height: 36px;
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

.about__stat strong {
    display: block;
    font-size: 1rem;
    color: var(--grey-dark);
}

.about__stat span {
    font-size: 0.85rem;
    color: var(--grey-medium);
}

/* About Accreditations */
.about__accreditations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
    margin-bottom: 8px;
}

.about__accreditation {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--grey-lighter);
    border-radius: var(--radius);
    border-left: 3px solid var(--red);
}

.about__accreditation svg {
    width: 20px;
    height: 20px;
    color: var(--red);
    flex-shrink: 0;
}

.about__accreditation span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-dark);
}

.about__images {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ================================================
   OUR MISSION
   ================================================ */
.mission {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mission__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.mission__inner .section-label {
    margin-bottom: 20px;
}

.mission__text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--grey);
    font-weight: 400;
}

/* ================================================
   WHY CHOOSE US
   ================================================ */
.why-us {
    padding: 100px 0;
    background: var(--grey-dark);
    position: relative;
    overflow: hidden;
}

.why-us .section-label {
    color: var(--red);
}

.why-us .section-title {
    color: #fff;
}

.why-us .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.why-us__card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.why-us__card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 43, 43, 0.4);
}

.why-us__icon {
    width: 64px;
    height: 64px;
    background: rgba(212, 43, 43, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: background 0.3s ease;
}

.why-us__card:hover .why-us__icon {
    background: rgba(212, 43, 43, 0.25);
}

.why-us__icon svg {
    width: 28px;
    height: 28px;
    color: var(--red);
}

.why-us__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.why-us__text {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ================================================
   SERVICES
   ================================================ */
.services {
    padding: 100px 0;
    background: var(--grey-lighter);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.services__grid .service-card {
    grid-column: span 2;
}

/* Centre the trailing row of two cards */
.services__grid .service-card:nth-last-child(2) {
    grid-column: 2 / span 2;
}

.services__grid .service-card:last-child {
    grid-column: 4 / span 2;
}

.service-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 43, 43, 0.15);
}

.service-card__icon {
    width: 52px;
    height: 52px;
    background: rgba(212, 43, 43, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card__icon svg {
    width: 26px;
    height: 26px;
    color: var(--red);
}

.service-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--grey-dark);
}

.service-card__text {
    font-size: 0.95rem;
    color: var(--grey);
    line-height: 1.7;
}

/* ================================================
   PROJECTS
   ================================================ */
.projects {
    padding: 100px 0;
    background: var(--white);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
    transition: all var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-card__image-wrapper {
    position: relative;
    overflow: hidden;
    height: 260px;
}

/* Project Slider */
.project-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-slider__track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
    overflow: hidden;
    scrollbar-width: none;
}

.project-slider__track::-webkit-scrollbar {
    display: none;
}

.project-slider__img {
    display: block;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.project-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition), background var(--transition);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.project-card:hover .project-slider__btn {
    opacity: 1;
}

.project-slider__btn:hover {
    background: var(--red);
}

.project-slider__btn--prev {
    left: 10px;
}

.project-slider__btn--next {
    right: 10px;
}

.project-slider__dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.project-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}

.project-slider__dot--active {
    background: var(--white);
    transform: scale(1.3);
}

.project-card__year {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--red);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-card__content {
    padding: 28px;
}

.project-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.project-card__location {
    font-size: 0.9rem;
    color: var(--red);
    font-weight: 500;
    margin-bottom: 12px;
}

.project-card__desc {
    font-size: 0.95rem;
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    background: var(--grey-lighter);
    color: var(--grey);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 20px;
}

/* ================================================
   GALLERY
   ================================================ */
.gallery {
    padding: 100px 0;
    background: var(--grey-lighter);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery__item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.gallery__item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery__item:hover img {
    transform: scale(1.08);
}

.gallery__item--hidden {
    display: none;
}

.gallery__more-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* ================================================
   COVERAGE MAP
   ================================================ */
.coverage {
    padding: 100px 0;
    background: var(--white);
}

.coverage__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.coverage__text {
    font-size: 1.05rem;
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 32px;
}

.coverage__list {
    list-style: none;
}

.coverage__list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--grey-dark);
    border-bottom: 1px solid var(--grey-light);
}

.coverage__list-item:last-child {
    border-bottom: none;
}

.coverage__list-item svg {
    width: 22px;
    height: 22px;
    color: var(--red);
    flex-shrink: 0;
}

.coverage__map {
    background: var(--grey-lighter);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.coverage__map-svg {
    width: 100%;
    height: auto;
}

.county {
    fill: rgba(212, 43, 43, 0.12);
    stroke: var(--red);
    stroke-width: 1.5;
    transition: all var(--transition);
    cursor: pointer;
}

.county:hover {
    fill: rgba(212, 43, 43, 0.25);
    stroke-width: 2.5;
}

.county-label {
    font-size: 13px;
    font-weight: 600;
    fill: var(--grey-dark);
    text-anchor: middle;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}

.pin-label {
    font-size: 11px;
    font-weight: 700;
    fill: var(--red);
    font-family: 'Inter', sans-serif;
}

.compass-letter {
    font-size: 12px;
    font-weight: 700;
    fill: var(--grey-dark);
    font-family: 'Inter', sans-serif;
}

/* ================================================
   CONTACT
   ================================================ */
.contact {
    padding: 100px 0;
    background: var(--grey-dark);
    color: var(--white);
}

.contact .section-label {
    color: rgba(255, 255, 255, 0.5);
}

.contact .section-title {
    color: var(--white);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact__logo {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.4;
}

.contact__text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 36px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color var(--transition);
}

a.contact__detail:hover {
    color: var(--red);
}

.contact__detail svg {
    width: 22px;
    height: 22px;
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Contact Form */
.contact__form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-dark);
    margin-bottom: 6px;
}

.form-input {
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    border: 1.5px solid var(--grey-light);
    border-radius: var(--radius);
    background: var(--grey-lighter);
    color: var(--grey-dark);
    transition: all var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 43, 43, 0.1);
}

.form-input::placeholder {
    color: var(--grey-medium);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

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

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    height: 65px;
    margin-bottom: 16px;
}

.footer__tagline {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.footer__heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.footer__links ul {
    list-style: none;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--red);
}

.footer__contact p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer__contact a {
    color: var(--red);
}

.footer__contact a:hover {
    color: var(--white);
}

.footer__company-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer__bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox--open {
    opacity: 1;
    visibility: visible;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 2rem;
    padding: 16px;
    transition: all var(--transition);
    z-index: 2001;
}

.lightbox__close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
}

.lightbox__prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    color: var(--red);
}

/* ================================================
   BACK TO TOP
   ================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 900;
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ================================================
   RESPONSIVE - TABLET
   ================================================ */
@media (max-width: 1024px) {
    .projects__grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__grid,
    .coverage__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__images {
        order: -1;
    }

    .about__image img {
        height: 250px;
    }

    .gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================
   RESPONSIVE - MOBILE
   ================================================ */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 110px 32px 40px;
        z-index: 1001;
        gap: 4px;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: right var(--transition);
    }

    .nav__menu--open {
        right: 0;
    }

    .nav__link {
        font-size: 1.05rem;
        padding: 14px 16px;
    }

    .nav__link--cta {
        margin-left: 0;
        margin-top: 24px;
        padding: 10px 20px;
        font-size: 0.9rem;
        text-align: center;
    }

    /* CSS-only hamburger: open menu when checkbox is checked */
    .nav__checkbox:checked ~ .nav__menu {
        right: 0;
    }

    /* Hamburger animation - CSS only (checkbox) */
    .nav__checkbox:checked ~ .nav__toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__checkbox:checked ~ .nav__toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav__checkbox:checked ~ .nav__toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Also support JS-based class toggle */
    .nav__toggle--active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle--active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle--active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__badges {
        gap: 32px;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .why-us__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .why-us__card {
        padding: 28px 24px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .services__grid .service-card,
    .services__grid .service-card:nth-last-child(2),
    .services__grid .service-card:last-child {
        grid-column: auto;
    }

    .contact__form-wrapper {
        padding: 28px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about__accreditations {
        grid-template-columns: 1fr;
    }

    .about__stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        text-align: center;
    }

    /* Mobile carousel: use native scroll-snap (swipe to browse) */
    .project-slider__track {
        overflow-x: scroll !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
    }

    .project-slider__img {
        min-width: 100% !important;
        width: 100% !important;
        max-width: none !important;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    /* Hide JS-dependent buttons and dots on mobile - users swipe instead */
    .project-slider__btn {
        display: none;
    }

    .project-slider__dots {
        display: none;
    }

    /* Larger touch target for hamburger */
    .nav__toggle {
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .hero__badges {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

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

    .hero__badge-text {
        margin-top: 0;
    }
}

/* Mobile nav overlay */
.nav__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition);
}

.nav__overlay--visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
