@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800&display=swap');

/* General Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --accent-color: #00c2ff;
}

body {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* ============================================
   MOBILE-FIRST LEGIBILITY SYSTEM
   Optimized for outdoor/job-site viewing
   ============================================ */

/* Base mobile typography - generous sizing for readability */
@media (max-width: 768px) {
    body {
        font-size: 17px !important;
        line-height: 1.55 !important;
        letter-spacing: 0.01em;
    }

    /* Generous container padding for thumb comfort */
    .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Headings with proper hierarchy and breathing room */
    h1, .display-4 {
        font-size: 1.875rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    h2, .display-5 {
        font-size: 1.625rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.875rem !important;
    }

    h3, h4 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }

    /* Lead text - prominent but readable */
    .lead {
        font-size: 1.125rem !important;
        line-height: 1.5 !important;
    }

    /* Paragraph spacing */
    p {
        margin-bottom: 1.25rem;
    }

    /* Section vertical rhythm */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    /* Buttons - larger touch targets */
    .btn {
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
        min-height: 48px;
    }

    .btn-lg {
        font-size: 1.0625rem !important;
        padding: 1rem 1.75rem !important;
    }
}

/* Small phones - slightly tighter but still readable */
@media (max-width: 480px) {
    body {
        font-size: 16px !important;
    }

    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    h1, .display-4 {
        font-size: 1.625rem !important;
    }

    h2, .display-5 {
        font-size: 1.375rem !important;
    }

    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* ============================================
   NAVIGATION
   Responsive navbar that works on all screen sizes
   ============================================ */

.navbar {
    padding: calc(0.75rem + 10px) 0;
    transition: all 0.3s ease;
    z-index: 1050 !important;
}

.navbar .container {
    flex-wrap: nowrap;
    justify-content: space-between;
}

.navbar.navbar-hidden {
    transform: translateY(-120%);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0;
}

.navbar-brand small {
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
    position: relative;
}

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

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

/* Mobile navbar - fits on one line */
@media (max-width: 768px) {
    .navbar .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .navbar-brand img {
        height: 36px !important;
    }
}

/* Small phones (480px and below) */
@media (max-width: 480px) {
    .navbar .container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    .navbar-brand img {
        height: 28px !important;
    }
    .navbar-nav .nav-link {
        font-size: 0.8rem !important;
        padding-left: 0.3rem !important;
        padding-right: 0.3rem !important;
    }
}


/* ============================================
   HERO SECTION
   Two variants: homepage (with phone overlap) and trade pages (simple)
   ============================================ */

/* Base hero styles */
.hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 520px;
    overflow: visible;
    position: relative;
}

/* Trade pages hero - consistent spacing */
.hero-section:not(.hero-homepage) .container {
    padding-top: 60px;
}

.hero-section h1 {
    text-shadow: 3px 3px 1px rgba(0, 0, 0, 0.3);
    margin-top: 0;
    white-space: normal;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero_background_electrician.webp') top center/cover no-repeat;
    filter: blur(4px) brightness(1.0);
    z-index: 1;
}

/* Homepage hero - tall with phone overlap */
.hero-section.hero-homepage {
    height: 720px;
    max-height: 720px;
}

.hero-section.hero-homepage .container {
    padding-top: 280px !important;
}

/* Trade pages hero - plumber gradient */
.hero-section.plumber-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #3d7ab5 100%);
}

/* Tablet */
@media (max-width: 768px) {
    .hero-section.hero-homepage .container {
        padding-top: 50px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 140px !important;
        min-height: auto;
    }

    .hero-section.hero-homepage {
        height: auto;
        max-height: none;
    }

    .hero-section.hero-homepage .container {
        padding-top: 30px !important;
    }
}

/* ============================================
   PHONE MOCKUPS
   Consistent styling for app screenshots
   ============================================ */

.phone-mockup {
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .phone-mockup {
        max-width: 260px !important;
    }

    /* Feature section images smaller on mobile */
    .feature-section .phone-mockup,
    .feature-section .img-fluid {
        max-width: 160px !important;
    }

    /* Feature cards spacing */
    .feature-section .col-md-4 {
        margin-bottom: 0.5rem;
    }

    /* Testimonial cards better padding */
    .bg-light.rounded-4 {
        padding: 1.25rem !important;
    }

    /* Column centering on mobile */
    .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-10 {
        margin-bottom: 1.5rem;
        text-align: center !important;
    }

    .text-lg-start {
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .phone-mockup {
        max-width: 220px !important;
    }

    .feature-section .phone-mockup,
    .feature-section .img-fluid {
        max-width: 140px !important;
    }
}

.hero-section .lead {
    text-shadow: 3px 3px 1px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
}

.store-badge {
    transition: transform 0.3s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.hero-phone-img {
    bottom: -80px;
    filter: none;
}

.hero-phone-img img {
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    max-height: 780px !important;
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 66px;
        height: auto;
        max-height: none;
    }
    
    .hero-phone-img {
        bottom: -40px;
        max-width: 90vw;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.25rem !important;
    }
}

/* Features Section */
.features-section {
    background-color: #f7f8fa;
    padding: 5rem 0;
}

.feature-card {
    border-radius: 1.5rem !important;
    box-shadow: 0 4px 24px 0 rgba(30,34,40,0.08), 0 1.5px 4px 0 rgba(30,34,40,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px 0 rgba(30,34,40,0.12), 0 2px 8px 0 rgba(30,34,40,0.06);
}

.feature-card img {
    width: 61px;
    height: 61px;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #222;
}

.feature-card p {
    font-size: 1.05rem;
    color: #6c757d;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .feature-card {
        min-height: 0;
        padding: 2rem 1rem;
    }
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.newsletter-form .form-control {
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem 0 0 0.25rem;
}

.newsletter-form .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0 0.25rem 0.25rem 0;
}

/* Footer */
.site-footer {
    background: #232943;
    color: #fff;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
    font-family: 'Urbanist', Arial, sans-serif;
}
.site-footer h6 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.site-footer ul {
    padding-left: 0;
    list-style: none;
}
.site-footer .footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.site-footer .footer-link:hover {
    color: #4ade80;
}
.site-footer .footer-social {
    color: #fff;
    transition: color 0.2s;
}
.site-footer .footer-social:hover {
    color: var(--accent-color);
}
.site-footer .fa-envelope {
    color: #fff;
    margin-right: 0.5rem;
}
.site-footer .text-white-50 {
    color: #e0e6f7 !important;
}
.site-footer .small {
    font-size: 0.95rem;
}
.site-footer .text-white-50 .footer-link {
    display: inline !important;
}
.site-footer .text-white-50 i,
.site-footer .text-white-50 a.footer-link {
    vertical-align: middle;
}
.site-footer .heart-green {
    color: #22c55e; /* green */
}
@media (max-width: 768px) {
    .site-footer .row > div {
        text-align: center !important;
        align-items: center !important;
    }
    .site-footer {
        border-radius: 0;
    }
}

/* Buttons */
.btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
    
    .features-section .card {
        margin-bottom: 1.5rem;
    }
}

/* Custom CertifyIQ Styles */
.custom-blur {
    background: rgba(30, 30, 30, 0.75) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

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

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 768px) {
    .navbar-collapse {
        background: rgba(30, 30, 30, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* Practice Makes Perfect Section */
.practice-section {
    background: #fff;
    padding: 80px 0;
}
.practice-section h2 {
    font-family: 'Urbanist', Arial, sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -1px;
    color: #222;
}
.practice-section p {
    font-size: 1.35rem;
    color: #495057;
    font-family: 'Urbanist', Arial, sans-serif;
}
.practice-section .btn-primary {
    background: #5561f2;
    border: none;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.85rem 2.5rem;
    box-shadow: 0 2px 8px rgba(85,97,242,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
.practice-section .btn-primary:hover {
    background: #3d47c3;
    box-shadow: 0 4px 16px rgba(85,97,242,0.12);
}
/* Homepage phone image - responsive sizing */
.homepage-phone-img {
    max-width: 500px;
}

@media (max-width: 768px) {
    .homepage-phone-img {
        max-width: 280px;
    }
}
@media (max-width: 768px) {
    .practice-section h2 {
        font-size: 2rem;
    }
    .practice-section p {
        font-size: 1.1rem;
    }
}

/* Stay Updated Section */
.stay-updated-section {
    background: #fff;
}
.stay-updated-section h2 {
    font-family: 'Urbanist', Arial, sans-serif;
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: -1px;
    color: #111;
    line-height: 1.1;
}
.stay-updated-section p,
.stay-updated-section .text-secondary {
    font-size: 1.05rem;
    color: #495057;
    font-family: 'Urbanist', Arial, sans-serif;
}
.stay-updated-section .btn-primary {
    background: #5561f2;
    border: none;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.85rem 2.5rem;
    box-shadow: 0 2px 8px rgba(85,97,242,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
.stay-updated-section .btn-primary:hover {
    background: #3d47c3;
    box-shadow: 0 4px 16px rgba(85,97,242,0.12);
}
.stay-updated-section img {
    border-radius: 1.5rem;
    box-shadow: 0 2px 16px rgba(30,34,40,0.08);
}
.stay-updated-section .newsletter-form {
    margin-top: 2rem;
}
.stay-updated-section .form-control {
    background: #f7f7f7;
    border: none;
    border-radius: 2rem;
    font-size: 1.1rem;
    padding: 0.85rem 1.5rem;
    box-shadow: none;
}
.stay-updated-section .form-control:focus {
    background: #f0f0f0;
    box-shadow: 0 0 0 2px #5561f233;
}
.stay-updated-section .form-control::placeholder {
    font-style: italic;
}
@media (max-width: 768px) {
    .stay-updated-section h2 {
        font-size: 2rem;
    }
    .stay-updated-section .newsletter-form {
        margin-top: 1.2rem;
    }
} 

/* Reduce any extra space above the device image */
.hero-phone-img {
    margin-top: 0 !important;
}

/* App store buttons spacing */
.hero-section .d-flex.gap-3 {
    gap: 10px !important;
}

/* Tablet spacing tweaks for hero content (tighter) */
@media (max-width: 768px) {
    .hero-section h1 {
        margin-bottom: 0.5rem !important;
    }
    .hero-section .lead {
        margin-bottom: 0.5rem !important;
    }
    .hero-section .d-flex.gap-3 {
        gap: 10px !important;
        margin-bottom: 0.5rem !important;
    }
    .hero-phone-img {
        margin-top: 0 !important;
    }
}

/* Mobile spacing tweaks for hero content (tightest) */
@media (max-width: 480px) {
    .hero-section h1 {
        margin-bottom: 0.25rem !important;
    }
    .hero-section .lead {
        margin-bottom: 0.25rem !important;
    }
    .hero-section .d-flex.gap-3 {
        gap: 10px !important;
        margin-bottom: 0.25rem !important;
    }
    .hero-phone-img {
        margin-top: 0 !important;
    }
} 

/* Social icons - header and footer */
.navbar .nav-item.ms-lg-3 a.nav-link,
.site-footer .footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 6px;
    padding: 0;
    line-height: 0;
    text-align: center;
    overflow: visible;
}

.navbar .nav-item.ms-lg-3 a.nav-link img,
.site-footer .footer-social img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}