/* SmartFence Home Page - Salesforce-inspired Styles */

/* Salesforce Design System Variables */
:root {
    --sf-blue: #0176D3;
    --sf-dark-blue: #014486;
    --sf-light-blue: #E8F3FB;
    --sf-green: #2E844A;
    --sf-success: #2E844A;
    --sf-text-dark: #181818;
    --sf-text-body: #3E3E3C;
    --sf-text-secondary: #706E6B;
    --sf-border: #DDDBDA;
    --sf-background: #FAFAF9;
    --sf-white: #FFFFFF;
}

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

body {
    font-family: 'Salesforce Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--sf-text-body);
    line-height: 1.6;
    background: var(--sf-white);
}

/* Navigation - Salesforce Style */
.sf-nav {
    background: var(--sf-white);
    border-bottom: 1px solid var(--sf-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sf-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.sf-logo img {
    height: 42px;
    width: auto;
}

.sf-nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.sf-nav-link {
    color: var(--sf-text-body);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.sf-nav-link:hover {
    color: var(--sf-blue);
}

.sf-btn-primary {
    background: var(--sf-blue);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.sf-btn-primary:hover {
    background: var(--sf-dark-blue);
}

.sf-btn-secondary {
    background: white;
    color: var(--sf-blue);
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--sf-blue);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.sf-btn-secondary:hover {
    background: var(--sf-light-blue);
}

.sf-btn-white {
    background: white;
    color: var(--sf-blue);
    padding: 0.875rem 2rem;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.sf-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Hero Section */
.sf-hero {
    background: linear-gradient(135deg, #0176D3 0%, #014486 100%);
    padding: 8rem 2rem 6rem;
    margin-top: 64px;
    color: white;
    position: relative;
    overflow: hidden;
}

.sf-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/fence-image.jpg') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.sf-hero-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.sf-hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.sf-hero-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
}

.sf-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.sf-hero-image {
    border-radius: 8px;
    padding: 1rem;
}

.sf-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Hero Info Box */
.hero-info-box {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.hero-info-box p {
    font-size: 0.875rem;
    opacity: 0.95;
    margin: 0;
}

/* Secondary Button on Hero */
.sf-btn-secondary-hero {
    background: rgba(255,255,255,0.1);
    color: white;
    border-color: white;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow-icon {
    flex-shrink: 0;
}

/* Trust Bar */
.sf-trust-bar {
    background: var(--sf-background);
    border-top: 1px solid var(--sf-border);
    border-bottom: 1px solid var(--sf-border);
    padding: 2rem;
}

.sf-trust-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.sf-trust-item {
    text-align: center;
}

.sf-trust-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sf-blue);
    margin-bottom: 0.25rem;
}

.sf-trust-label {
    font-size: 0.875rem;
    color: var(--sf-text-secondary);
    font-weight: 500;
}

/* Section Styles */
.sf-section {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.sf-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sf-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sf-text-dark);
    margin-bottom: 1rem;
}

.sf-section-subtitle {
    font-size: 1.25rem;
    color: var(--sf-text-body);
    max-width: 700px;
    margin: 0 auto;
}

/* Two Column Layout */
.sf-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Problem/Solution Cards */
.problem-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #fca5a5;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.solution-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon-problem {
    background: #fef2f2;
    border: 2px solid #dc2626;
}

.card-icon-solution {
    background: #f0fdf4;
    border: 2px solid #10b981;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--sf-text-dark);
}

.card-list {
    list-style: none;
    padding: 0;
    color: var(--sf-text-body);
}

.card-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    line-height: 1.6;
}

.check-icon-problem {
    color: #dc2626;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.check-icon-success {
    color: #10b981;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.25rem;
}

/* How It Works Section */
.how-it-works-section {
    background: var(--sf-background);
    padding: 5rem 2rem;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 4rem;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
}

.how-it-works-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s;
}

.how-it-works-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.how-it-works-number {
    width: 48px;
    height: 48px;
    background: var(--sf-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.how-it-works-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sf-text-dark);
    margin-bottom: 1rem;
}

.how-it-works-card p {
    color: var(--sf-text-body);
    line-height: 1.6;
}

/* Feature Preview Section */
.feature-preview-section {
    padding: 5rem 2rem;
    background: white;
}

.feature-preview-header {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-preview-grid {
    max-width: 1280px;
    margin: 3rem auto 0;
    display: grid;
    gap: 4rem;
}

.feature-preview-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-preview-item:nth-child(even) .feature-preview-image {
    order: -1;
}

.feature-preview-image {
    background: var(--sf-background);
    border-radius: 8px;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sf-border);
}

.feature-preview-image img {
    max-width: 100%;
    border-radius: 4px;
}

.feature-preview-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--sf-text-dark);
    margin-bottom: 1rem;
}

.feature-preview-content p {
    color: var(--sf-text-body);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-preview-content ul {
    list-style: none;
    padding: 0;
}

.feature-preview-content li {
    padding: 0.5rem 0;
    color: var(--sf-text-body);
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.feature-preview-content li svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Benefits Section */
.benefits-section {
    background: var(--sf-background);
    padding: 5rem 2rem;
}

.benefits-header {
    text-align: center;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1280px;
    margin: 3rem auto 0;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--sf-border);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: var(--sf-light-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sf-text-dark);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--sf-text-body);
    line-height: 1.6;
}

/* CTA Section */
.sf-cta {
    background: linear-gradient(135deg, var(--sf-blue) 0%, var(--sf-dark-blue) 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
}

.sf-cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.sf-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sf-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.sf-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sf-btn-secondary-cta {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

/* Footer */
.sf-footer {
    background: var(--sf-text-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem 2rem 2rem;
}

.sf-footer-content {
    max-width: 1280px;
    margin: 0 auto;
}

.sf-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.sf-footer h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.sf-footer p {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.sf-footer-link {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.sf-footer-link:hover {
    color: white;
}

.sf-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.sf-footer-bottom p {
    font-size: 0.875rem;
    margin: 0;
}

.footer-links-group {
    display: flex;
    gap: 1.5rem;
}

/* Nav Actions Group */
.nav-actions-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Responsive */
@media (max-width: 968px) {
    .sf-hero-content,
    .sf-two-col,
    .how-it-works-grid,
    .feature-preview-item,
    .benefits-grid,
    .sf-footer-grid {
        grid-template-columns: 1fr;
    }
    
    .sf-hero-text h1 {
        font-size: 2.25rem;
    }
    
    .sf-nav-links {
        display: none;
    }
    
    .feature-preview-item:nth-child(even) .feature-preview-image {
        order: 0;
    }
}