/* ============================================
   Bothwell Home Care Services — Styles
   Palette: Terracotta + Sand
   ============================================ */

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

:root {
    --terracotta: #B85C38;
    --terracotta-deep: #9A4B2C;
    --terracotta-light: #D4845E;
    --sand: #F5EDE3;
    --sand-light: #FAF6F1;
    --sand-mid: #EDE3D7;
    --cream: #FDF9F5;
    --charcoal: #2A2420;
    --charcoal-light: #4A403A;
    --warm-gray: #7A6E66;
    --warm-gray-light: #A89A90;
    --white: #FFFFFF;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--charcoal);
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--charcoal);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--warm-gray);
    max-width: 520px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 14px 32px;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--terracotta-deep);
    border-color: var(--terracotta-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(184, 92, 56, 0.25);
}

.btn-text {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--sand-mid);
    padding: 14px 16px;
}

.btn-text:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 249, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    border-bottom-color: var(--sand-mid);
    box-shadow: 0 1px 0 rgba(42, 36, 32, 0.04);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.01em;
}

.nav-logo-icon {
    color: var(--terracotta);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--charcoal-light);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--terracotta);
    transition: width 0.3s var(--ease-out);
}

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

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

.nav-cta {
    border: 1px solid var(--sand-mid);
    padding: 10px 22px;
    border-radius: 2px;
    transition: all 0.3s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    border-color: var(--terracotta);
    color: var(--terracotta) !important;
    background: rgba(184, 92, 56, 0.04);
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-menu-btn span {
    width: 22px;
    height: 1.5px;
    background: var(--charcoal);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.nav-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    flex: 1;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 28px;
    letter-spacing: -0.01em;
}

.hero-body {
    font-size: 1.05rem;
    color: var(--warm-gray);
    line-height: 1.8;
    max-width: 460px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-right {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: 780px;
    object-fit: cover;
    display: block;
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--sand-mid);
    border-radius: 2px;
    z-index: -1;
}

.hero-line {
    height: 1px;
    background: linear-gradient(to right, var(--sand-mid), transparent);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Services --- */
.services {
    padding: 120px 0;
    background: var(--sand-light);
}

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

.services .section-subtitle {
    margin: 0 auto 64px;
}

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

.service-card {
    background: var(--sand-light);
    padding: 48px 36px;
    text-align: left;
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--warm-gray-light);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sand-mid);
    border-radius: 2px;
    margin-bottom: 24px;
    color: var(--terracotta);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--charcoal);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--cream);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-col {
    position: relative;
}

.about-image-main {
    border-radius: 2px;
    overflow: hidden;
}

.about-image-main img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block;
}

.about-image-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 260px;
    border-radius: 2px;
    overflow: hidden;
    border: 6px solid var(--cream);
    box-shadow: 0 8px 32px rgba(42, 36, 32, 0.08);
}

.about-image-secondary img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.about-text-col {
    padding-top: 40px;
}

.about-body {
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-values {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 40px;
    border-top: 1px solid var(--sand-mid);
}

.value-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--charcoal-light);
}

.value-line {
    width: 32px;
    height: 1px;
    background: var(--terracotta);
    flex-shrink: 0;
}

/* --- Approach --- */
.approach {
    padding: 120px 0;
    background: var(--charcoal);
}

.approach .container {
    max-width: 1000px;
}

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

.approach-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    margin-bottom: 24px;
    display: block;
}

.approach-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--sand);
    margin-bottom: 72px;
    line-height: 1.2;
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: left;
}

.approach-step {
    position: relative;
}

.approach-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    right: -20px;
    width: 1px;
    height: calc(100% - 48px);
    background: rgba(184, 92, 56, 0.3);
}

.approach-step-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--terracotta);
    line-height: 1;
    margin-bottom: 20px;
}

.approach-step h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--sand);
    margin-bottom: 12px;
}

.approach-step p {
    font-size: 0.88rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* --- Community --- */
.community {
    padding: 120px 0;
    background: var(--sand);
}

.community-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.community-body {
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.community-visual {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.community-stat {
    background: var(--sand);
    padding: 48px 40px;
    text-align: center;
    transition: all 0.4s var(--ease-out);
}

.community-stat:first-child {
    border-radius: 2px 2px 0 0;
}

.community-stat:last-child {
    border-radius: 0 0 2px 2px;
}

.community-stat:hover {
    background: var(--terracotta);
}

.community-stat:hover .stat-number,
.community-stat:hover .stat-label {
    color: var(--white);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm-gray);
    transition: color 0.3s ease;
}

/* --- CTA / Contact --- */
.cta {
    padding: 120px 0;
    background: var(--cream);
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.cta-headline {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-body {
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 40px;
}

.cta-contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item svg {
    color: var(--terracotta);
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-gray-light);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact-item a {
    color: var(--charcoal);
    transition: color 0.3s ease;
}

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

/* --- Form --- */
.contact-form {
    background: var(--sand-light);
    padding: 48px;
    border-radius: 2px;
    border: 1px solid var(--sand-mid);
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--charcoal);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--sand-mid);
    outline: none;
    transition: border-color 0.3s ease;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--terracotta);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--warm-gray-light);
}

.form-note {
    font-size: 0.78rem;
    color: var(--warm-gray-light);
    margin-top: 16px;
    text-align: center;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(184, 92, 56, 0.08);
    border-radius: 2px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--terracotta-deep);
}

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

.form-success svg {
    flex-shrink: 0;
    color: var(--terracotta);
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 48px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--sand);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    color: var(--terracotta-light);
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--warm-gray);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--warm-gray);
    transition: color 0.3s ease;
}

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

.footer-contact p {
    font-size: 0.85rem;
    color: var(--warm-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--warm-gray);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--terracotta-light);
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--terracotta-light);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 237, 227, 0.08);
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--warm-gray);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS disabled */
.reveal {
    opacity: 1;
    transform: none;
}

/* --- Mobile Menu Overlay --- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(253, 249, 245, 0.98);
    backdrop-filter: blur(16px);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.nav-overlay.open {
    display: flex;
}

.nav-overlay-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.nav-overlay-links a {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--charcoal);
    transition: color 0.3s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .approach-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }

    .approach-step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-menu-btn {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 40px 24px 60px;
        gap: 40px;
    }

    .hero-right {
        order: -1;
    }

    .hero-image-wrapper img {
        height: 420px;
    }

    .hero-image-accent {
        display: none;
    }

    .hero-headline {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .services {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .service-card {
        padding: 36px 28px;
    }

    .about {
        padding: 80px 0;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-image-main img {
        height: 400px;
    }

    .about-image-secondary {
        width: 200px;
        right: 0;
        bottom: -30px;
    }

    .about-image-secondary img {
        height: 220px;
    }

    .about-text-col {
        padding-top: 0;
    }

    .approach {
        padding: 80px 0;
    }

    .approach-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .community {
        padding: 80px 0;
    }

    .community-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cta {
        padding: 80px 0;
    }

    .cta-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero-image-wrapper img {
        height: 340px;
    }
}
