/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: hsl(25, 25%, 15%);
    background-color: hsl(45, 20%, 97%);
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --sage: hsl(85, 35%, 45%);
    --sage-light: hsl(85, 25%, 75%);
    --sage-dark: hsl(85, 45%, 35%);
    --earth: hsl(25, 75%, 55%);
    --earth-light: hsl(25, 50%, 75%);
    --cream: hsl(45, 40%, 95%);
    --charcoal: hsl(25, 25%, 15%);
    --muted: hsl(25, 10%, 50%);
    --white: #ffffff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-size: 2rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.5rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-hero {
    background: linear-gradient(135deg, var(--sage), var(--sage-dark));
    color: var(--white);
    border: 2px solid transparent;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 2rem;
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--earth), var(--earth-light));
    border-radius: 50px;
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-hero:hover::before {
    width: 100%;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.btn-outline {
    background: var(--white);
    color: var(--charcoal);
    border-color: hsl(45, 15%, 88%);
}

.btn-outline:hover {
    background: var(--cream);
    border-color: var(--sage);
}

.full-width {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/hpbg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, hsla(85, 35%, 45%, 0.05), hsla(25, 75%, 55%, 0.05));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 0 1.5rem;
}

.brand h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1rem;
}

.brand-line {
    width: 6rem;
    height: 4px;
    background: linear-gradient(90deg, var(--sage), var(--earth));
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.hero-title {
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    max-width: 58rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 0 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.trust-indicators {
    font-size: 1.25rem;
}

/* Section Styles */
section {
    padding: 3rem 0;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-header h2 {
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: clamp(1rem, 4vw, 2rem);
    color: var(--muted);
    max-width: 58rem;
    margin: 0 auto;
}

/* What We Do Section */
.what-we-do {
    background-color: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}

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

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px -4px hsla(25, 25%, 15%, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 30px -10px hsla(85, 35%, 45%, 0.2);
    transform: translateY(-2px);
}

.service-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.check-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--sage);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.service-card h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
}

/* Who It's For Section - Force 4 columns on desktop */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .audience-grid {
        grid-template-columns: 1fr;
    }
}

.audience-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px -4px hsla(25, 25%, 15%, 0.1);
    transition: all 0.3s ease;
}

.audience-card:hover {
    box-shadow: 0 10px 30px -10px hsla(85, 35%, 45%, 0.2);
    transform: translateY(-2px);
}

.audience-icon {
    width: 3rem;
    height: 3rem;
    color: var(--sage);
    margin: 0 auto 1rem;
    transition: color 0.3s ease;
}

.audience-card:hover .audience-icon {
    color: var(--earth);
}

.audience-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.audience-card p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
}

/* Why Content Ranch Section - Force 2x2 layout */
.why-content-ranch {
    background: linear-gradient(135deg, hsla(85, 35%, 45%, 0.05), hsla(25, 75%, 55%, 0.05));
}

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

@media (max-width: 768px) {
    .reasons-grid {
        grid-template-columns: 1fr;
    }
}

.reason-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 20px -4px hsla(25, 25%, 15%, 0.1);
    transition: all 0.3s ease;
}

.reason-card:hover {
    box-shadow: 0 10px 30px -10px hsla(85, 35%, 45%, 0.2);
    transform: translateY(-2px);
}

.reason-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.reason-icon {
    padding: 0.75rem;
    background: hsla(85, 35%, 45%, 0.1);
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.reason-card:hover .reason-icon {
    background: hsla(85, 35%, 45%, 0.2);
}

.reason-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--sage);
}

.reason-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.reason-card p {
    color: var(--muted);
    margin: 0;
}

/* Pricing Section */
.pricing {
    background-color: var(--cream);
}

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

@media (max-width: 1000px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

.pricing-card {
    position: relative;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px -4px hsla(25, 25%, 15%, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 280px;
}

.pricing-card:hover {
    box-shadow: 0 10px 30px -10px hsla(85, 35%, 45%, 0.2);
    transform: translateY(-2px);
}

.pricing-card.popular {
    border: 2px solid var(--sage);
}

.popular-badge {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sage);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.popular-badge svg {
    width: 1rem;
    height: 1rem;
}

.pricing-header {
    text-align: center;
    padding: 1.5rem 1.5rem 1rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.sites {
    color: var(--sage);
    font-weight: 500;
    margin-bottom: 1rem;
}

.price {
    margin: 1rem 0;
}

.price .amount {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--charcoal);
}

.price .period {
    color: var(--muted);
}

.updates {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.description {
    font-size: 0.875rem;
    color: var(--muted);
}

.pricing-content {
    padding: 0 1.5rem 1.5rem;
}

/* Pricing Comparison Section - Force 2 columns */
.pricing-comparison {
    background: var(--cream);
    padding: 3rem 0;
}

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

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.comparison-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 20px -4px rgba(0,0,0,0.1);
}

.comparison-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--charcoal);
}

.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.comparison-card li {
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.cost {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
}

.highlight {
    border: 2px solid var(--sage);
    box-shadow: 0 6px 25px -6px hsla(85, 35%, 45%, 0.25);
}

.highlight-cost {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--sage-dark);
}

/* Feature Cards - Force 2 rows of 3 */
.included-features {
    max-width: 64rem;
    margin: 0 auto 3rem;
}

.feature-card {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 20px -4px hsla(25, 25%, 15%, 0.1);
}

.feature-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Footer */
.footer {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--sage-light);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sage-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--white);
}

.contact-link svg {
    width: 1rem;
    height: 1rem;
}

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

.footer-copyright p {
    color: var(--sage-light);
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid hsla(85, 35%, 45%, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--sage-light);
    font-size: 0.875rem;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .brand h1 {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .pricing-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .price .amount {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact {
        flex-direction: column;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .comparison-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Mobile Button Improvements - NEW SECTION */
@media (max-width: 480px) {
    .btn {
        padding: 1rem 2rem; /* Increased from 0.75rem 1.5rem */
        font-size: 1.125rem; /* Increased from 0.95rem */
        min-height: 48px; /* Ensures touch-friendly minimum size */
        border-radius: 0.875rem; /* Slightly larger border radius */
    }
    
    .btn-hero {
        padding: 1.125rem 2.5rem; /* Increased padding */
        font-size: 1.25rem; /* Increased font size */
        min-height: 52px; /* Slightly larger for primary buttons */
        border-radius: 50px; /* Keep the pill shape but ensure it scales */
    }
    
    /* Ensure hero buttons have proper spacing and sizing */
    .hero-buttons .btn {
        width: 100%;
        max-width: 350px; /* Increased from 300px */
        margin-bottom: 0.75rem; /* Add bottom margin between stacked buttons */
    }
    
    /* Make sure the "Get Started" buttons in pricing cards are larger too */
    .pricing-content .btn {
        padding: 1rem 2rem;
        font-size: 1.125rem;
        min-height: 48px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .brand h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    /* Full width cards on small mobile */
    .service-card,
    .audience-card,
    .reason-card {
        padding: 1.25rem;
    }
    
    /* Ensure pricing and comparison cards are full width */
    .pricing-card,
    .comparison-card {
        width: 100%;
        max-width: none;
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    /* Ensure grids have proper padding */
    .services-grid,
    .audience-grid,
    .reasons-grid,
    .pricing-grid,
    .comparison-grid,
    .features-grid {
        padding: 0 1rem;
    }
    
    .audience-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .popular-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.75rem;
    }
}

/* For very small screens (under 400px) - make buttons even more prominent */
@media (max-width: 400px) {
    .btn {
        padding: 1.125rem 2rem;
        font-size: 1.25rem;
        min-height: 50px;
    }
    
    .btn-hero {
        padding: 1.25rem 2.5rem;
        font-size: 1.375rem;
        min-height: 55px;
    }
    
    .hero-buttons .btn {
        max-width: 100%; /* Full width on very small screens */
    }
    
    .pricing-grid {
        max-width: none;
    }
}

/* Desktop improvements */
@media (min-width: 1024px) {
    section {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .brand h1 {
        font-size: 5rem;
    }
    
    h2 {
        font-size: 3rem;
    }
}

/* Extra large screens */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .brand h1 {
        font-size: 6rem;
    }
    
    h2 {
        font-size: 3.5rem;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Footer bottom link styling - more specific to override existing styles */
.footer-bottom p a {
    color: var(--sage-light) !important;
    text-decoration: none;
}

.footer-bottom p a:hover {
    color: var(--white) !important;
}