/* HeartBuilt Websites - Brand Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-charcoal: #1C1C1C;
    --accent-red: #D94E41;
    --sand-beige: #F2E8D5;
    --light-bg: #F8F6F2;
    --soft-gold: #E7B75F;
    --white: #FFFFFF;
    --divider: #ECECEC;
    --button-hover: #2A2A2A;
    --text-dark: #1C1C1C;
    --text-light: #666666;
    --border-light: #E7E7E7;
    --border-medium: #EDEDED;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
}

h1 {
    font-size: 44px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 22px;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-charcoal);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section with Slideshow */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 140px 20px 100px;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    object-fit: cover;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.08;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 44px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--white);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

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

/* Buttons */
.btn {
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.btn:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 4px;
}

.btn-primary {
    background: var(--primary-charcoal);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--button-hover);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
}

.btn-whatsapp:hover {
    background: #20BA5A;
}

/* Section Styles */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* How It Works Section */
.how-it-works {
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step-card {
    text-align: center;
    padding: 40px 20px;
}

.step-icon-circle {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.step-icon-circle svg {
    width: 40px;
    height: 40px;
}

.step-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Portfolio Section - Built for Real People */
.portfolio {
    background: var(--light-bg);
    border-top: 1px solid var(--divider);
    padding: 80px 20px;
}

.portfolio-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.portfolio-intro {
    display: flex;
    align-items: flex-start;
}

.portfolio-statement {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-dark);
}

.verticals-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vertical-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 0;
}

.vertical-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-dark);
}

.vertical-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.vertical-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Pricing Section - Two Card Layout */
.pricing {
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 50px auto 0;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.pricing-card-featured {
    border: 2px solid var(--accent-red);
    box-shadow: var(--shadow-md);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--divider);
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    margin: 10px 0;
}

.pricing-tagline {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 10px 0;
    color: var(--text-dark);
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    line-height: 1.5;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-weight: 700;
    font-size: 18px;
}

.pricing-features li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.btn-pricing {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-bottom: 12px;
}

.pricing-secondary-link {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.pricing-secondary-link:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.pricing-footnote-bottom {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 40px;
    font-style: italic;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }
    
    .pricing-card {
        padding: 30px 25px;
    }
}

/* Testimonials Section */
.testimonials {
    background: var(--sand-beige);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-red);
}

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

.stars {
    color: var(--soft-gold);
    font-size: 20px;
    margin-bottom: 15px;
}

.review-text {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-dark);
}

.reviewer-title {
    font-size: 14px;
    color: var(--text-light);
}

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

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.about-text {
    font-size: 17px;
    line-height: 1.6;
}

.about-lead {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.5;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-text strong {
    color: var(--accent-red);
}

.about-values h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.value-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
}

.value-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.value-item h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
    font-size: 18px;
}

.value-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* Contact Section */
.contact {
    background: var(--light-bg);
}

.contact-content {
    max-width: 700px;
    margin: 50px auto 0;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--white);
}

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

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-actions .btn {
    flex: 1;
    min-width: 200px;
}

.form-privacy {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Footer */
.footer {
    background: var(--primary-charcoal);
    color: var(--white);
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--soft-gold);
}

.footer-section p {
    color: #B8B8B8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #B8B8B8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

.footer-section ul li a:hover {
    color: var(--accent-red);
}

.footer-cta {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--accent-red);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-cta:hover {
    background: #C23E31;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #B8B8B8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu li {
        padding: 15px 0;
    }

    .nav-menu.active {
        left: 0;
    }

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

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

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

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

    .hero {
        padding: 100px 20px 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .steps-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}
