/* ==========================================================================
   Generic business template (Other) — RSA Web Design
   Colors live in the custom properties below so the build pipeline's palette
   customization can re-theme the whole site by editing only :root.
   ========================================================================== */

:root {
    --color-primary:      #0a2a6e;  /* navy */
    --color-primary-dark: #071d52;
    --color-accent-soft:  #1a3f8f;  /* lighter navy for bands */
    --color-accent-bright: #7a9fd4; /* navy lightened for text over dark imagery */
    --color-dark:         #0d1b2a;  /* near-black navy */
    --color-dark-soft:    #1c2e45;
    --color-panel:        #f3f5f8;  /* cool light panel */
    --color-bg:           #f8f9fc;  /* cool off-white */
    --color-light:        #ffffff;
    --color-text:         #2e3a4e;
    --color-text-muted:   #5e6e85;
    --color-text-on-dark: #e8edf5;
    --color-line:         #dde3ed;
}

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

html { scroll-behavior: smooth; }

/* keep anchored section tops clear of the sticky header */
section[id] { scroll-margin-top: 120px; }

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-bg);
}

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 5.5rem 0; }
.section-panel { background: var(--color-panel); }

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

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--color-dark);
    line-height: 1.15;
    margin-bottom: 2rem;
}

/* ── Header / nav ─────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 249, 252, 0.97);
    border-bottom: 1px solid var(--color-line);
}

/* Dark info strip above the nav */
.top-bar {
    background: var(--color-dark);
    color: var(--color-text-on-dark);
    font-size: 0.8125rem;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 38px;
}

.top-bar-item {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.top-bar-item svg {
    width: 15px;
    height: 15px;
    color: #7a9fd4;
    flex-shrink: 0;
}

.top-bar-hours { margin-left: auto; }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 1rem;
}

.nav-brand {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-dark);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.15s;
}

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

.nav-cta {
    background: var(--color-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    color: #fff !important;
    transition: background 0.15s;
}

.nav-cta:hover { background: var(--color-primary-dark); }

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

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { background: var(--color-bg); overflow: hidden; }

.hero-grid {
    display: grid;
    grid-template-columns: 6fr 5fr;
    gap: 3.5rem;
    align-items: center;
    min-height: 78vh;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.hero-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: 1.25rem;
}

.hero-sub { max-width: 32rem; margin-bottom: 2.25rem; font-size: 1.125rem; }

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

.hero-media { position: relative; }

/* soft navy offset panel behind the photo */
.hero-media::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 22px;
    right: -22px;
    bottom: -22px;
    background: rgba(26, 63, 143, 0.12);
    border-radius: 16px;
}

.hero-media img {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 16px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.9rem 1.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }

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

.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-small { padding: 0.55rem 1.3rem; font-size: 0.8125rem; }

.btn-block { width: 100%; }

/* ── About ────────────────────────────────────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 3.5rem;
}

.about-media img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
}

.about-copy p { margin-bottom: 1rem; }

.about-points { list-style: none; margin-top: 1.25rem; }

.about-points li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.7rem;
    font-weight: 500;
    color: var(--color-dark);
}

/* navy check mark */
.about-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 9px;
    height: 15px;
    border-right: 2.5px solid var(--color-primary);
    border-bottom: 2.5px solid var(--color-primary);
    transform: rotate(40deg);
}

/* Navy stats band */
.stats-band {
    background: var(--color-accent-soft);
    color: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat { display: flex; flex-direction: column; }

.stat-number {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-label { font-size: 0.875rem; opacity: 0.9; }

/* ── Services ─────────────────────────────────────────────────────────── */

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

.service-card {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 2rem 1.6rem;
    display: flex;
    flex-direction: column;
}

.service-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(26, 63, 143, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.service-icon { width: 34px; height: 34px; color: var(--color-primary); }

.service-card h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.service-card p { font-size: 0.9375rem; flex: 1; }

.service-price {
    margin-top: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ── Shop ─────────────────────────────────────────────────────────────── */

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

.product-card {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}

.product-card img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

.product-body { padding: 1.4rem 1.25rem 1.6rem; }

.product-body h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.product-price {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ── Gallery ──────────────────────────────────────────────────────────── */

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

.gallery-grid img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-grid img:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(13, 27, 42, 0.14);
}

/* ── Team ─────────────────────────────────────────────────────────────── */

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

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

.team-card img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    margin-bottom: 1.1rem;
    border-radius: 12px;
}

.team-card h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
}

.team-role { color: var(--color-primary); font-size: 0.9375rem; }

/* ── Testimonials ─────────────────────────────────────────────────────── */

/* Fixed-background "transparent" band — the photo reads through the cards.
   The image scrolls slower than the page (background-attachment: fixed);
   cards are semi-transparent so the image shows through them. */
.section-parallax {
    background-image: linear-gradient(rgba(13, 27, 42, 0.84), rgba(13, 27, 42, 0.84)), url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-text-on-dark);
}

.section-parallax .section-title { color: #ffffff; }
.section-parallax .section-eyebrow { color: var(--color-accent-bright); }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.testimonial-card {
    background: rgba(13, 27, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 12px;
    padding: 3.25rem 1.9rem 1.9rem;
    position: relative;
}

/* oversized serif quote mark */
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: 1.4rem;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 4.25rem;
    line-height: 1;
    color: rgba(122, 159, 212, 0.35);
}

.testimonial-card p { font-style: italic; margin-bottom: 1.25rem; position: relative; }

.testimonial-card footer {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent-bright);
}

/* ── Blog ─────────────────────────────────────────────────────────────── */

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

.blog-card {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    overflow: hidden;
}

.blog-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.blog-body { padding: 1.4rem 1.4rem 1.6rem; }

.blog-date {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.blog-body h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.blog-body p { font-size: 0.9375rem; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq-container { max-width: 760px; }

.faq-item {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    margin-bottom: 0.9rem;
    padding: 0 1.4rem;
}

.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    padding: 1.1rem 0;
    font-weight: 600;
    color: var(--color-dark);
}

.faq-item summary::-webkit-details-marker { display: none; }

/* plus that becomes a minus when open */
.faq-marker {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.faq-marker::before,
.faq-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-primary);
    transition: transform 0.2s;
}

.faq-marker::before { width: 14px; height: 2px; }
.faq-marker::after  { width: 2px;  height: 14px; }

.faq-item[open] .faq-marker::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-item p { padding: 0 0 1.2rem; }

/* ── Contact ──────────────────────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info > p { margin-bottom: 1.25rem; }

.contact-phone {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.contact-details { list-style: none; margin-bottom: 2rem; }

.contact-details li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-line);
}

.contact-details strong {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-block;
    min-width: 6.5rem;
}

.contact-hours-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.9rem;
}

.hours-row {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.45rem 0;
}

.hours-row::before {
    content: '';
    order: 1;
    flex: 1;
    border-bottom: 2px dotted var(--color-line);
    transform: translateY(-4px);
}

.hours-day { color: var(--color-dark); font-weight: 500; }

.hours-time { order: 2; font-weight: 600; color: var(--color-dark); white-space: nowrap; }

.contact-form-wrap {
    background: var(--color-panel);
    border-radius: 16px;
    padding: 2.25rem;
}

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

.form-group label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
}

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

.form-extra { display: none; }

.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.success { color: #28a745; }
.form-status.error   { color: #ba1a1a; }

/* ── Map band ─────────────────────────────────────────────────────────── */

/* The map opens the section full-bleed — kill the section's own top
   padding so the band sits flush under the previous section */
.contact.section { padding-top: 0; }

.map-band {
    margin-bottom: 4rem;
    height: 420px;
    border-bottom: 4px solid var(--color-primary);
}

.map-band iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 640px) {
    .map-band { height: 280px; margin-bottom: 2.5rem; }
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--color-dark);
    color: var(--color-text-on-dark);
    padding: 1.75rem 0;
    font-size: 0.9375rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* The privacy link shares the credit link's treatment rather than carrying its
   own colour — one rule to keep in step with the palette, not two. */
.powered-by a, .footer-legal a { color: #7a9fd4; text-decoration: underline; text-underline-offset: 3px; }

/* ── Scroll to top ────────────────────────────────────────────────────── */

.scroll-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 90;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.15s;
}

.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.scroll-top:hover { background: var(--color-primary-dark); }

.scroll-top svg { width: 22px; height: 22px; }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    /* Fixed backgrounds are unreliable on mobile browsers */
    .section-parallax { background-attachment: scroll; }

    .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 2.5rem; }
    .hero-media { max-width: 480px; }
    .services-grid, .shop-grid, .blog-grid { grid-template-columns: 1fr; }
    .team-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-media { max-width: 480px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-band { grid-template-columns: repeat(2, 1fr); }
}

/* Nav collapses early — fewer links still benefit from the toggle on mid-size screens */
@media (max-width: 1240px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-line);
        padding: 0.5rem 0 1rem;
    }

    .nav-links.is-open { display: flex; }

    .nav-links li { text-align: center; }

    .nav-links a { display: block; padding: 0.8rem 1.25rem; }

    .nav-cta { margin: 0.5rem 1.25rem 0; }
}

@media (max-width: 640px) {
    .section { padding: 3.5rem 0; }
    .team-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .stats-band { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
    .top-bar-hours { display: none; }
    .top-bar-item:nth-child(2) { display: none; }
    .top-bar-inner { justify-content: center; }
}
