/**
 * Concerq design system — inner pages
 *
 * The component language introduced on the home page (front-page.php),
 * extracted so inner pages (About, Services, ...) share it instead of
 * each keeping its own copy of the older pill-button / glass-card kit.
 *
 *  - Montserrat everywhere, light weights, no serif / italics
 *  - Squared buttons (10px / 8px radius) with an arrow glyph
 *  - Flat dark panels, 4px radius, gold hairline instead of glow/shadow
 *  - One gradient-text treatment for headings, muted bone body copy
 *
 * Enqueued from concerq_enqueue_assets() in functions.php for the
 * templates listed there. Page templates keep only their own layout
 * rules in their inline <style> blocks.
 */

:root {
    --cq-ink: #0b0a08;
    --cq-panel: #14110c;
    --cq-line: rgba(201, 162, 74, 0.18);
    --cq-gold: #d6b97c;
    --cq-gold-light: #ffffff;
    --cq-gold-dark: #d6b97c;
    --cq-bone: #f2ede2;
    --cq-muted: rgba(242, 237, 226, 0.6);
    --cq-btn-fill: linear-gradient(180deg, #e4cb92, #c7a667);
}

/* Same defensive reset as the home page: beat any leftover serif/italic
 * treatment in the Customizer's Additional CSS. */
.page-title, .page-subtitle,
.section-title, .section-description,
.cta-title, .cta-description, .cta-note,
.service-card, .service-card *,
.cq-panel, .cq-panel * {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-style: normal !important;
}

/* ==========================================================================
   Page hero
   ========================================================================== */

.page-title {
    font-weight: 300;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: var(--cq-btn-fill);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--cq-gold-dark);
}

.page-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 300;
    color: var(--cq-bone);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Section headings
   ========================================================================== */

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

.section-title {
    font-weight: 300;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: var(--cq-btn-fill);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--cq-gold-dark);
}

.section-description {
    font-size: 1.15rem;
    color: var(--cq-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Short gold hairline used above left-aligned section copy. */
.cq-rule {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--cq-line);
    margin: 0 0 1.5rem;
}

.text-center .cq-rule {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: clamp(0.6rem, 1svh, 1rem) clamp(1.2rem, 2.5svh, 2.5rem);
    background: var(--cq-btn-fill);
    color: var(--cq-ink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 10px;
    border: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 14px 30px -14px rgba(199, 166, 103, 0.6);
    text-decoration: none;
    font-size: clamp(0.75rem, 1svh + 0.2vw, 1rem);
}

.cta-button::after {
    content: '→';
    display: inline-block;
    transition: transform 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 18px 34px -14px rgba(199, 166, 103, 0.75);
    color: var(--cq-ink);
}

.cta-button:hover::after {
    transform: translateX(3px);
}

.cta-secondary {
    background: transparent;
    color: var(--cq-bone);
    -webkit-text-fill-color: var(--cq-bone);
    border: 1px solid var(--cq-line);
    box-shadow: none;
}

.cta-secondary::after {
    color: var(--cq-bone);
}

.cta-secondary:hover {
    background: var(--cq-btn-fill);
    color: var(--cq-ink);
    -webkit-text-fill-color: var(--cq-ink);
    border-color: var(--cq-gold-dark);
}

.cta-secondary:hover::after {
    color: var(--cq-ink);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Card-level buttons */
.explore-more-btn,
.book-now-btn {
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-align: center;
    white-space: nowrap;
}

.explore-more-btn {
    background: transparent;
    color: var(--cq-bone);
    font-weight: 600;
    border: 1px solid var(--cq-line);
    transition: all 0.3s ease;
}

.explore-more-btn:hover {
    background: var(--cq-btn-fill);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    border-color: var(--cq-gold-dark);
}

.book-now-btn {
    background: var(--cq-btn-fill);
    color: var(--cq-ink);
    font-weight: 700;
    transition: filter 0.3s ease, color 0.3s ease;
}

.book-now-btn:hover {
    filter: brightness(1.08);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Panels & service cards
   ========================================================================== */

/* Generic flat panel — replaces the old glass/gradient + 15–20px radius. */
.cq-panel {
    background: var(--cq-panel);
    border: 1px solid var(--cq-line);
    border-radius: 4px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.service-card {
    background: var(--cq-panel);
    border: none;
    border-top: 2px solid var(--cq-line);
    border-radius: 4px;
    padding: 1.75rem 1.5rem 2rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

.service-card:hover {
    transform: none;
    border-top-color: var(--cq-gold);
    box-shadow: none;
}

.service-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 4px;
}

.service-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.03);
}

.service-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(201, 162, 74, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cq-gold);
}

.service-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

/* ==========================================================================
   Closing CTA section (logo watermark, no box)
   ========================================================================== */

.cta-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    position: relative;
    overflow: hidden;
}

.cta-watermark {
    position: absolute;
    top: 50%;
    right: -4%;
    transform: translateY(-50%);
    width: clamp(320px, 36vw, 560px);
    height: auto;
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
}

.cta-content {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-weight: 200;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--cq-gold);
}

.cta-description {
    font-size: 1.3rem;
    color: var(--cq-bone);
    margin-bottom: 3rem;
    line-height: 1.6;
}

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

@media (max-width: 1000px) {
    .cta-button {
        font-size: clamp(0.7rem, min(0.95rem, 1.8svh + 0.5vw), 0.95rem);
        padding: clamp(0.55rem, 1.8svh, 0.85rem) clamp(0.85rem, 3vw, 1.5rem);
    }

    .cta-section {
        padding: 2rem 0;
    }

    .cta-watermark {
        display: none;
    }

    .cta-title {
        font-size: 2.2rem !important;
    }

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

    .service-cta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .service-image {
        height: 100px;
    }
}
