/* ========================================
   Bella Pools Inc — Custom Styles
   Palette: Charcoal (#2C2C2C) + Coral (#C05A4A)
   Fonts: Playfair Display + Lato
   ======================================== */

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

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

body {
    font-family: 'Lato', sans-serif;
    color: #2C2C2C;
    background-color: #FAFAF8;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #C05A4A;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #2C2C2C;
    color: #fff;
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 0;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: #1A1A1A;
}

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44, 44, 44, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(44, 44, 44, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-mark {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: #C05A4A;
    width: 40px;
    height: 40px;
    border: 2px solid #C05A4A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.02em;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1A1A1A;
    letter-spacing: -0.01em;
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2C2C2C;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #C05A4A;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #C05A4A;
}

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

.nav-cta {
    display: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: #2C2C2C;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger:nth-child(1) {
    transform: translateY(6px);
}

.hamburger:nth-child(3) {
    transform: translateY(-6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* Mobile navigation */
.main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(250, 250, 248, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(44, 44, 44, 0.08);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
}

.main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0;
}

.nav-list li {
    border-bottom: 1px solid rgba(44, 44, 44, 0.06);
}

.nav-list li:last-child {
    border-bottom: none;
}

.nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    letter-spacing: 0.03em;
}

.nav-link::after {
    display: none;
}

.nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    background: #C05A4A;
    color: #fff;
    transition: background 0.3s ease;
}

.nav-cta:hover {
    background: #A8493A;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #2C2C2C;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.7) 0%,
        rgba(44, 44, 44, 0.6) 50%,
        rgba(26, 26, 26, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem 1.5rem;
    padding-top: 5rem;
}

.hero-eyebrow {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #E8A090;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-title em {
    font-style: italic;
    color: #E8A090;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ========================================
   Buttons
   ======================================== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:focus-visible {
    outline-offset: 3px;
}

.cta-primary {
    background: #C05A4A;
    color: #FFFFFF;
    border-color: #C05A4A;
}

.cta-primary:hover {
    background: #A8493A;
    border-color: #A8493A;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(192, 90, 74, 0.3);
}

.cta-secondary {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-secondary:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.cta-outline {
    background: transparent;
    color: #1A1A1A;
    border-color: #2C2C2C;
}

.cta-outline:hover {
    background: #2C2C2C;
    color: #FFFFFF;
}

.cta-large {
    padding: 1.125rem 2.5rem;
    font-size: 0.9375rem;
}

.cta-full {
    width: 100%;
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C05A4A;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: #C05A4A;
    margin: 0 auto;
}

/* ========================================
   Services
   ======================================== */
.services {
    padding: 6rem 0;
    background: #FAFAF8;
}

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

.service-card {
    background: #FFFFFF;
    border: 1px solid rgba(44, 44, 44, 0.06);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(44, 44, 44, 0.08);
}

.service-icon {
    width: 56px;
    height: 56px;
    color: #C05A4A;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 0.75rem;
}

.service-description {
    font-size: 0.9375rem;
    color: #555555;
    line-height: 1.7;
}

/* ========================================
   About
   ======================================== */
.about {
    padding: 6rem 0;
    background: #F5F3F0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(44, 44, 44, 0.12);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    padding: 1rem 0;
}

.about-content .section-divider {
    margin: 0 0 2rem 0;
}

.about-text {
    font-size: 1rem;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #C05A4A;
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #888888;
}

/* ========================================
   Gallery
   ======================================== */
.gallery {
    padding: 6rem 0;
    background: #FAFAF8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(44, 44, 44, 0.75) 100%
    );
}

.cta-section .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-title {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ========================================
   Contact
   ======================================== */
.contact {
    padding: 6rem 0;
    background: #FFFFFF;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: #C05A4A;
    background: rgba(192, 90, 74, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 0.25rem;
}

.contact-detail {
    font-size: 0.9375rem;
    color: #555555;
    line-height: 1.7;
}

.contact-link {
    color: #C05A4A;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #A8493A;
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: #FAFAF8;
    border: 1px solid rgba(44, 44, 44, 0.06);
    border-radius: 8px;
    padding: 2.5rem;
}

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

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #1A1A1A;
    background: #FFFFFF;
    border: 1px solid rgba(44, 44, 44, 0.15);
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #C05A4A;
    box-shadow: 0 0 0 3px rgba(192, 90, 74, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #AAAAAA;
}

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

.form-success {
    display: none;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(192, 90, 74, 0.08);
    border-left: 3px solid #C05A4A;
    border-radius: 4px;
    font-size: 0.9375rem;
    color: #2C2C2C;
}

.form-success.visible {
    display: block;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #1A1A1A;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand .logo-mark {
    border-color: #C05A4A;
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: #FFFFFF;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-heading {
    font-family: 'Lato', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-list a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: #C05A4A;
}

.footer-address {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.footer-link {
    color: #C05A4A;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #E8A090;
}

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

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        border: none;
        background: transparent;
        backdrop-filter: none;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .nav-list li {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 0.25rem 0;
    }

    .nav-cta {
        display: flex;
    }
}

@media (max-width: 767px) {
    .header-inner {
        height: 70px;
    }

    .main-nav {
        top: 70px;
    }

    .hero-content {
        padding-top: 3rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image-wrapper {
        box-shadow: 0 10px 30px rgba(44, 44, 44, 0.1);
    }

    .about-stats {
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .services,
    .about,
    .gallery,
    .cta-section,
    .contact {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .gallery-item img {
        transition: transform 0.5s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
