/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a2332;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   CSS VARIABLES (Design Tokens)
   ======================================== */

:root {
    /* Colors */
    --color-primary: #0b1f3a;
    --color-primary-light: #1a3454;
    --color-accent: #e67e22;
    --color-accent-dark: #d35400;
    
    --color-text: #1a2332;
    --color-text-light: #4a5568;
    --color-text-muted: #718096;
    
    --color-bg-light: #f8f9fb;
    --color-bg-muted: #f1f3f6;
    --color-white: #ffffff;
    
    --color-border: #e2e8f0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    --font-size-4xl: 40px;
    --font-size-5xl: 48px;
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-loose: 1.8;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;
    --spacing-4xl: 128px;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ========================================
   UTILITIES
   ======================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

.section__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.section__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

@media (min-width: 768px) {
    .section__title {
        font-size: var(--font-size-4xl);
    }
}

@media (min-width: 992px) {
    .section__title {
        font-size: var(--font-size-5xl);
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 14px 28px;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn--primary:hover,
.btn--primary:focus {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--secondary:hover,
.btn--secondary:focus {
    background-color: var(--color-primary);
    color: var(--color-white);
}

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

.btn--outline:hover,
.btn--outline:focus {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn--text {
    padding: 0;
    color: var(--color-accent);
    font-weight: var(--font-weight-semibold);
    background: none;
    border: none;
}

.btn--text:hover,
.btn--text:focus {
    color: var(--color-accent-dark);
    transform: translateX(4px);
}

.btn--large {
    padding: 18px 36px;
    font-size: var(--font-size-lg);
}

.btn--small {
    padding: 10px 20px;
    font-size: 14px;
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* ========================================
   QUOTE POPUP
   ======================================== */

.quote-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.quote-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.quote-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 58, 0.85);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.quote-popup__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-base);
}

.quote-popup.is-open .quote-popup__container {
    transform: scale(1) translateY(0);
}

.quote-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
}

.quote-popup__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.quote-popup__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quote-popup__close:hover,
.quote-popup__close:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.quote-popup__content {
    padding: var(--spacing-lg);
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.quote-popup__subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

/* Quote Form */
.quote-form {
    display: grid;
    gap: var(--spacing-lg);
}

.quote-form__row {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 576px) {
    .quote-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.quote-form__group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.quote-form__group--full {
    grid-column: 1 / -1;
}

.quote-form__group--checkbox {
    grid-column: 1 / -1;
}

.quote-form__label {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.quote-form__input,
.quote-form__select,
.quote-form__textarea {
    padding: 14px 16px;
    font-size: var(--font-size-base);
    font-family: inherit;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.quote-form__input:focus,
.quote-form__select:focus,
.quote-form__textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.quote-form__input.is-invalid,
.quote-form__select.is-invalid,
.quote-form__textarea.is-invalid {
    border-color: #e74c3c;
}

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

.quote-form__select {
    cursor: pointer;
}

.quote-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-size: 14px;
    line-height: var(--line-height-normal);
}

.quote-form__checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.quote-form__checkbox-text {
    color: var(--color-text-light);
}

.quote-form__error {
    display: none;
    font-size: 14px;
    color: #e74c3c;
    margin-top: 4px;
}

.quote-form__error.is-visible {
    display: block;
}

.quote-form__submit {
    margin-top: var(--spacing-md);
    justify-self: center;
    min-width: 200px;
}

/* Quote Success */
.quote-popup__success {
    display: none;
    text-align: center;
    padding: var(--spacing-xl);
}

.quote-popup__success.is-visible {
    display: block;
}

.quote-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 50%;
    color: var(--color-white);
}

.quote-success__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.quote-success__text {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: var(--line-height-loose);
    margin-bottom: var(--spacing-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .quote-popup {
        padding: var(--spacing-sm);
        align-items: flex-start;
        padding-top: var(--spacing-lg);
    }
    
    .quote-popup__container {
        max-height: 95vh;
    }
    
    .quote-popup__header {
        padding: var(--spacing-md);
    }
    
    .quote-popup__title {
        font-size: var(--font-size-lg);
    }
    
    .quote-popup__content {
        padding: var(--spacing-md);
        max-height: calc(95vh - 100px);
    }
    
    .quote-form__row {
        grid-template-columns: 1fr;
    }
}

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.header__logo {
    flex-shrink: 0;
}

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

.logo__image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo__text {
    font-size: 24px;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.logo__accent {
    color: var(--color-accent);
}

.header__nav {
    display: none;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav__link {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link:focus {
    color: var(--color-accent);
}

.nav__link:hover::after,
.nav__link:focus::after {
    width: 100%;
}

.nav__link--active {
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
}

.nav__link--active::after {
    width: 100%;
}

/* Mobile Menu */
.header__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
    z-index: 1001;
}

.burger__line {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition-base);
}

.header__burger[aria-expanded="true"] .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger[aria-expanded="true"] .burger__line:nth-child(2) {
    opacity: 0;
}

.header__burger[aria-expanded="true"] .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - var(--header-height));
        min-height: calc(100vh - var(--header-height));
        background-color: rgba(255, 255, 255, 1);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-xl) var(--spacing-md);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: 999;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        opacity: 1;
    }
    
    .header__nav.is-open {
        display: flex;
        transform: translateX(0);
    }
    
    .nav__list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav__item {
        width: 100%;
        text-align: center;
    }
    
    .nav__link {
        display: block;
        padding: var(--spacing-sm) 0;
        font-size: var(--font-size-lg);
        color: var(--color-text);
        font-weight: var(--font-weight-medium);
    }
    
    .nav__cta {
        margin-top: var(--spacing-md);
        width: 100%;
        background-color: var(--color-accent);
        color: var(--color-white);
    }
}

@media (min-width: 992px) {
    .header__nav {
        display: flex;
    }
    
    .header__burger {
        display: none;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    padding-top: calc(var(--header-height) + var(--spacing-2xl));
    padding-bottom: var(--spacing-2xl);
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
    overflow: hidden;
}

.hero__container {
    display: grid;
    gap: var(--spacing-md);
    align-items: center;
}

.hero__content {
    max-width: 600px;
}

.hero__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    opacity: 1;
}

.hero__text {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    line-height: var(--line-height-loose);
    margin-bottom: var(--spacing-lg);
    opacity: 1;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    opacity: 1;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

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

.hero__image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 1;
}

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

@media (max-width: 576px) {
    .hero__container {
        gap: var(--spacing-sm);
    }
}

@media (min-width: 768px) {
    .hero__container {
        gap: var(--spacing-lg);
    }
    
    .hero__title {
        font-size: var(--font-size-4xl);
    }
}

@media (min-width: 992px) {
    .hero {
        padding-top: calc(var(--header-height) + var(--spacing-xl));
        padding-bottom: var(--spacing-xl);
    }
    
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
    
    .hero__title {
        font-size: var(--font-size-5xl);
    }
}


/* ========================================
   TRUSTED PARTNERS SECTION
   ======================================== */

.trusted {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-bg-light);
}

.trusted .section__title {
    margin-bottom: var(--spacing-2xl);
}

.trusted__grid {
    display: grid;
    gap: var(--spacing-xl);
    align-items: center;
}

.trusted__company {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.trusted__description p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
    line-height: var(--line-height-loose);
    font-size: var(--font-size-lg);
}

.trusted__description p:last-child {
    margin-bottom: 0;
}

.trusted__link {
    color: var(--color-accent);
    font-weight: var(--font-weight-semibold);
    text-decoration: underline;
}

.trusted__link:hover {
    color: var(--color-accent-dark);
}

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

.trusted__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.trusted__image:hover img {
    transform: scale(1.02);
}

@media (min-width: 992px) {
    .trusted__grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--spacing-2xl);
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.about__container {
    display: grid;
    gap: var(--spacing-xl);
    align-items: center;
}

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

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

.about__content {
    opacity: 1;
}

.about__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.about__text {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-loose);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.about__list {
    display: grid;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.about__item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}

.about__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

@media (min-width: 768px) {
    .about__title {
        font-size: var(--font-size-4xl);
    }
}

@media (min-width: 992px) {
    .about__container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
}

/* ========================================
   OFFER SECTION
   ======================================== */

.offer {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-bg-light);
}

.offer__grid {
    display: grid;
    gap: var(--spacing-lg);
}

.offer__card {
    opacity: 1;
}

@media (min-width: 576px) {
    .offer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .offer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   CARD COMPONENT
   ======================================== */

.card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    min-height: 400px;
    opacity: 1;
    display: flex;
    flex-direction: column;
}

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

.card__image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: var(--color-bg-muted);
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.card__content {
    padding: var(--spacing-md);
}

.card__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.card__text {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-loose);
}

/* ========================================
   WHY US SECTION
   ======================================== */

.why {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-white);
}

.why__grid {
    display: grid;
    gap: var(--spacing-xl);
}

.why__item {
    text-align: center;
}

.why__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.why__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.why__text {
    color: var(--color-text-light);
    line-height: var(--line-height-loose);
}

@media (min-width: 576px) {
    .why__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .why__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-bg-light);
}

.blog__grid {
    display: grid;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.blog__cta {
    text-align: center;
}

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

.blog__cta .btn--outline:hover,
.blog__cta .btn--outline:focus {
    background-color: var(--color-primary);
    color: var(--color-white);
}

@media (min-width: 768px) {
    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .blog__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Post Card */
.post {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    opacity: 1;
}

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

.post__image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--color-bg-muted);
}

.post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post:hover .post__image img {
    transform: scale(1.05);
}

.post__category {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    padding: 6px 12px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-sm);
}

.post__content {
    padding: var(--spacing-md);
}

.post__date {
    display: block;
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
}

.post__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-tight);
}

.post__excerpt {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-loose);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(rgba(11, 31, 58, 0.95), rgba(11, 31, 58, 0.95)),
                url('../images/opinie-klientow.jpg') center/cover no-repeat;
    color: var(--color-white);
    position: relative;
}

.testimonials .section__title {
    color: var(--color-white);
}

.testimonials .section__subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.testimonials__slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonials__track {
    position: relative;
    overflow: hidden;
}

.testimonial {
    display: none;
    padding: var(--spacing-xl);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial.is-active {
    display: block;
}

.testimonial__quote {
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.testimonial__text {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-loose);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
}

.testimonial__author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial__author strong {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
}

.testimonial__author span {
    font-size: var(--font-size-base);
    opacity: 0.8;
}

.testimonials__controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.testimonials__btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-white);
    transition: all var(--transition-base);
}

.testimonials__btn:hover,
.testimonials__btn:focus {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.testimonials__dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.testimonials__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.testimonials__dot.is-active {
    background-color: var(--color-accent);
    transform: scale(1.2);
}

/* ========================================
   CTA / CONTACT SECTION
   ======================================== */

.cta {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
}

.cta__container {
    display: grid;
    gap: var(--spacing-xl);
    align-items: center;
}

.cta__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.cta__text {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-loose);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

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

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

@media (min-width: 768px) {
    .cta__title {
        font-size: var(--font-size-4xl);
    }
}

@media (min-width: 992px) {
    .cta__container {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }
}

/* ========================================
   FORM STYLES
   ======================================== */

.cta__form {
    display: grid;
    gap: var(--spacing-md);
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form__group--full {
    grid-column: 1 / -1;
}

.form__label {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-white);
}

.form__required {
    color: var(--color-accent);
}

.form__input,
.form__textarea {
    padding: 14px 16px;
    font-size: var(--font-size-base);
    font-family: inherit;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.2);
}

.form__input.is-invalid,
.form__textarea.is-invalid {
    border-color: #e74c3c;
}

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

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
}

.form__checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.form__checkbox-label {
    font-size: 14px;
    line-height: 1.5;
}

.form__error {
    display: none;
    font-size: 14px;
    color: #e74c3c;
}

.form__error.is-visible {
    display: block;
}

.form__success {
    display: none;
    padding: var(--spacing-md);
    background-color: rgba(46, 204, 113, 0.2);
    border: 2px solid #2ecc71;
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-weight: var(--font-weight-medium);
    text-align: center;
}

.form__success.is-visible {
    display: block;
}

@media (min-width: 576px) {
    .cta__form {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    background-color: var(--color-primary);
    color: var(--color-white);
}

.footer__main {
    display: grid;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer__logo {
    margin-bottom: var(--spacing-sm);
}

.footer__logo .logo__text {
    color: var(--color-white);
}

.footer__logo .logo__accent {
    color: var(--color-accent);
}

.footer__tagline {
    font-size: var(--font-size-base);
    line-height: var(--line-height-loose);
    opacity: 0.85;
    margin-bottom: var(--spacing-md);
}

.footer__social {
    display: flex;
    gap: var(--spacing-sm);
}

.social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: all var(--transition-base);
}

.social__link:hover,
.social__link:focus {
    background-color: var(--color-accent);
    transform: translateY(-3px);
}

.footer__nav {
    display: grid;
    gap: var(--spacing-xl);
}

.footer__column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xs);
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer__link:hover,
.footer__link:focus {
    color: var(--color-accent);
}

.footer__newsletter-text {
    font-size: 14px;
    line-height: var(--line-height-normal);
    opacity: 0.85;
    margin-bottom: var(--spacing-sm);
}

.footer__newsletter {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer__input {
    padding: 12px 16px;
    font-size: var(--font-size-base);
    font-family: inherit;
    color: var(--color-text);
    background-color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
}

.footer__bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
}

.footer__copyright {
    font-size: 14px;
    opacity: 0.7;
}

.footer__legal {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 14px;
}

.footer__separator {
    opacity: 0.5;
}

@media (min-width: 576px) {
    .footer__nav {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__newsletter {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .footer__main {
        grid-template-columns: 1fr 2fr;
    }
    
    .footer__nav {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero__actions {
        animation: none !important;
        opacity: 1 !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

/* ========================================
   QUOTE POPUP
   ======================================== */

.quote-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.quote-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.quote-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 58, 0.85);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.quote-popup__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-base);
}

.quote-popup.is-open .quote-popup__container {
    transform: scale(1) translateY(0);
}

.quote-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
}

.quote-popup__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.quote-popup__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quote-popup__close:hover,
.quote-popup__close:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.quote-popup__content {
    padding: var(--spacing-lg);
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.quote-popup__subtitle {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

/* Quote Form */
.quote-form {
    display: grid;
    gap: var(--spacing-lg);
}

.quote-form__row {
    display: grid;
    gap: var(--spacing-md);
}

@media (min-width: 576px) {
    .quote-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.quote-form__group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.quote-form__group--full {
    grid-column: 1 / -1;
}

.quote-form__group--checkbox {
    grid-column: 1 / -1;
}

.quote-form__label {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.quote-form__input,
.quote-form__select,
.quote-form__textarea {
    padding: 14px 16px;
    font-size: var(--font-size-base);
    font-family: inherit;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.quote-form__input:focus,
.quote-form__select:focus,
.quote-form__textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.quote-form__input.is-invalid,
.quote-form__select.is-invalid,
.quote-form__textarea.is-invalid {
    border-color: #e74c3c;
}

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

.quote-form__select {
    cursor: pointer;
}

.quote-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-size: 14px;
    line-height: var(--line-height-normal);
}

.quote-form__checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.quote-form__checkbox-text {
    color: var(--color-text-light);
}

.quote-form__error {
    display: none;
    font-size: 14px;
    color: #e74c3c;
    margin-top: 4px;
}

.quote-form__error.is-visible {
    display: block;
}

.quote-form__submit {
    margin-top: var(--spacing-md);
    justify-self: center;
    min-width: 200px;
}

/* Quote Success */
.quote-popup__success {
    display: none;
    text-align: center;
    padding: var(--spacing-xl);
}

.quote-popup__success.is-visible {
    display: block;
}

.quote-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 50%;
    color: var(--color-white);
}

.quote-success__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.quote-success__text {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: var(--line-height-loose);
    margin-bottom: var(--spacing-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .quote-popup {
        padding: var(--spacing-sm);
        align-items: flex-start;
        padding-top: var(--spacing-lg);
    }
    
    .quote-popup__container {
        max-height: 95vh;
    }
    
    .quote-popup__header {
        padding: var(--spacing-md);
    }
    
    .quote-popup__title {
        font-size: var(--font-size-lg);
    }
    
    .quote-popup__content {
        padding: var(--spacing-md);
        max-height: calc(95vh - 100px);
    }
    
    .quote-form__row {
        grid-template-columns: 1fr;
    }
}

/* Prevent body scroll when popup is open */
body.popup-open {
    overflow: hidden;
}


 
 