/* ============================================
   SAGUARO DIGITAL - CUSTOM STYLES
   Clean, professional, conversion-focused
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #0d4219;
    --light-green: #28a745;
    --dark-gray: #36454f;
    --light-gray: #f8f9fa;
    --border-gray: #dee2e6;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --white: #ffffff;
    --warning: #ffc107;
    --danger: #dc3545;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--light-green);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === UTILITY CLASSES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-white {
    background-color: var(--white);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background: var(--light-green);
    border-color: var(--light-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 66, 25, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* === NAVIGATION === */
.navbar {
    background: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.navbar-text span {
    color: var(--primary-green);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.navbar-nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 0;
}

.navbar-nav a:hover {
    color: var(--primary-green);
}

.navbar-cta {
    padding: 10px 20px !important;
    border-radius: 4px;
    color: white !important;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0.05) 100%),
                url('/images/web-design-tucson-hero.png');
    background-size: cover;
    background-position: top right;
    background-attachment: scroll;
    min-height: 600px;
    padding: 100px 0 80px;
}

.hero-content {
    max-width: 700px;
}

.hero-eyebrow {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-trust {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === TRUST BAR === */
.trust-bar {
    background: var(--primary-green);
    color: var(--white);
    padding: 20px 0;
}

.trust-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.trust-item {
    text-align: center;
}

.trust-item strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.trust-item span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* === PROPRIETARY SYSTEM === */
.proprietary-system {
    text-align: center;
}

.system-name {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(13, 66, 25, 0.2);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tool-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tool-card h3 {
    color: var(--primary-green);
    margin-bottom: 12px;
}

/* === US VS THEM TABLE === */
.comparison-table {
    max-width: 900px;
    margin: 50px auto 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-gray);
}

.comparison-table thead th {
    background: var(--primary-green);
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table .check {
    color: var(--light-green);
    font-weight: 700;
    font-size: 1.25rem;
}

.comparison-table .cross {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.25rem;
}

/* === PACKAGES === */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.package-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.package-card.featured {
    border-color: var(--primary-green);
    border-width: 3px;
    transform: scale(1.05);
}

.package-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning);
    color: var(--text-dark);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.package-card.featured .package-badge {
    background: var(--primary-green);
    color: var(--white);
}

.package-name {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary-green);
}

.package-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.package-price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.package-recurring {
    font-size: 1.25rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 24px;
}

.package-features {
    list-style: none;
    text-align: left;
    margin: 30px 0;
}

.package-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
    padding-left: 30px;
}

.package-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--light-green);
    font-weight: 700;
}

.friction-remover {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    font-style: italic;
}

/* === SOCIAL PROOF === */
.testimonials {
    background: var(--light-gray);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.testimonial-headline {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 12px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author strong {
    display: block;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === PATTERN INTERRUPT / WARNING BOX === */
.pattern-interrupt {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid var(--warning);
    border-radius: 8px;
    padding: 30px;
    margin: 50px auto;
    max-width: 800px;
}

.pattern-interrupt h3 {
    color: var(--danger);
    margin-bottom: 12px;
}

.pattern-interrupt p {
    margin-bottom: 20px;
}

/* === PORTFOLIO / EXAMPLES === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.portfolio-item:hover {
    border-color: var(--primary-green);
    box-shadow: 0 8px 30px rgba(13, 66, 25, 0.15);
    transform: translateY(-4px);
}

.portfolio-item-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image, scaled down */
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.02);
}

.portfolio-item-info {
    padding: 20px;
    background: #fff;
}

.portfolio-item-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-item-info h3 {
    color: var(--primary-green);
}

.portfolio-item-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.portfolio-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* === LIGHTBOX === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 48px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-green);
}

/* === CONTACT FORM === */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    align-items: start;
}

.contact-benefits h3 {
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.benefit-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.benefit-content h4 {
    margin-bottom: 8px;
    color: var(--primary-green);
}

.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 8px;
    border: 2px solid var(--border-gray);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
}

.form-check label {
    font-size: 0.9rem;
    font-weight: 400;
}

.form-message {
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === FOOTER === */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255,255,255,0.8);
    display: block;
    margin-bottom: 10px;
}

.footer a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .section { padding: 60px 0; }
    .section-sm { padding: 40px 0; }
    
    .menu-toggle {
        display: block;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--border-gray);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 60px 0 40px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 70%, rgba(255, 255, 255, 0.85) 100%),
                    url('./images/bk44.png');
        background-size: cover;
        background-position: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .trust-items {
        flex-direction: column;
        gap: 20px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .container,
    .container-wide {
        padding: 0 16px;
    }
    
    .btn {
        padding: 12px 24px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
