/* ===================================
   GIERMAN PLUMBING - CUSTOM STYLES
   Classic & Elegant Design System
=================================== */

/* CSS Custom Properties */
:root {
    /* Plum Palette */
    --plum-900: #2d1b2e;
    --plum-800: #4a235a;
    --plum-700: #5c2d6e;
    --plum-600: #6b3580;
    --plum-500: #7e3fa0;
    --plum-100: #f3e8f5;
    --plum-50: #faf5fc;
    
    /* Amber Palette */
    --amber-600: #b8860b;
    --amber-500: #d4a373;
    --amber-400: #e8c49a;
    --amber-100: #fdf6ee;
    
    /* Neutrals */
    --neutral-900: #1a1a1a;
    --neutral-800: #2d2d2d;
    --neutral-700: #404040;
    --neutral-600: #555555;
    --neutral-500: #707070;
    --neutral-400: #909090;
    --neutral-300: #b0b0b0;
    --neutral-200: #d0d0d0;
    --neutral-100: #e8e8e8;
    --neutral-50: #f5f5f5;
    --white: #ffffff;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--neutral-800);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--neutral-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--plum-800);
    color: var(--white);
    border-color: var(--plum-800);
}

.btn-primary:hover {
    background: var(--plum-700);
    border-color: var(--plum-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--plum-800);
    border-color: var(--plum-800);
}

.btn-outline:hover {
    background: var(--plum-800);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 0.9375rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Section Styles */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amber-600);
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-500);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ===================================
   NAVIGATION
=================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--neutral-100);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--plum-800);
    letter-spacing: 0.05em;
}

.logo-icon {
    color: var(--amber-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
    letter-spacing: 0.02em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-600);
    transition: width var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--plum-800);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neutral-800);
    transition: all var(--transition-base);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    padding: var(--space-4xl) var(--space-2xl);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--neutral-800);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.mobile-link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--neutral-800);
    display: block;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--neutral-100);
}

.mobile-link:hover {
    color: var(--plum-800);
}

.mobile-cta {
    margin-top: var(--space-xl);
    border-bottom: none;
    color: var(--amber-600);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
}

/* ===================================
   HERO SECTION
=================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--plum-50) 0%, var(--white) 50%, var(--amber-100) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(74, 35, 90, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-content {
    padding: var(--space-2xl) 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--plum-700);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xl);
}

.badge-line {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--amber-600);
}

.hero-title {
    margin-bottom: var(--space-xl);
    color: var(--plum-900);
}

.hero-title em {
    font-style: italic;
    color: var(--amber-600);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--neutral-600);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.trust-item svg {
    color: var(--amber-600);
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
}

.hero-img-wrapper img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero-img-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--amber-500);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-stats {
    position: absolute;
    bottom: -30px;
    left: -30px;
    display: flex;
    gap: var(--space-md);
}

.stat-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--plum-800);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================================
   SERVICES SECTION
=================================== */
.services {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.service-card {
    padding: var(--space-2xl);
    background: var(--white);
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.service-card:hover {
    border-color: var(--plum-100);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--plum-50);
    border-radius: var(--radius-md);
    color: var(--plum-800);
    margin-bottom: var(--space-lg);
}

.service-card h3 {
    margin-bottom: var(--space-md);
    font-family: var(--font-serif);
}

.service-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===================================
   ABOUT SECTION
=================================== */
.about {
    padding: var(--space-4xl) 0;
    background: var(--neutral-50);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--white);
}

.about-img-secondary img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-experience {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--plum-800);
    color: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-experience .exp-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--amber-500);
    line-height: 1;
}

.about-experience .exp-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-sm);
}

.about-content {
    padding: var(--space-xl) 0;
}

.about-text {
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--amber-600);
    flex-shrink: 0;
}

.about-feature span {
    font-size: 0.9375rem;
    color: var(--neutral-700);
}

/* ===================================
   WHY US SECTION
=================================== */
.why-us {
    padding: var(--space-4xl) 0;
    background: var(--plum-900);
    color: var(--white);
}

.why-content {
    text-align: center;
    margin-bottom: var(--space-4xl);
}

.why-content .section-tag {
    color: var(--amber-500);
}

.why-content .section-title {
    color: var(--white);
}

.why-content .section-subtitle {
    color: var(--neutral-400);
    margin: 0 auto;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
}

.why-card {
    text-align: center;
    padding: var(--space-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.why-card:hover {
    border-color: var(--amber-500);
    background: rgba(255, 255, 255, 0.03);
}

.why-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    color: var(--amber-600);
    line-height: 1;
    margin-bottom: var(--space-lg);
}

.why-card h3 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-family: var(--font-serif);
}

.why-card p {
    color: var(--neutral-400);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ===================================
   CONTACT SECTION
=================================== */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

.contact-info {
    padding: var(--space-2xl) 0;
}

.contact-text {
    font-size: 1.0625rem;
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-item {
    display: flex;
    gap: var(--space-lg);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--plum-50);
    border-radius: var(--radius-md);
    color: var(--plum-800);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neutral-500);
    margin-bottom: var(--space-xs);
}

.contact-item p {
    color: var(--neutral-800);
    font-weight: 500;
}

.contact-item a {
    color: var(--plum-800);
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--neutral-50);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--neutral-800);
    background: var(--white);
    transition: border-color var(--transition-fast);
}

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

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

/* Form Success */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-4xl) var(--space-2xl);
}

.form-success.active {
    display: flex;
}

.success-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--plum-50);
    border-radius: 50%;
    color: var(--plum-800);
    margin-bottom: var(--space-xl);
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
}

.form-success p {
    margin-bottom: var(--space-xl);
}

/* ===================================
   FOOTER
=================================== */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-400);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer-logo span {
    color: var(--amber-500);
}

.footer-brand p {
    line-height: 1.8;
    font-size: 0.9375rem;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--neutral-400);
}

.footer-links a:hover {
    color: var(--amber-500);
}

.footer-contact p {
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
}

.footer-contact a {
    color: var(--neutral-400);
}

.footer-contact a:hover {
    color: var(--amber-500);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

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

/* ===================================
   RESPONSIVE DESIGN
=================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .hero-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-img-wrapper img {
        height: 500px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: var(--space-3xl);
    }
    
    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: var(--space-lg);
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-img-secondary {
        right: 0;
        bottom: -30px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-img-wrapper img {
        height: 400px;
    }
    
    .stat-card {
        min-width: 100px;
        padding: var(--space-md);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Animation Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
