/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #0F172A;
    background-color: #F7FAFF;
}

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

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

ul {
    list-style: none;
}

/* ===== VARIABLES ===== */
:root {
    --color-primary: #0D47A1;
    --color-primary-light: #1565C0;
    --color-background: #F7FAFF;
    --color-text: #0F172A;
    --color-accent: #22C55E;
    --color-white: #ffffff;
    --color-gray-light: #f8fafc;
    --color-gray: #64748b;
    --color-border: #e2e8f0;
    
    --container-width: 1200px;
    --header-height: 70px;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.3s ease;
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius);
    z-index: 1002;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

.section {
    padding: 4rem 0;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

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

.btn--primary:hover,
.btn--primary:focus {
    background-color: #16a34a;
    border-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

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

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--header-height);
}

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

.nav__brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav__menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.nav__menu.show-menu {
    left: 0;
}

.nav__list {
    padding: 2rem 1rem;
}

.nav__item {
    margin-bottom: 1.5rem;
}

.nav__link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    transition: var(--transition);
}

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

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
}

.nav__toggle {
    font-size: 1.25rem;
    color: var(--color-text);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--color-background) 0%, #e0f2fe 100%);
}

.hero__container {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

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

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

/* Hero Illustration */
.hero__illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration {
    position: relative;
    width: 200px;
    height: 200px;
}

.illustration__circle {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.illustration__triangle {
    position: absolute;
    top: 60px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid var(--color-accent);
    animation: float 3s ease-in-out infinite 1s;
}

.illustration__square {
    position: absolute;
    bottom: 30px;
    left: 50px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: var(--radius);
    animation: float 3s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== TRUST BAR ===== */
.trust {
    padding: 2rem 0;
    background-color: var(--color-white);
}

.trust__items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.trust__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray);
}

.trust__item svg {
    color: var(--color-primary);
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--color-background);
}

.services__grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service__card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

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

.service__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service__icon svg {
    color: var(--color-primary);
}

.service__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service__description {
    color: var(--color-gray);
    line-height: 1.6;
}

.services__cta {
    text-align: center;
}

/* ===== WORK SECTION ===== */
.work {
    background-color: var(--color-white);
}

.work__grid {
    display: grid;
    gap: 2rem;
}

.work__card {
    background-color: var(--color-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.work__image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.work__image--1 {
    background-image: url('attached_assets/stock_images/restaurant_interior__ba365823.jpg');
}

.work__image--2 {
    background-image: url('attached_assets/stock_images/professional_law_off_b10a04c9.jpg');
}

.work__image--3 {
    background-image: url('attached_assets/stock_images/home_improvement_con_1c8be413.jpg');
}

.work__image--4 {
    background-image: url('attached_assets/stock_images/modern_retail_store__2ea15975.jpg');
}

.work__content {
    padding: 1.5rem;
}

.work__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.work__description {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.work__link {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
    transition: var(--transition);
}

.work__link:hover {
    color: var(--color-primary-light);
}

/* ===== PRICING SECTION ===== */
.pricing {
    background-color: var(--color-background);
}

.pricing__grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing__card {
    background-color: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

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

.pricing__card--featured {
    border: 2px solid var(--color-accent);
}

.pricing__card--featured::before {
    content: "Most Popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing__header {
    margin-bottom: 2rem;
}

.pricing__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.pricing__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.pricing__currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.pricing__amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-primary);
}

.pricing__period {
    font-size: 1.125rem;
    color: var(--color-gray);
}

.pricing__features {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing__feature {
    padding: 0.5rem 0;
    color: var(--color-text);
    position: relative;
    padding-left: 1.5rem;
}

.pricing__feature::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

.pricing__note {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--color-white);
    border-radius: var(--radius);
}

.pricing__cta {
    text-align: center;
}

/* ===== FAQS SECTION ===== */
.faqs {
    background-color: var(--color-white);
}

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

.faq__item {
    background-color: var(--color-background);
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.faq__question:hover {
    background-color: var(--color-gray-light);
}

.faq__question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.faq__toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.faq__toggle:hover {
    background-color: var(--color-border);
}

.faq__toggle svg {
    transition: transform 0.3s ease;
}

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

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

.faq__item.active .faq__answer {
    max-height: 200px;
}

.faq__answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--color-background);
}

.contact__subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
}

.contact__content {
    display: grid;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact__form {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__group--checkbox {
    margin-bottom: 2rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--color-white);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

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

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

.form__checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.form__checkbox input[type="checkbox"]:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.form__checkbox input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__item {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.contact__item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact__item a {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 2rem 0;
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer__link {
    color: var(--color-white);
    text-decoration: underline;
    margin: 0 0.5rem;
}

.footer__link:hover {
    opacity: 0.8;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    top: 100px;
    right: -400px;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    z-index: 1001;
}

.toast.show {
    right: 1rem;
}

.toast__content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet styles */
@media screen and (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .section__title {
        font-size: 3rem;
    }
    
    /* Navigation */
    .nav__menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
    }
    
    .nav__list {
        display: flex;
        gap: 2rem;
        padding: 0;
    }
    
    .nav__item {
        margin-bottom: 0;
    }
    
    .nav__close,
    .nav__toggle {
        display: none;
    }
    
    /* Hero */
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .hero__title {
        font-size: 3.5rem;
    }
    
    .hero__buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    /* Services */
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Work */
    .work__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Pricing */
    .pricing__grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto 2rem;
    }
    
    /* Contact */
    .contact__content {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
    
    /* Footer */
    .footer__content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

/* Desktop styles */
@media screen and (min-width: 1024px) {
    .section {
        padding: 6rem 0;
    }
    
    .hero__title {
        font-size: 4rem;
    }
    
    .services__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .work__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .trust__items {
        gap: 3rem;
    }
}

/* Focus states for accessibility */
.btn:focus,
.nav__link:focus,
.form__input:focus,
.form__textarea:focus,
.faq__toggle:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

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