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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1B232C;
    background-color: #F5F6F8;
    background-image: 
        linear-gradient(90deg, rgba(46,58,70,0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(46,58,70,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #2E3A46;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p {
    font-weight: 400;
    color: #566272;
    margin-bottom: 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 246, 248, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(46, 58, 70, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__logo {
    width: 32px;
    height: 32px;
}

.nav__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2E3A46;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    text-decoration: none;
    color: #566272;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav__link:hover,
.nav__link.active {
    color: #C4703B;
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #C4703B;
    border-radius: 1px;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: #2E3A46;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        background: rgba(245, 246, 248, 0.95);
        backdrop-filter: blur(10px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1002;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
    }
    
    .nav__menu.active {
        transform: translateX(0);
    }
    
    .nav__list {
        flex-direction: column;
        padding: 0;
        margin: 0;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
        width: 100%;
        height: auto;
    }
    
    .nav__link {
        font-size: 1.5rem;
        font-weight: 700;
        padding: 0.75rem 0;
        color: #2E3A46;
        border-bottom: none;
        width: auto;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 1px;
        display: block;
    }
    
    .nav__link:hover,
    .nav__link.active {
        color: #C4703B;
        transform: scale(1.1);
    }
    
    .nav__toggle {
        display: flex;
        z-index: 1003;
        position: relative;
    }
    
    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: #C4703B;
    }
    
    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background: #C4703B;
    }
}

/* Ensure header stays on top */
.header {
    z-index: 1001;
}

.nav {
    position: relative;
    z-index: 1001;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: #C4703B;
    color: white;
}

.btn--primary:hover {
    background: #B8633A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 112, 59, 0.3);
}

.btn--secondary {
    background: transparent;
    color: #C4703B;
    border: 2px solid #C4703B;
}

.btn--secondary:hover {
    background: #C4703B;
    color: white;
}

.btn--outline {
    background: transparent;
    color: #2E3A46;
    border: 2px solid #2E3A46;
}

.btn--outline:hover {
    background: #2E3A46;
    color: white;
}

.btn--large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

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

/* Magnetic Button Effect */
.btn--magnetic {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 58, 70, 0.8) 0%, rgba(46, 58, 70, 0.4) 100%);
}

.hero__content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
}

.hero__title {
    color: white;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.9s forwards;
}

.hero__features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 1.2s forwards;
}

.hero__feature {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    backdrop-filter: blur(10px);
}

/* Pipe Animation */
.pipe-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 2;
}

.pipe-svg {
    width: 100%;
    height: 100%;
}

.pipe-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 0.3s ease-out;
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.section:nth-child(even) {
    background: #FFFFFF;
}

.section__title {
    text-align: center;
    margin-bottom: 1rem;
    color: #2E3A46;
}

.section__subtitle {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #566272;
}

/* Services */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(46, 58, 70, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(46, 58, 70, 0.15);
}

.service-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__content {
    padding: 1.5rem;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #2E3A46;
}

.service-card__description {
    margin-bottom: 1.5rem;
    color: #566272;
}

/* Estimator */
.estimator {
    background: linear-gradient(135deg, #F5F6F8 0%, #E8EBF0 100%);
    position: relative;
}

.estimator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(196,112,59,0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(196,112,59,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.estimator .section__title {
    color: #2E3A46;
}

.estimator .section__subtitle {
    color: #566272;
}

.estimator__content {
    max-width: 600px;
    margin: 0 auto;
}

.estimator__form {
    background: white;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(46, 58, 70, 0.1);
    border: 1px solid rgba(196, 112, 59, 0.1);
    position: relative;
    z-index: 1;
}

.estimator__group {
    margin-bottom: 1.5rem;
}

.estimator__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2E3A46;
}

.estimator__select,
.estimator__slider {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(46, 58, 70, 0.1);
    border-radius: 8px;
    background: #F5F6F8;
    color: #2E3A46;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.estimator__select:focus,
.estimator__slider:focus {
    outline: none;
    border-color: #C4703B;
}

.estimator__select option {
    background: white;
    color: #2E3A46;
}

.estimator__slider {
    height: 40px;
    appearance: none;
    background: #E8EBF0;
    border-radius: 20px;
}

.estimator__slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #C4703B;
    cursor: pointer;
}

.estimator__slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #C4703B;
    cursor: pointer;
    border: none;
}

.estimator__value {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 500;
    color: #C4703B;
}

.estimator__checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: #2E3A46;
}

.estimator__checkbox input {
    display: none;
}

.estimator__checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(46, 58, 70, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.estimator__checkbox input:checked + .estimator__checkmark {
    background: #C4703B;
    border-color: #C4703B;
}

.estimator__checkbox input:checked + .estimator__checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.estimator__result {
    background: linear-gradient(135deg, #C4703B, #B8633A);
    padding: 1.5rem;
    border-radius: 14px;
    text-align: center;
    margin: 2rem 0;
    color: white;
}

.estimator__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.estimator__currency {
    font-size: 1rem;
}

.estimator__range {
    font-size: 1.5rem;
}

.estimator__note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Diagnostic */
.diagnostic__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.diagnostic__benefits {
    list-style: none;
    margin-top: 1.5rem;
}

.diagnostic__benefits li {
    padding: 0.5rem 0;
    color: #566272;
}

/* Portfolio */
.portfolio__filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #2E3A46;
    background: transparent;
    color: #2E3A46;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2E3A46;
    color: white;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio__item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio__item.hidden {
    display: none;
}

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

.portfolio__item:hover img {
    transform: scale(1.1);
}

.portfolio__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio__item:hover .portfolio__overlay {
    transform: translateY(0);
}

.portfolio__overlay h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.portfolio__overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Process */
.process__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process__step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(46, 58, 70, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.process__step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process__step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(46, 58, 70, 0.15);
}

.process__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #C4703B, #B8633A);
    border-radius: 50%;
    color: white;
}

.process__icon svg {
    width: 100%;
    height: 100%;
}

.process__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #2E3A46;
}

.process__description {
    color: #566272;
    margin: 0;
}

/* FAQ */
.faq__search {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.faq__search-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(46, 58, 70, 0.1);
    border-radius: 14px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.faq__search-input:focus {
    outline: none;
    border-color: #C4703B;
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    margin-bottom: 1rem;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(46, 58, 70, 0.1);
    transition: all 0.3s ease;
}

.faq__item.hidden {
    display: none;
}

.faq__question {
    width: 100%;
    padding: 1.5rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2E3A46;
    transition: background-color 0.3s ease;
}

.faq__question:hover {
    background: rgba(196, 112, 59, 0.05);
}

.faq__icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq__item.active .faq__icon {
    transform: rotate(180deg);
}

.faq__answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq__item.active .faq__answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

/* Contact */
.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact__info {
    space-y: 2rem;
}

.contact__item {
    margin-bottom: 2rem;
}

.contact__item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #2E3A46;
}

.contact__phone {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #C4703B;
    text-decoration: none;
    margin-bottom: 1rem;
}

.contact__phone:hover {
    color: #B8633A;
}

/* Maintenance Checklist */
.maintenance-checklist {
    background: white;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(46, 58, 70, 0.1);
}

.checklist {
    margin-top: 1rem;
}

.checklist__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.checklist__item:hover {
    color: #C4703B;
}

.checklist__item input {
    display: none;
}

.checklist__checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #2E3A46;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checklist__item input:checked + .checklist__checkmark {
    background: #C4703B;
    border-color: #C4703B;
}

.checklist__item input:checked + .checklist__checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Form */
.contact__form {
    background: white;
    padding: 2rem;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(46, 58, 70, 0.1);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2E3A46;
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid rgba(46, 58, 70, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: #C4703B;
}

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

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.form__checkbox input {
    display: none;
}

.form__checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #2E3A46;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.form__checkbox input:checked + .form__checkmark {
    background: #C4703B;
    border-color: #C4703B;
}

.form__checkbox input:checked + .form__checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form__checkbox a {
    color: #C4703B;
    text-decoration: none;
}

.form__checkbox a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #2E3A46;
    color: white;
    padding: 3rem 0 1rem;
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.footer__brand-text {
    display: flex;
    flex-direction: column;
}

.footer__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.95rem;
}

.footer__contact {
    text-align: right;
}

.footer__contact h4 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.footer__phone {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #C4703B;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer__phone:hover {
    color: #B8633A;
}

.footer__email {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.footer__hours {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.875rem;
    font-style: italic;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer__column h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.footer__column ul {
    list-style: none;
}

.footer__column li {
    margin-bottom: 0.5rem;
}

.footer__column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer__column a:hover {
    color: #C4703B;
}

.footer__social h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.footer__social-links {
    display: flex;
    gap: 0.75rem;
}

.footer__social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
}

.footer__social-link:hover {
    background: #C4703B;
    color: white;
    transform: translateY(-1px);
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.footer__bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__bottom-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer__bottom-tagline {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    background: white;
    border-radius: 14px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #566272;
    z-index: 1;
}

.modal__close:hover {
    color: #C4703B;
}

.modal__body {
    padding: 2rem;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    text-align: center;
    transition: transform 0.3s ease;
}

.success-message.active {
    transform: translate(-50%, -50%) scale(1);
}

.success-message__icon {
    width: 60px;
    height: 60px;
    color: #10B981;
    margin: 0 auto 1rem;
}

.success-message__content h3 {
    color: #2E3A46;
    margin-bottom: 0.5rem;
}

.success-message__content p {
    color: #566272;
    margin: 0;
}

/* Legal Pages */
.main-content {
    padding-top: 100px;
    min-height: calc(100vh - 200px);
}

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-page__intro {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(196, 112, 59, 0.1);
    border-radius: 14px;
    border-left: 4px solid #C4703B;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(46, 58, 70, 0.1);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: #2E3A46;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    color: #566272;
}

.legal-page__footer {
    text-align: center;
    font-weight: 500;
    color: #C4703B;
    padding: 1.5rem;
    background: rgba(196, 112, 59, 0.05);
    border-radius: 14px;
    margin-top: 3rem;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }
    
    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .contact__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer__main {
        flex-direction: column;
        text-align: left;
    }
    
    .footer__contact {
        text-align: left;
    }
    
    .footer__links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        height: 80vh;
        text-align: center;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__features {
        gap: 1rem;
    }
    
    .hero__feature {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process__steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio__filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .diagnostic__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .estimator__form {
        padding: 1.5rem;
    }
    
    .modal__content {
        width: 95%;
        margin: 1rem;
    }
    
    .footer__main {
        gap: 1.5rem;
    }
    
    .footer__brand {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 0.75rem;
    }
    
    .footer__links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer__bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn--large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        min-width: 0;
    }
    
    .estimator__form {
        padding: 1rem;
    }
    
    .contact__form {
        padding: 1.5rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero__buttons {
        gap: 0.75rem;
    }
    
    .hero__features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .portfolio__filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
    }
}

/* Ensure no horizontal overflow */
.hero,
.section,
.header,
.footer {
    max-width: 100%;
   
}

/* Smooth transitions for all interactive elements */
* {
    transition-property: transform, opacity, background-color, border-color, color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Focus styles for accessibility */
.btn:focus,
.form__input:focus,
.form__select:focus,
.form__textarea:focus,
.nav__link:focus {
    outline: 2px solid #1E6FFF;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero__overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .service-card {
        border: 2px solid #2E3A46;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}