/* ===== CSS Custom Properties ===== */
:root {
    --color-primary: #F15A24;
    --color-primary-dark: #d94d1a;
    --color-secondary: #333333;
    --color-text: #444444;
    --color-text-light: #666666;
    --color-background: #ffffff;
    --color-background-alt: #f8f9fa;
    --color-border: #e0e0e0;
    --color-success: #28a745;
    --color-error: #dc3545;

    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Kimberley', 'Open Sans', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;

    --max-width: 1200px;
    --header-height: 80px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    --transition: 0.3s ease;
    --border-radius: 8px;
}

/* ===== Font Faces ===== */
@font-face {
    font-family: 'Kimberley';
    src: url('assets/fonts/kimberley-bl.woff2') format('woff2'),
         url('assets/fonts/kimberley-bl.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('assets/fonts/OpenSans-Regular.woff2') format('woff2'),
         url('assets/fonts/OpenSans-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

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

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

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

/* ===== Utility Classes ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section--alt {
    background-color: var(--color-background-alt);
}

.section__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.section__title--center {
    text-align: center;
}

.section__subtitle {
    color: var(--color-text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
}

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

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

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

.btn--secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

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

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

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-background);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

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

.nav__logo img {
    height: 50px;
    width: auto;
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav__toggle-bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-background);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.nav__menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

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

.nav__link {
    display: block;
    padding: var(--spacing-xs) 0;
    color: var(--color-secondary);
    font-weight: 500;
    transition: color var(--transition);
}

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

.nav__link--cta {
    display: inline-block;
    margin-top: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--border-radius);
}

.nav__link--cta:hover {
    background-color: var(--color-primary-dark);
    color: white;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1a1a1a 100%);
    padding-top: var(--header-height);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: url('assets/images/living_room.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero__content {
    position: relative;
    text-align: center;
    color: white;
    padding: var(--spacing-lg);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    text-wrap: balance;
}

.hero__subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

/* ===== About Section ===== */
.about__grid {
    display: grid;
    gap: var(--spacing-lg);
}

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

.about__image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

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

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

/* ===== Services Section ===== */
.services__grid {
    display: grid;
    gap: var(--spacing-md);
}

.service-card {
    background-color: var(--color-background);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-sm);
    color: var(--color-primary);
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.service-card__description {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.services__note {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--border-radius);
    text-align: center;
}

.services__note p {
    margin: 0;
}

/* ===== Why Choose Us Section ===== */
.why-us__grid {
    display: grid;
    gap: var(--spacing-md);
}

.feature {
    text-align: center;
    padding: var(--spacing-md);
}

.feature__icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--spacing-sm);
    color: var(--color-primary);
}

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

.feature__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.feature__description {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* ===== History/Timeline Section ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-primary);
}

.timeline__item {
    position: relative;
    padding-left: 60px;
    padding-bottom: var(--spacing-lg);
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.timeline__content h3 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
}

.timeline__content p {
    color: var(--color-text-light);
}

/* ===== Gallery Section ===== */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.gallery__item {
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.gallery__item--large {
    grid-column: span 2;
}

/* ===== Contact Section ===== */
.contact__wrapper {
    max-width: 700px;
    margin: 0 auto;
}

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

.form__group {
    display: flex;
    flex-direction: column;
}

.form__label {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-secondary);
}

.form__input {
    padding: 0.875rem var(--spacing-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    background-color: var(--color-background);
}

.form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.1);
}

.form__input::placeholder {
    color: var(--color-text-light);
}

.form__select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

.form__message {
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
}

.form__message--success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.form__message--error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--color-error);
    border: 1px solid var(--color-error);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-secondary);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer__logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--spacing-sm);
}

.footer__tagline {
    opacity: 0.8;
    font-size: 0.9375rem;
}

.footer__links h4,
.footer__services h4 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.footer__links li,
.footer__services li {
    margin-bottom: var(--spacing-xs);
}

.footer__links a {
    color: white;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.footer__links a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.footer__services li {
    opacity: 0.8;
}

.footer__bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ===== Responsive Styles ===== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .section {
        padding: var(--spacing-xxl) 0;
    }

    .section__title {
        font-size: 2.5rem;
    }

    /* Navigation */
    .nav__toggle {
        display: none;
    }

    .nav__menu {
        position: static;
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        padding: 0;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        background-color: transparent;
    }

    .nav__item {
        margin-bottom: 0;
    }

    /* Hero */
    .hero__title {
        font-size: 3.5rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    .hero__buttons {
        flex-direction: row;
        justify-content: center;
    }

    /* About */
    .about__grid {
        grid-template-columns: 1fr 1.5fr;
        align-items: center;
        gap: var(--spacing-xl);
    }

    /* Services */
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Why Us */
    .why-us__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .gallery__item--large {
        grid-column: span 2;
    }

    /* Contact Form */
    .contact__form {
        grid-template-columns: repeat(2, 1fr);
    }

    .form__group--full {
        grid-column: span 2;
    }

    /* Footer */
    .footer__content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .section__title {
        font-size: 3rem;
    }

    /* Hero */
    .hero__title {
        font-size: 4rem;
    }

    /* Services */
    .services__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Why Us */
    .why-us__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Timeline */
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline__item {
        width: 50%;
        padding-left: 0;
        padding-right: 40px;
    }

    .timeline__item:nth-child(even) {
        margin-left: 50%;
        padding-left: 40px;
        padding-right: 0;
    }

    .timeline__marker {
        left: auto;
        right: -21px;
    }

    .timeline__item:nth-child(even) .timeline__marker {
        left: -21px;
        right: auto;
    }

    .timeline__item:nth-child(odd) .timeline__content {
        text-align: right;
    }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .hero__title {
        font-size: 4.5rem;
    }
}

/* ===== 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;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip to main content (screen reader) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
