/*
Theme Name: Alex & Family
Theme URI: https://alex-and-family.com
Description: Clean all-white handyman theme
Version: 6.0.0
Text Domain: alex-family
*/

/* ============================================
   Variables
   ============================================ */
:root {
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-400: #a3a3a3;
    --gray-600: #525252;
    --gray-800: #262626;
    --gray-900: #171717;
    --accent: #059669;
    --accent-dark: #047857;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   Reset
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1rem;
}

p {
    color: var(--gray-600);
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Button
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-outline {
    background: transparent;
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   HEADER - Logo Left, Phone Right
   ============================================ */
.site-header {
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    max-height: 60px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--gray-400);
    display: block;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--gray-800);
}

.header-phone svg {
    color: var(--accent);
}

/* ============================================
   MAIN SECTION - Logo Left, Portfolio Right
   ============================================ */
.main-hero {
    padding: 60px 24px;
    background: var(--white);
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 320px 1fr;
    }
}

/* Left Side - Company Info (Clean, no card) */
.hero-left {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
}

/* Removed top green line */

.company-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.company-logo img {
    max-height: 280px;
    max-width: 560px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.company-name {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
    text-align: center;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-tagline {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 28px;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.contact-list {
    margin-bottom: 28px;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(16, 185, 129, 0.04) 100%);
    transform: translateX(4px);
}

.contact-item svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    padding: 8px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    box-sizing: content-box;
}

.contact-item a,
.contact-item span {
    font-size: 0.9375rem;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--accent);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
    padding-top: 0;
    border-top: none;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #10b981 50%, var(--accent-dark) 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.35);
    padding: 16px 28px;
    font-size: 1rem;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 52px;
}

.hero-buttons .btn-primary:hover {
    box-shadow: 0 6px 28px rgba(5, 150, 105, 0.45);
    transform: translateY(-2px);
}

.hero-buttons .btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: var(--white);
    padding: 16px 28px;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    width: 100%;
    min-height: 52px;
}

.hero-buttons .btn-outline:hover {
    background: rgba(5, 150, 105, 0.08);
    transform: translateY(-2px);
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Right Side - Portfolio Grid */
.hero-right h2 {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 16px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

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

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 12px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 500;
    z-index: 2;
}

/* Portfolio Slideshow Styles */
.portfolio-slide {
    transition: opacity 0.5s ease-in-out;
}

.portfolio-slide.active {
    opacity: 1 !important;
    position: relative !important;
}

.slide-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slide-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ============================================
   SECTION BASE
   ============================================ */
.section {
    padding: 60px 24px;
    background: var(--white);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.section-subtitle {
    color: var(--gray-500);
    margin-bottom: 32px;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-grid {
    display: grid;
    gap: 24px;
}

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

.review-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
}

.review-stars {
    display: flex;
    gap: 2px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.review-text {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.review-name {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.9375rem;
}

.review-source {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* External Reviews Widget */
.external-reviews-widget {
    margin-bottom: 32px;
}

/* Review Platform Links */
.review-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.review-platform-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-700);
    transition: all 0.2s;
}

.review-platform-link:hover {
    border-color: #4285f4;
    color: #4285f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.review-platform-link svg {
    fill: #4285f4;
}

.review-platform-link.yelp:hover {
    border-color: #d32323;
    color: #d32323;
    box-shadow: 0 4px 12px rgba(211, 35, 35, 0.2);
}

.review-platform-link.yelp svg {
    fill: #d32323;
}

.review-platform-link.thumbtack:hover {
    border-color: #009fd9;
    color: #009fd9;
    box-shadow: 0 4px 12px rgba(0, 159, 217, 0.2);
}

.review-platform-link.thumbtack svg {
    fill: #009fd9;
}

/* ============================================
   SERVICE AREA
   ============================================ */
.area-content {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .area-content {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.area-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

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

.cities-grid li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.cities-grid li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    font-size: 0.75rem;
}

.map-box {
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
}

.map-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   ABOUT US
   ============================================ */
.about-content {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text p {
    margin-bottom: 16px;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.service-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.service-card:hover {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.service-card h4 {
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.service-card p {
    font-size: 0.75rem;
    margin: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
    display: grid;
    gap: 32px;
}

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

.contact-box {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 32px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.contact-info-value {
    font-weight: 600;
    color: var(--gray-900);
}

.contact-info-value a {
    color: var(--gray-900);
}

.contact-info-value a:hover {
    color: var(--accent);
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--white);
}

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

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* ============================================
   FOOTER - MINIMAL
   ============================================ */
.site-footer-minimal {
    background: var(--white);
    padding: 24px;
    text-align: center;
    border-top: 1px solid var(--gray-100);
}

.site-footer-minimal p {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin: 0;
}

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
}

.chat-toggle:hover {
    transform: scale(1.05);
}

.chat-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    overflow: hidden;
}

.chat-popup.active {
    display: block;
}

.chat-header {
    background: var(--accent);
    color: var(--white);
    padding: 20px;
    position: relative;
}

.chat-header h4 {
    color: var(--white);
    font-size: 1rem;
    margin: 0 0 4px;
}

.chat-header p {
    font-size: 0.8125rem;
    opacity: 0.9;
    margin: 0;
    color: var(--white);
}

.chat-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

.chat-body {
    padding: 20px;
}