/* ========================================
   Lifetime Systems Sales and Services
   Custom Styles
   ======================================== */

:root {
    --color-terracotta: #C0603A;
    --color-terracotta-dark: #A04E2E;
    --color-terracotta-light: #D4845E;
    --color-sand: #F5F0E8;
    --color-sand-dark: #E8DFD0;
    --color-sand-light: #FAF7F2;
    --color-neutral-dark: #1A1A1A;
    --color-neutral-mid: #3D3D3D;
    --color-neutral-light: #6B6B6B;
    --color-white: #FFFFFF;
    --color-border: #E5DDD3;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-neutral-dark);
    background-color: var(--color-white);
    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;
}

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

/* ========================================
   Typography
   ======================================== */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-terracotta);
    background: rgba(192, 96, 58, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-neutral-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-neutral-light);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 60px;
}

.section-header--center {
    text-align: center;
}

.section-header--center .section-subtitle {
    margin: 0 auto;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

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

.btn-secondary {
    background: var(--color-neutral-dark);
    color: var(--color-white);
    border-color: var(--color-neutral-dark);
}

.btn-secondary:hover {
    background: var(--color-neutral-mid);
    border-color: var(--color-neutral-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--color-terracotta);
    color: var(--color-white);
    transform: translateY(-2px);
}

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

.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-terracotta);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-neutral-dark);
}

.logo-text {
    color: var(--color-neutral-dark);
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-neutral-mid);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-terracotta);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-neutral-dark);
    padding: 8px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--color-sand-light) 0%, var(--color-sand) 50%, var(--color-sand-dark) 100%);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(192, 96, 58, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(192, 96, 58, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-terracotta);
    background: rgba(192, 96, 58, 0.1);
    border: 1px solid rgba(192, 96, 58, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-neutral-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-neutral-light);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 520px;
}

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

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 6/7;
}

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

/* Floating Stat Cards */
.stat-card {
    position: absolute;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.stat-card--1 {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}

.stat-card--2 {
    bottom: 25%;
    right: -20px;
    animation-delay: 1s;
}

.stat-card--3 {
    bottom: 8%;
    left: 10%;
    animation-delay: 2s;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-neutral-light);
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    color: var(--color-neutral-dark);
    font-weight: 700;
}

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

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

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

.service-card {
    background: var(--color-sand-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-terracotta-light);
    background: var(--color-white);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-neutral-dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--color-neutral-light);
    line-height: 1.7;
}

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

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

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

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

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--color-terracotta);
    color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-experience-badge .exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.about-experience-badge .exp-text {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.9;
}

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

.about-text {
    font-size: 1.0625rem;
    color: var(--color-neutral-mid);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-neutral-dark);
}

.value-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(192, 96, 58, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-terracotta);
    flex-shrink: 0;
}

/* ========================================
   Why Us Section
   ======================================== */
.why-us {
    padding: 100px 0;
    background: var(--color-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.why-card {
    background: var(--color-sand-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--color-terracotta) 0%, var(--color-terracotta-light) 100%);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-card:hover::before {
    height: 100%;
}

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

.why-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-terracotta);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 16px;
}

.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-neutral-dark);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.9375rem;
    color: var(--color-neutral-light);
    line-height: 1.75;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-neutral-dark) 0%, #2A2A2A 100%);
}

.cta-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin-bottom: 0;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 100px 0;
    background: var(--color-sand-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-text {
    font-size: 1.0625rem;
    color: var(--color-neutral-light);
    line-height: 1.75;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

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

.contact-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-neutral-light);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-neutral-dark);
}

.contact-value:hover {
    color: var(--color-terracotta);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-neutral-dark);
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-neutral-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-neutral-dark);
    background: var(--color-sand-light);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-terracotta);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(192, 96, 58, 0.1);
}

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

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

/* Form Success */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin: 0 auto 20px;
}

.form-success h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-neutral-dark);
    margin-bottom: 12px;
}

.form-success p {
    font-size: 1rem;
    color: var(--color-neutral-light);
    line-height: 1.7;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-neutral-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: var(--color-white);
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-contact p,
.footer-contact a {
    font-size: 0.9375rem;
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

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

.footer-bottom {
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Mobile Menu
   ======================================== */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-md);
}

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

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

    .stat-card--1 {
        left: 0;
    }

    .stat-card--2 {
        right: 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-image-block img {
        height: 400px;
    }

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

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

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

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

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

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

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

    .nav-links.active {
        display: flex;
    }

    .nav-links.active .nav-cta-mobile {
        display: inline-flex;
    }

    .hero {
        padding: 120px 0 80px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

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

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

    .stat-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 16px;
    }

    .hero-visual {
        display: flex;
        flex-direction: column;
    }

    .hero-image-wrapper {
        aspect-ratio: 4/3;
    }

    .services {
        padding: 80px 0;
    }

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

    .about {
        padding: 80px 0;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .about-experience-badge {
        right: 10px;
        bottom: -10px;
    }

    .why-us {
        padding: 80px 0;
    }

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

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

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

    .contact {
        padding: 80px 0;
    }

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

    .footer {
        padding: 60px 0 0;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

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

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: 0.9375rem;
    }
}
