/* ========================================
   Bear Land Surveying - Custom Styles
   Charcoal + Coral Color Palette
======================================== */

/* CSS Custom Properties */
:root {
    --charcoal: #1a1a2e;
    --charcoal-light: #2d2d44;
    --charcoal-dark: #0f0f1a;
    --coral: #E85D4A;
    --coral-light: #ff7b66;
    --coral-dark: #c94d3c;
    --white: #ffffff;
    --off-white: #f8f7f4;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #d1d1d1;
    --gray-600: #6b7280;
    --gray-800: #1f2937;
    
    --font-primary: 'Outfit', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 26, 46, 0.12);
    --shadow-lg: 0 10px 40px rgba(26, 26, 46, 0.15);
    --shadow-coral: 0 8px 30px rgba(232, 93, 74, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

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

body {
    font-family: var(--font-primary);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

.text-coral {
    color: var(--coral);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

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

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

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

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--charcoal);
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--charcoal-light);
    position: relative;
}

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

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

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.08;
}

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--coral);
    top: -150px;
    right: -100px;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--coral-light);
    bottom: -80px;
    left: 10%;
}

.geo-square {
    width: 200px;
    height: 200px;
    background: var(--coral);
    top: 30%;
    left: 5%;
    transform: rotate(45deg);
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid var(--coral-light);
    top: 15%;
    right: 15%;
    opacity: 0.06;
}

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

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232, 93, 74, 0.1);
    color: var(--coral);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--charcoal);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

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

/* Floating Stats */
.floating-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 1024px) {
    .floating-stats {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.stat-card-1 { animation-delay: 0s; }
.stat-card-2 { animation-delay: 0.5s; }
.stat-card-3 { animation-delay: 1s; }

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--coral);
    line-height: 1;
}

.stat-number span {
    font-size: 1.2rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 4px;
    font-weight: 500;
}

/* Section Styles */
.section-tag {
    display: inline-block;
    background: rgba(232, 93, 74, 0.1);
    color: var(--coral);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--charcoal);
    margin-bottom: 16px;
}

.section-title.light {
    color: var(--white);
}

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

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

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

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

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

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(232, 93, 74, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

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

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

@media (min-width: 900px) {
    .about-container {
        grid-template-columns: 1fr 1fr;
    }
}

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

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--coral);
    border-radius: var(--radius-lg);
    bottom: -30px;
    right: -30px;
    z-index: -1;
    opacity: 0.3;
}

.about-content .section-title {
    margin-top: 8px;
}

.about-text {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

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

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

.about-feature svg {
    flex-shrink: 0;
}

/* Why Us Section */
.why-us {
    padding: 100px 0;
    background: var(--charcoal);
    position: relative;
    overflow: hidden;
}

.why-us-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.geo-diamond {
    width: 300px;
    height: 300px;
    background: var(--coral);
    position: absolute;
    top: -80px;
    left: -80px;
    transform: rotate(45deg);
    opacity: 0.05;
}

.geo-circle-3 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--coral-light);
    position: absolute;
    bottom: -150px;
    right: -100px;
    opacity: 0.05;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.why-card {
    background: var(--charcoal-light);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.why-card:hover {
    border-color: var(--coral);
    transform: translateY(-4px);
}

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

.why-card h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 12px;
}

.why-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--coral);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -200px;
    right: -100px;
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .cta-card {
        grid-template-columns: 1.5fr 1fr;
    }
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
}

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

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

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

@media (min-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info .section-title {
    margin-top: 8px;
}

.contact-desc {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(232, 93, 74, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.contact-item p, .contact-item a {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-item a:hover {
    color: var(--coral);
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--charcoal);
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coral);
}

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

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

/* Form Success */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
}

.form-success.show {
    display: flex;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(232, 93, 74, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--gray-600);
}

/* Footer */
.footer {
    background: var(--charcoal-dark);
    padding: 60px 0 0;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    }
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 16px;
}

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

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

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

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

.footer-contact p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.8;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

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

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

    .hero {
        padding: 100px 0 60px;
    }

    .hero-card {
        padding: 32px;
    }

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

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

    .floating-stats {
        position: static;
        transform: none;
        margin-top: 32px;
    }

    .stat-card {
        animation: none;
    }

    .about-accent {
        display: none;
    }

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

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

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

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

    .footer-bottom {
        text-align: center;
    }
}

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

    .hero-card {
        padding: 24px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .service-card {
        padding: 24px;
    }
}
