/* ========================================================================== Emerald Isle Electric — styles.css Mobile-first, conversion-optimized design ========================================================================== */ /* --- CSS Custom Properties (from Branding.md) --- */ :root { --primary: #046307; --primary-light: #50C878; --secondary: #0066CC; --secondary-light: #4DA6FF; --accent: #FF4444; --accent-light: #FF7777; --dark-emerald: #065517; --accent-green: #126723; --text: #1A1A1A; --text-light: #4A4A4A; --bg: #FFFFFF; --bg-light: #F8F9FA; --border: #E0E0E0; --white: #FFFFFF; --gold: #F5A623; --radius: 16px; --radius-sm: 8px; --shadow-sm: 0 2px 8px rgba(0,0,0,0.06); --shadow-md: 0 4px 20px rgba(0,0,0,0.08); --shadow-lg: 0 8px 40px rgba(0,0,0,0.12); --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); } /* --- Base Reset & Typography --- */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { scroll-behavior: smooth; scroll-padding-top: 80px; } body { font-family: 'DM Sans', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; } img { max-width: 100%; height: auto; display: block; } a { color: inherit; text-decoration: none; } ul { list-style: none; } /* --- Section Shared --- */ .section-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } .section-label { display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary-light); margin-bottom: 8px; } .section-title { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; color: var(--text); margin-bottom: 12px; text-align: center; } .section-subtitle { color: var(--text-light); font-size: 1rem; max-width: 640px; margin: 0 auto 32px; text-align: center; } /* ========================================================================== HEADER ========================================================================== */ /* Top info bar */ .header-topbar { background: var(--dark-emerald); color: rgba(255,255,255,0.85); font-size: 0.72rem; display: none; } .topbar-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 6px 20px; } .topbar-item { display: flex; align-items: center; gap: 6px; white-space: nowrap; } @media (min-width: 768px) { .header-topbar { display: block; } } /* Main header */ .site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow var(--transition), padding var(--transition); } .site-header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.08); } /* Desktop top bar shrink when scrolled */ .site-header.scrolled .header-topbar { max-height: 0; overflow: hidden; padding: 0; opacity: 0; transition: max-height 0.3s, opacity 0.3s, padding 0.3s; } .header-topbar { max-height: 40px; opacity: 1; transition: max-height 0.3s, opacity 0.3s, padding 0.3s; } .header-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; transition: padding var(--transition); } .site-header.scrolled .header-inner { padding-top: 6px; padding-bottom: 6px; } .header-logo img { height: 48px; width: auto; display: block; transition: height var(--transition); } .site-header.scrolled .header-logo img { height: 38px; } /* Desktop Navigation */ .header-nav { display: none; } @media (min-width: 1024px) { .header-nav { display: block; } .nav-list { display: flex; align-items: center; gap: 4px; } .nav-item > a { display: block; padding: 8px 12px; font-size: 0.82rem; font-weight: 500; color: var(--text); border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition); white-space: nowrap; } .nav-item > a:hover { background: var(--bg-light); color: var(--primary); } /* Sub-navigation */ .nav-item.has-sub { position: relative; } .sub-nav { position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s, visibility 0.2s, transform 0.2s; z-index: 100; } .nav-item.has-sub:hover .sub-nav { opacity: 1; visibility: visible; transform: translateY(0); } .sub-nav li a { display: block; padding: 8px 18px; font-size: 0.82rem; color: var(--text); transition: background var(--transition), color var(--transition); } .sub-nav li a:hover { background: var(--bg-light); color: var(--primary); } } /* Header CTA buttons (already styled in critical CSS) */ .header-ctas { display: flex; align-items: center; gap: 8px; } /* Hamburger */ .hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1002; } .hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; } .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); } .hamburger.active span:nth-child(2) { opacity: 0; } .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); } @media (min-width: 1024px) { .hamburger { display: none; } } /* Mobile Menu */ .mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); z-index: 999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; } .mobile-menu.active { opacity: 1; visibility: visible; } .mobile-menu ul { text-align: center; } .mobile-menu li { margin-bottom: 4px; } .mobile-menu a { display: block; padding: 14px 32px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text); border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition); } .mobile-menu a:hover { background: var(--bg-light); color: var(--primary); } @media (min-width: 1024px) { .mobile-menu { display: none !important; } } /* ========================================================================== HERO ========================================================================== */ .hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: 68px; background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 55%, var(--dark-emerald) 100%); } @media (min-width: 768px) { .hero { margin-top: 100px; } } /* ========================================================================== TRUST BAR ========================================================================== */ .trust-bar { background: var(--bg-light); border-bottom: 1px solid var(--border); padding: 20px 0; } .trust-bar-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 20px; } .trust-badge { display: flex; align-items: center; gap: 12px; } .trust-badge div { display: flex; flex-direction: column; } .trust-badge strong { font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 700; } .trust-badge span { font-size: 0.72rem; color: var(--text-light); } @media (min-width: 768px) { .trust-bar-inner { grid-template-columns: repeat(4, 1fr); } } /* ========================================================================== ANIMATED BORDER CARDS ========================================================================== */ .animated-border-card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); } .animated-border-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2; } .animated-border-card::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); border: 2px solid transparent; transition: border-color 0.4s; pointer-events: none; z-index: 1; } .animated-border-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); } .animated-border-card:hover::before { transform: scaleX(1); } .animated-border-card:hover::after { border-color: var(--primary-light); } /* ========================================================================== CAROUSEL — Wheel Effect The centered card is larger; flanking cards are smaller/tucked behind ========================================================================== */ .carousel-wrapper { position: relative; overflow: hidden; padding: 20px 0 40px; } .carousel-track { display: flex; align-items: center; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); padding: 40px 0; cursor: grab; } .carousel-track:active { cursor: grabbing; } .carousel-card { flex: 0 0 85%; max-width: 360px; margin: 0 10px; padding: 28px 24px; transform: scale(0.82); opacity: 0.55; filter: blur(1px); transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s, filter 0.6s; z-index: 1; } .carousel-card.active { transform: scale(1); opacity: 1; filter: blur(0); z-index: 10; } .carousel-card.adjacent { transform: scale(0.88); opacity: 0.7; filter: blur(0); z-index: 5; } @media (min-width: 768px) { .carousel-card { flex: 0 0 360px; margin: 0 14px; } } /* Card content */ .card-icon-wrap { width: 56px; height: 56px; background: linear-gradient(135deg, rgba(4,99,7,0.08), rgba(80,200,120,0.08)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; } .carousel-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; color: var(--text); } .carousel-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.55; margin-bottom: 14px; } .card-link { display: inline-flex; align-items: center; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.82rem; color: var(--primary); transition: color var(--transition), gap var(--transition); } .card-link:hover { color: var(--primary-light); } /* Carousel Controls */ .carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; } .carousel-btn { width: 44px; height: 44px; border: 2px solid var(--border); background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color var(--transition), background var(--transition), transform var(--transition); color: var(--text); } .carousel-btn:hover { border-color: var(--primary); background: var(--primary); color: var(--white); transform: scale(1.05); } .carousel-dots { display: flex; gap: 6px; } .carousel-dots .dot { width: 8px; height: 8px; border-radius: 100px; background: var(--border); transition: background var(--transition), width var(--transition); cursor: pointer; } .carousel-dots .dot.active { background: var(--primary); width: 24px; } /* ========================================================================== SERVICES SECTION ========================================================================== */ .services-section { padding: 64px 0; background: var(--white); } /* ========================================================================== HOW IT WORKS ========================================================================== */ .how-section { padding: 64px 0; background: var(--bg-light); } .how-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 32px; } .how-step { text-align: center; padding: 24px 20px; position: relative; } .how-number { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--white); margin: 0 auto 14px; } .how-step h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 8px; } .how-step p { font-size: 0.88rem; color: var(--text-light); line-height: 1.55; } .how-step a { color: var(--primary); font-weight: 500; } @media (min-width: 768px) { .how-grid { grid-template-columns: repeat(4, 1fr); } } /* ========================================================================== GENERATORS ========================================================================== */ .generators-section { padding: 64px 0; background: var(--white); } .gen-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; } @media (min-width: 768px) { .gen-layout { grid-template-columns: 1fr 1fr; } } .gen-content p { color: var(--text-light); margin-bottom: 16px; line-height: 1.65; } .gen-features { margin: 20px 0; } .gen-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.92rem; font-weight: 500; } .gen-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; } .gen-visual { display: flex; justify-content: center; } .gen-image-card { width: 100%; max-width: 440px; background: linear-gradient(135deg, var(--bg-light), rgba(80,200,120,0.08)); border-radius: var(--radius); border: 2px solid var(--border); overflow: hidden; } .gen-img-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; gap: 16px; padding: 32px; } .gen-img-placeholder span { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.82rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.1em; } /* ========================================================================== SPECIAL OFFERS ========================================================================== */ .offers-section { padding: 64px 0; background: var(--bg-light); } .offers-grid { display: grid; grid-template-columns: 1fr; gap: 20px; } @media (min-width: 600px) { .offers-grid { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 960px) { .offers-grid { grid-template-columns: repeat(4, 1fr); } } .offer-card { padding: 28px 24px; text-align: center; } .offer-amount { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 2.2rem; color: var(--primary); line-height: 1; margin-bottom: 4px; } .offer-amount span { font-size: 0.9rem; font-weight: 700; color: var(--primary-light); display: block; letter-spacing: 0.15em; } .offer-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; margin: 12px 0 8px; } .offer-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 18px; line-height: 1.5; } /* ========================================================================== COMMERCIAL ========================================================================== */ .commercial-section { padding: 64px 0; background: var(--white); } .commercial-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; } @media (min-width: 768px) { .commercial-layout { grid-template-columns: 1fr 1fr; } } .commercial-content p { color: var(--text-light); margin-bottom: 16px; line-height: 1.65; } .commercial-visual { display: flex; justify-content: center; } /* ========================================================================== ABOUT US ========================================================================== */ .about-section { padding: 64px 0; background: var(--bg-light); } .about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 32px; } @media (min-width: 768px) { .about-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; } } .about-text p { color: var(--text-light); margin-bottom: 16px; line-height: 1.65; } .about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; } .stat-card { background: var(--white); border-radius: var(--radius); padding: 24px 16px; text-align: center; border: 1px solid var(--border); transition: border-color var(--transition), transform var(--transition); } .stat-card:hover { border-color: var(--primary-light); transform: translateY(-4px); } .stat-number { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.8rem; color: var(--primary); line-height: 1; } .stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 6px; font-weight: 500; } /* ========================================================================== REVIEWS ========================================================================== */ .reviews-section { padding: 64px 0; background: var(--white); } .review-card { text-align: center; } .review-stars { font-size: 1.2rem; color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; } .review-card > p { font-size: 0.92rem; font-style: italic; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; } .review-author { font-size: 0.82rem; font-weight: 500; color: var(--text); } .review-author strong { color: var(--primary); } /* ========================================================================== SERVICE AREAS ========================================================================== */ .areas-section { padding: 64px 0; background: var(--bg-light); } .areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; } @media (min-width: 600px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 960px) { .areas-grid { grid-template-columns: repeat(5, 1fr); } } .area-btn { display: flex; align-items: center; justify-content: center; padding: 12px 16px; background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.78rem; color: var(--text); text-align: center; transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition); cursor: pointer; } .area-btn:hover { border-color: var(--primary); background: var(--primary); color: var(--white); transform: translateY(-3px); } /* ========================================================================== CONTACT / SCHEDULE ========================================================================== */ .contact-section { padding: 64px 0; background: var(--white); } .contact-layout { display: grid; grid-template-columns: 1fr; gap: 40px; } @media (min-width: 768px) { .contact-layout { grid-template-columns: 1fr 1.1fr; align-items: start; } } .contact-info p { color: var(--text-light); line-height: 1.65; margin-bottom: 24px; } .contact-details { display: flex; flex-direction: column; gap: 16px; } .contact-item { display: flex; align-items: flex-start; gap: 12px; } .contact-item svg { flex-shrink: 0; margin-top: 2px; } .contact-item strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.82rem; font-weight: 700; } .contact-item a { color: var(--primary); font-weight: 500; } .contact-item span { font-size: 0.88rem; color: var(--text-light); } /* Form */ .form-card { background: var(--bg-light); border-radius: var(--radius); border: 1px solid var(--border); padding: 32px 24px; } .form-card h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.2rem; margin-bottom: 4px; } .form-note { font-size: 0.78rem; color: var(--text-light); margin-bottom: 20px; font-style: italic; } .form-group { margin-bottom: 14px; } .form-group label { display: block; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.78rem; color: var(--text); margin-bottom: 4px; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: 'DM Sans', system-ui, sans-serif; font-size: 0.92rem; color: var(--text); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); outline: none; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(4,99,7,0.1); } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .form-submit { width: 100%; justify-content: center; border: none; cursor: pointer; margin-top: 4px; font-size: 0.95rem; padding: 14px 24px; } /* ========================================================================== FOOTER ========================================================================== */ .site-footer { background: var(--dark-emerald); color: rgba(255,255,255,0.85); } .footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 32px; padding: 48px 20px 32px; } @media (min-width: 768px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; } } .footer-logo { height: 44px; width: auto; margin-bottom: 14px; } .footer-brand p { font-size: 0.85rem; line-height: 1.55; max-width: 280px; margin-bottom: 16px; } .footer-social { display: flex; gap: 12px; } .footer-social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); transition: background var(--transition), border-color var(--transition); } .footer-social a:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); } .footer-col h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--white); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.1em; } .footer-col ul li { margin-bottom: 8px; } .footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.7); transition: color var(--transition); } .footer-col ul li a:hover { color: var(--white); } .footer-col p { font-size: 0.85rem; color: rgba(255,255,255,0.7); } .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; } .footer-bottom-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; } .footer-bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.5); } .footer-bottom-links { display: flex; gap: 16px; } .footer-bottom-links a { font-size: 0.72rem; color: rgba(255,255,255,0.5); transition: color var(--transition); } .footer-bottom-links a:hover { color: var(--white); } /* ========================================================================== MOBILE STICKY BAR ========================================================================== */ .mobile-sticky-bar { position: fixed; bottom: 0; left: 0; width: 100%; display: flex; z-index: 999; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -2px 16px rgba(0,0,0,0.08); } .sticky-call, .sticky-schedule { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.85rem; text-decoration: none; transition: background var(--transition); } .sticky-call { background: var(--accent); color: var(--white); } .sticky-call:hover { background: var(--accent-light); } .sticky-schedule { background: var(--primary); color: var(--white); } .sticky-schedule:hover { background: var(--accent-green); } @media (min-width: 768px) { .mobile-sticky-bar { display: none; } } /* ========================================================================== REVEAL ANIMATIONS (triggered by IntersectionObserver) ========================================================================== */ .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; } .reveal.visible { opacity: 1; transform: translateY(0); } /* Stagger children */ .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; } .reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; } .reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; } .reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; } .reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; } .reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; } .reveal-stagger.visible > * { opacity: 1; transform: translateY(0); } /* ========================================================================== ACCESSIBILITY ========================================================================== */ :focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; } /* Print */ @media print { .site-header, .mobile-sticky-bar, .hero-bolt, .hero-overlay { display: none; } .hero { min-height: auto; margin-top: 0; padding: 40px 20px; } body { padding-bottom: 0; } } /* ========================================================================== V3 ENHANCEMENTS — Image integration, card borders, logo ratio fix ========================================================================== */ /* ── LOGO: preserve natural aspect ratio exactly ── */ .header-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; line-height: 0; } .header-logo img { /* height driven; width:auto honours natural 210:52 proportions */ height: 52px; width: auto; max-width: 240px; display: block; object-fit: contain; object-position: left center; transition: height 0.3s; } .site-header.scrolled .header-logo img { height: 40px; } /* Remove any accidental width constraints set elsewhere */ .header-logo img[width] { width: auto !important; } /* ── HERO BACKGROUND PHOTO ── */ .hero-bg-img { position: absolute; inset: 0; z-index: 0; background: url('images/florida_home_night.jpg') center center / cover no-repeat; opacity: 0.22; filter: saturate(0.5) brightness(0.6); } /* Ensure text sits above bg */ .hero-overlay { z-index: 1; } .hero-bolt { z-index: 1; } .hero-content { z-index: 2; } /* ── SERVICE CARD IMAGE ── */ .card-img-wrap { width: 100%; height: 180px; border-radius: 10px; overflow: hidden; margin-bottom: 14px; background: var(--bg-light); border: 1px solid rgba(0,0,0,0.06); } .card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease, filter 0.3s ease; filter: saturate(0.88) brightness(0.94); } .carousel-card:hover .card-img-wrap img, .carousel-card.active .card-img-wrap img { transform: scale(1.05); filter: saturate(1.08) brightness(1.02); } /* ── ANIMATED-BORDER CARDS — visible default border ── */ /* Cards must have a clear visible border BEFORE hover, not just after */ .animated-border-card { border: 2px solid var(--border) !important; /* visible resting state */ } /* The existing ::before top-bar animation is retained. On hover the border transitions to primary-light. */ .animated-border-card:hover { border-color: var(--primary-light) !important; } /* ── GENERATORS — real photo ── */ .gen-image-card { border: 2px solid var(--border); transition: border-color 0.3s; } .gen-image-card:hover { border-color: var(--primary-light); } .gen-photo { width: 100%; height: auto; display: block; object-fit: cover; transition: transform 0.45s ease; } .gen-image-card:hover .gen-photo { transform: scale(1.02); } /* Remove old placeholder style now that we have real images */ .gen-img-placeholder { display: none !important; } /* Generator section: make the image taller on desktop */ @media (min-width: 768px) { .gen-image-card .gen-photo { max-height: 440px; object-fit: cover; } } /* ── OFFERS — coupon images ── */ .offer-img-wrap { width: 100%; height: 160px; overflow: hidden; border-radius: 10px 10px 0 0; margin-bottom: 0; background: var(--bg-light); } .offer-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; } .offer-card:hover .offer-img-wrap img { transform: scale(1.04); } /* Ensure offer card padding starts below the image */ .offer-card { padding: 0 0 24px; overflow: hidden; } .offer-card .offer-amount, .offer-card h3, .offer-card p, .offer-card .cta-call { margin-left: 20px; margin-right: 20px; } .offer-card .offer-amount { margin-top: 16px; } /* ── ABOUT — van image ── */ .about-van-wrap { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--border); transition: border-color 0.3s, box-shadow 0.3s; } .about-van-wrap:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); } .about-van-wrap img { width: 100%; height: auto; display: block; object-fit: cover; max-height: 260px; transition: transform 0.4s ease; filter: saturate(0.9) brightness(0.95); } .about-van-wrap:hover img { transform: scale(1.02); filter: saturate(1.05) brightness(1.0); } /* ── COMMERCIAL — real photo ── */ .commercial-visual .gen-image-card .gen-photo { max-height: 320px; object-fit: cover; } /* ── STAT CARDS — visible border ── */ .stat-card { border: 2px solid var(--border); } .stat-card:hover { border-color: var(--primary-light); } /* ── HOW STEPS — add card style ── */ .how-step { background: var(--white); border-radius: var(--radius); border: 2px solid var(--border); padding: 28px 22px; transition: border-color 0.3s, transform 0.25s, box-shadow 0.25s; position: relative; overflow: hidden; } .how-step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); z-index: 2; } .how-step:hover { border-color: var(--primary-light); transform: translateY(-5px); box-shadow: var(--shadow-md); } .how-step:hover::before { transform: scaleX(1); } /* ── AREA BUTTONS — ensure visible border ── */ .area-btn { border: 2px solid var(--border); } /* ── FOOTER LOGO — ratio preserved ── */ .footer-logo { height: 44px; width: auto !important; max-width: 210px; object-fit: contain; object-position: left center; } /* ── PRINT ── */ @media print { .hero-bg-img { display: none; } }