/* ==========================================================================
   Purecrest Roofing - Global Styles & CSS Variables
   ========================================================================== */

:root {
    /* Brand Colors (Navy & Gold) */
    --color-navy: #0A192F;
    --color-navy-light: #172A45;
    --color-gold: #C5A059;
    --color-gold-light: #E0C07F;
    --color-gold-hover: #B08D4C;
    
    /* Neutrals */
    --color-white: #FFFFFF;
    --color-off-white: #F8F9FA;
    --color-gray-light: #E9ECEF;
    --color-text-main: #333333;
    --color-text-muted: #666666;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout & Spacing */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(10, 25, 47, 0.05);
    --shadow-md: 0 4px 12px rgba(10, 25, 47, 0.1);
    --shadow-lg: 0 12px 24px rgba(10, 25, 47, 0.15);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

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

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--color-off-white);
}

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition-normal);
}

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

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-normal);
}

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

.logo {
    height: 45px;
}

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

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-text-purecrest {
    color: var(--color-navy);
}

.logo-text-roofing {
    color: var(--color-gold);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-navy);
    margin: 5px 0;
    transition: 0.4s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Navy & Gold Overlay Overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.8) 0%, rgba(10, 25, 47, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    color: var(--color-white);
}

.hero-title {
    color: var(--color-white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Trust Strip
   ========================================================================== */

.trust-strip {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 2rem 0;
}

.trust-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.trust-icon {
    width: 24px;
    height: 24px;
    color: var(--color-gold);
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--color-gray-light);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-gold-light);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon-wrapper svg {
    width: 30px;
    height: 30px;
    color: var(--color-gold);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   Roofing Systems
   ========================================================================== */

.systems-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.systems-content {
    flex: 1;
}

.systems-content .section-title::after {
    left: 0;
    transform: none;
}

.systems-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.system-card {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-gold);
}

.system-badge {
    display: inline-block;
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.system-card p {
    margin: 0;
    color: var(--color-text-main);
    font-weight: 500;
}

/* ==========================================================================
   Gutters Section
   ========================================================================== */

.gutters-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-direction: row-reverse;
}

.gutters-content {
    flex: 1;
}

.gutters-content .section-title::after {
    left: 0;
    transform: none;
}

.gutters-image-placeholder {
    flex: 1;
    background: linear-gradient(135deg, var(--color-navy-light), var(--color-navy));
    border-radius: 8px;
    padding: 3rem;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.materials-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.material-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--color-gold);
    font-weight: 500;
    font-size: 1.1rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ==========================================================================
   CTA Band
   ========================================================================== */

.cta-band {
    background-color: var(--color-gold);
    color: var(--color-white);
    padding: 4rem 0;
}

.cta-band-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-band-content h2 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.cta-band-content p {
    font-size: 1.25rem;
    margin: 0;
    opacity: 0.9;
}

.cta-band .btn-primary {
    background-color: var(--color-navy);
}

.cta-band .btn-primary:hover {
    background-color: var(--color-navy-light);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info .section-title::after {
    left: 0;
    transform: none;
}

.info-blocks {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(197, 160, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-gold);
}

.info-block h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.info-block p {
    color: var(--color-text-muted);
    margin: 0;
}

.contact-form-container {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group.half {
    flex: 1;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-navy);
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding-top: 4rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1); /* Makes the logo white if it isn't */
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .systems-flex, .gutters-flex {
        flex-direction: column;
        gap: 3rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .cta-band-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide on mobile initially */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        gap: 1.5rem;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-cta {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; }
    
    .trust-container { justify-content: center; }
    .trust-item { width: 100%; justify-content: center; }
    
    .form-row { flex-direction: column; gap: 0; }
    
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
}
