/* 
   Spotless Cardiff - Premium Cleaning Services
   Modernized Design - 2026 
*/

/* --- 1. Variables & Reset --- */
:root {
    /* Brand Colors - Fresh & Vibrant */
    --primary-teal: #0d9488;       /* Teal 600 - Main Brand Color */
    --primary-light: #2dd4bf;      /* Teal 400 - Highlights/Gradients */
    --primary-dark: #0f172a;       /* Slate 900 - Text & Contrast */
    
    --secondary-blue: #0ea5e9;     /* Sky 500 - Secondary accents */
    
    --accent-gold: #f59e0b;        /* Amber 500 - CTA/Attention */
    --accent-hover: #d97706;       /* Amber 600 */

    /* Neutrals & Surfaces */
    --white: #ffffff;
    --surface-light: #f0fdfa;      /* Azure 50 - Very subtle tint */
    --surface-gray: #f8fafc;       /* Slate 50 */
    --text-dark: #0f172a;          /* Slate 900 */
    --text-body: #334155;          /* Slate 700 */
    --text-light: #64748b;         /* Slate 500 */
    
    /* Layout */
    --header-height: 90px;
    --container-width: 1200px;
    --transition-speed: 0.3s;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -5px rgba(13, 148, 136, 0.15); /* Tinted shadow */
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--surface-gray);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.1;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 5rem auto;
    font-size: 1.25rem;
    font-weight: 500;
}

/* --- 3. Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    text-transform: capitalize; /* Cleaner look */
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
    margin: 0.5rem;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-light));
    color: var(--white);
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--primary-teal);
    border: 2px solid rgba(13, 148, 136, 0.1);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary-teal);
    background: var(--surface-light);
    transform: translateY(-3px);
}

/* --- 4. Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    height: 80px; /* Slightly shrink on scroll */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--accent-gold); /* Keep accent for contrast */
}

/* Switch Logo color on scroll */
.header.scrolled .logo {
    color: var(--primary-dark);
}
.header.scrolled .logo span {
    color: var(--primary-teal);
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    position: relative;
    opacity: 0.9;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    border-radius: 2px;
    transition: width 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 24px;
}

.header.scrolled .nav-link {
    color: var(--text-dark);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-teal);
}

.mobile-menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.header.scrolled .mobile-menu-toggle {
    color: var(--primary-dark);
}

/* --- 5. Heroes --- */
/* Base Hero Logic */
.hero-base {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

/* Full Home Hero with Image */
.hero-home {
    min-height: 100vh;
    /* Updated Gradient: More vibrant, less muddy */
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(13, 148, 136, 0.85)),
        url('../assets/images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Decorative Circles in Hero */
.hero-home::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 60%);
    opacity: 0.15;
    filter: blur(60px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
    animation: fadeUp 1s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-title span {
    background: linear-gradient(to right, #ffffff, #ccfbf1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #e2e8f0;
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    opacity: 0.7;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    border: 2px solid rgba(255,255,255,0.3);
    width: 50px;
    height: 80px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    padding-top: 15px;
}

.scroll-indicator::after {
    content: '';
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 4px;
    animation: scrollWheel 1.5s infinite;
}

.scroll-indicator i { display: none; } /* Hide old icon */

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* --- Features (Cards / Zig-Zag) --- */
.feature-row {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-bottom: 8rem;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.feature-text p {
    font-size: 1.15rem;
    color: var(--text-body);
    margin-bottom: 2rem;
}

.feature-visual {
    flex: 1;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease;
}

.feature-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-visual:hover img {
    transform: scale(1.05);
}

/* Removed deprecated gradient classes: .gradient-1, .gradient-2 */

/* Checklist Styling */
.check-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
.check-list i {
    color: var(--primary-teal);
    background: var(--surface-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 0.9rem;
}

/* --- Trust / Stats Section --- */
.trust-section {
    background: var(--primary-dark);
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

/* Pattern Overlay */
.trust-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#334155 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
}

.trust-section .container {
    position: relative; 
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    backdrop-filter: blur(5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to bottom, var(--white), #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--surface-gray);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.card:hover::before {
    background: var(--primary-teal);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-teal);
    margin-bottom: 2rem;
    background: var(--surface-light);
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: 0.3s;
}

.card:hover .card-icon {
    background: var(--primary-teal);
    color: var(--white);
    transform: rotateY(180deg);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* --- Contact & Forms --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 4rem;
}

.contact-info-panel {
    background: var(--primary-dark);
    color: var(--white);
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
}

.contact-info-panel::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary-teal);
    filter: blur(80px); /* Glow effect */
    opacity: 0.4;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-info-item i {
    color: var(--primary-light);
    font-size: 1.5rem;
}

.contact-form-panel {
    padding: 4rem 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    background: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-teal);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
}

/* --- Footer --- */
.footer {
    background: var(--white);
    color: var(--text-light);
    padding: 6rem 0 2rem;
    border-top: 1px solid #f1f5f9;
}

.footer h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.footer h4 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-link {
    display: block;
    margin-bottom: 0.75rem;
    transition: 0.3s;
    color: var(--text-light);
}

.footer-link:hover {
    color: var(--primary-teal);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* --- Page Heroes (Services, About, etc) --- */
.hero-page {
    min-height: 50vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(13, 148, 136, 0.9)), url('../assets/images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 100px;
    display: flex;
    align-items: center;
}
.hero-page .hero-title {
    font-size: 3.5rem;
}
.hero-page .scroll-indicator { display: none; }


/* --- Animations (Observer) --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Secret Easter Egg --- */
.secret-container {
    margin-top: 2rem;
    text-align: center;
    opacity: 0.1; /* Almost invisible */
    transition: opacity 0.5s ease;
}

.secret-container:hover {
    opacity: 1; /* Reveal on hover */
}

.secret-img {
    width: 60px; /* Small */
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin: 0 10px; /* Spacing between images */
    cursor: pointer;
    display: inline-block; /* Side by side */
    transition: transform 0.3s;
}

.secret-img:hover {
    transform: scale(1.2) rotate(10deg);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .feature-row { gap: 3rem; }
    .hero-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        display: none;
        border-bottom: 4px solid var(--primary-teal);
    }
    
    .nav.active { display: flex; animation: fadeUp 0.3s ease; }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .nav-link { color: var(--text-dark); }
    
    .mobile-menu-toggle { display: block; }
    
    .hero-title { font-size: 2.5rem; }
    
    .feature-row, .footer-grid, .contact-container, .split-section {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
    }
    .feature-row:nth-child(even) { flex-direction: column !important; }
    
    .feature-visual { height: 300px; width: 100%; }
}
