/* Custom Properties - Terracotta & Sand Palette */
:root {
    --color-terracotta-900: #7c2d12;
    --color-terracotta-800: #9a3412;
    --color-terracotta-700: #c2410c;
    --color-terracotta-600: #ea580c;
    --color-terracotta-500: #f97316;
    --color-terracotta-400: #fb923c;
    --color-terracotta-300: #fdba74;
    --color-terracotta-200: #fed7aa;
    --color-terracotta-100: #ffedd5;
    --color-terracotta-50: #fff7ed;

    --color-sand-900: #44403c;
    --color-sand-800: #57534e;
    --color-sand-700: #78716c;
    --color-sand-600: #a8a29e;
    --color-sand-500: #d6d3d1;
    --color-sand-400: #e7e5e4;
    --color-sand-300: #f5f5f4;
    --color-sand-200: #fafaf9;
    --color-sand-100: #fafaf9;
    --color-sand-50: #fcfaf8;

    --color-white: #ffffff;
    --color-black: #1c1917;

    --font-display: 'DM Serif Display', serif;
    --font-body: 'Outfit', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-sand-900);
    background-color: var(--color-sand-50);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

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

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-terracotta-700);
    color: var(--color-white);
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-sand-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--color-sand-700);
}

/* Section Tag */
.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-terracotta-700);
    margin-bottom: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-terracotta-700);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-terracotta-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-sand-900);
    border: 2px solid var(--color-sand-400);
}

.btn-secondary:hover {
    border-color: var(--color-terracotta-500);
    color: var(--color-terracotta-700);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-terracotta-700);
    border: 2px solid var(--color-terracotta-700);
}

.btn-outline:hover {
    background-color: var(--color-terracotta-700);
    color: var(--color-white);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(252, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-sand-400);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-sand-900);
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-terracotta-500), var(--color-terracotta-700));
    border-radius: var(--radius-sm);
    position: relative;
}

.logo-mark::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background-color: var(--color-white);
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-sand-700);
}

.nav-links a:hover {
    color: var(--color-terracotta-700);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.mobile-menu-btn .bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-sand-900);
    transition: var(--transition);
}

/* Hero */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--color-sand-50) 0%, var(--color-terracotta-50) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-sand-700);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-tag .dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-terracotta-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    margin-bottom: 24px;
}

.hero .highlight {
    color: var(--color-terracotta-700);
    position: relative;
}

.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background-color: var(--color-terracotta-200);
    z-index: -1;
    border-radius: 4px;
}

.hero-sub {
    font-size: 1.125rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--color-sand-700);
}

.trust-item svg {
    color: var(--color-terracotta-600);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(124, 45, 18, 0.2), transparent);
    border-radius: var(--radius-xl);
}

.hero-card {
    position: absolute;
    background-color: var(--color-white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 280px;
}

.hero-card .card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-terracotta-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta-700);
    flex-shrink: 0;
}

.hero-card .card-text {
    display: flex;
    flex-direction: column;
}

.hero-card strong {
    color: var(--color-sand-900);
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.hero-card span {
    font-size: 0.8125rem;
    color: var(--color-sand-600);
}

.card-1 {
    bottom: 40px;
    left: -40px;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 40px;
    right: -30px;
    animation: float 6s ease-in-out infinite reverse;
}

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

/* Services */
.services {
    padding: 100px 0;
    background-color: var(--color-white);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--color-sand-50);
    padding: 36px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-terracotta-200);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-terracotta-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta-700);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--color-terracotta-700);
    color: var(--color-white);
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* About */
.about {
    padding: 100px 0;
    background-color: var(--color-sand-50);
}

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

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--color-terracotta-300), var(--color-terracotta-500));
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.5;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content > p {
    margin-bottom: 16px;
    font-size: 1.0625rem;
}

.about-features {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--color-sand-800);
}

.feature-item svg {
    color: var(--color-terracotta-600);
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-terracotta-800) 0%, var(--color-terracotta-600) 100%);
}

.cta-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--color-terracotta-200);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-primary {
    background-color: var(--color-white);
    color: var(--color-terracotta-700);
}

.cta-actions .btn-primary:hover {
    background-color: var(--color-sand-100);
}

.cta-actions .btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

.cta-actions .btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-terracotta-700);
}

/* Contact */
.contact {
    padding: 100px 0;
    background-color: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info .section-tag {
    margin-bottom: 16px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    margin-bottom: 40px;
    font-size: 1.0625rem;
}

.contact-details {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-terracotta-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta-700);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: var(--color-sand-900);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9375rem;
    margin: 0;
}

.contact-item a {
    color: var(--color-terracotta-700);
}

.contact-item a:hover {
    text-decoration: underline;
}

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

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--color-sand-50);
    padding: 40px;
    border-radius: var(--radius-xl);
}

.contact-form-wrapper h3 {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--color-sand-800);
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--color-sand-400);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-sand-900);
    background-color: var(--color-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-terracotta-500);
    box-shadow: 0 0 0 3px var(--color-terracotta-100);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-sand-600);
}

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

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: var(--color-terracotta-600);
    margin-bottom: 16px;
}

.form-success h4 {
    margin-bottom: 8px;
    color: var(--color-sand-900);
}

.form-success p {
    color: var(--color-sand-700);
}

/* Footer */
.footer {
    background-color: var(--color-sand-900);
    color: var(--color-sand-400);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--color-sand-500);
    font-size: 0.9375rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links ul {
    display: grid;
    gap: 12px;
}

.footer-links a {
    color: var(--color-sand-500);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--color-terracotta-400);
}

.footer-contact p {
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--color-terracotta-400);
}

.footer-contact a:hover {
    color: var(--color-terracotta-300);
}

.footer-bottom {
    border-top: 1px solid var(--color-sand-800);
    padding-top: 24px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-sand-600);
}

/* Mobile Menu */
.nav-links.active {
    display: flex;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-card {
        display: none;
    }

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

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

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

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

    .hero-tag {
        font-size: 0.75rem;
    }

    .services,
    .about,
    .contact {
        padding: 60px 0;
    }

    .cta-section {
        padding: 60px 0;
    }
}

/* Reduced Motion */
@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;
    }
}
