/* GoYatchify — Shared page styles (services, how-it-works, etc.)
   Loaded site-wide via functions.php */

/* ── Page Hero ─────────────────────────────────────────────────────── */
.gy-page-hero {
    background: var(--gy-navy);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}
.gy-page-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin: 0 0 12px;
    color: #fff;
}
.gy-page-hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Section Titles ─────────────────────────────────────────────────── */
.gy-section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--gy-navy);
    text-align: center;
    margin: 0 0 12px;
}
.gy-section-sub {
    font-size: 1rem;
    color: var(--gy-muted);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
}

/* ── Buttons (shared) ───────────────────────────────────────────────── */
.gy-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; border-radius: 6px; padding: 10px 20px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.gy-btn--primary  { background: var(--gy-gold); color: var(--gy-navy); border-color: var(--gy-gold); }
.gy-btn--primary:hover { background: #005fd6; border-color: #005fd6; }
.gy-btn--outline  { background: transparent; color: var(--gy-navy); border-color: var(--gy-navy); }
.gy-btn--outline:hover { background: var(--gy-navy); color: #fff; }
.gy-btn--ghost    { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.gy-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.gy-btn--lg { padding: 13px 28px; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════════════
   SERVICES PAGE
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Services Grid ──────────────────────────────────────────────────── */
.gy-services-section {
    padding: 72px 0;
    background: #fff;
}
.gy-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 0;
}

/* ── Service Card ───────────────────────────────────────────────────── */
.gy-service-card {
    background: var(--gy-light);
    border: 1px solid var(--gy-border);
    border-radius: 12px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: box-shadow .2s, transform .2s;
}
.gy-service-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    transform: translateY(-3px);
}
.gy-service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gy-service-card__icon--blue  { background: rgba(0,115,255,.12); color: var(--gy-blue); }
.gy-service-card__icon--gold  { background: rgba(0,115,255,.15); color: #9a7530; }
.gy-service-card__icon--navy  { background: rgba(11,31,111,.08); color: var(--gy-navy); }

.gy-service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gy-navy);
    margin: 0;
}
.gy-service-card p {
    font-size: .93rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.gy-service-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gy-service-card__list li {
    font-size: .88rem;
    color: #555;
    padding-left: 18px;
    position: relative;
}
.gy-service-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gy-gold);
    font-weight: 700;
}

/* ── Stats Bar ──────────────────────────────────────────────────────── */
.gy-services-stats-bar {
    background: var(--gy-navy);
    padding: 48px 0;
}
.gy-services-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.gy-services-stat strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gy-gold);
    line-height: 1;
}
.gy-services-stat span {
    display: block;
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ── Broker CTA ─────────────────────────────────────────────────────── */
.gy-services-cta-section {
    padding: 72px 0;
    background: var(--gy-light);
}
.gy-services-cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px;
    border: 1px solid var(--gy-border);
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.gy-services-cta__text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gy-navy);
    margin: 0 0 12px;
}
.gy-services-cta__text p {
    color: #555;
    line-height: 1.65;
    margin: 0 0 20px;
}
.gy-services-cta__perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gy-services-cta__perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .93rem;
    color: #444;
}
.gy-services-cta__action {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   HOW IT WORKS PAGE
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Tab Nav ────────────────────────────────────────────────────────── */
.gy-hiw-tabs-section {
    padding: 64px 0 72px;
    background: var(--gy-light);
}
.gy-hiw-tab-nav {
    display: flex;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--gy-border);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 48px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.gy-hiw-tab-btn {
    padding: 10px 28px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--gy-muted);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.gy-hiw-tab-btn.is-active {
    background: var(--gy-navy);
    color: #fff;
}
.gy-hiw-tab-btn:hover:not(.is-active) {
    background: var(--gy-light);
    color: var(--gy-navy);
}

/* ── Tab Content ────────────────────────────────────────────────────── */
.gy-hiw-tab-content { display: none; }
.gy-hiw-tab-content.is-active { display: block; }

/* ── Steps ──────────────────────────────────────────────────────────── */
.gy-hiw-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 48px;
    position: relative;
}
.gy-hiw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 16px;
}

/* Number bubble */
.gy-hiw-step__num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gy-navy);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* Connector line between steps */
.gy-hiw-step__connector {
    position: absolute;
    top: 22px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    height: 2px;
    background: var(--gy-border);
    z-index: 1;
}

/* Icon */
.gy-hiw-step__icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--gy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gy-blue);
    margin: 20px 0 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* Step body */
.gy-hiw-step__body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gy-navy);
    margin: 0 0 8px;
}
.gy-hiw-step__body p {
    font-size: .88rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* CTA below steps */
.gy-hiw-cta {
    text-align: center;
    padding-top: 8px;
}

/* ── FAQ ────────────────────────────────────────────────────────────── */
.gy-hiw-faq-section {
    padding: 72px 0;
    background: #fff;
}
.gy-faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gy-faq-item {
    border: 1px solid var(--gy-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.gy-faq-item[open] {
    border-color: var(--gy-blue);
}
.gy-faq-question {
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gy-navy);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.gy-faq-question::-webkit-details-marker { display: none; }
.gy-faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--gy-muted);
    flex-shrink: 0;
    transition: transform .2s;
}
.gy-faq-item[open] .gy-faq-question::after {
    content: '−';
}
.gy-faq-answer {
    padding: 0 24px 20px;
    border-top: 1px solid var(--gy-border);
}
.gy-faq-answer p {
    font-size: .93rem;
    color: #555;
    line-height: 1.7;
    margin: 16px 0 0;
}

/* ── Bottom CTA ─────────────────────────────────────────────────────── */
.gy-hiw-bottom-cta {
    padding: 80px 0;
    background: var(--gy-navy);
    text-align: center;
}
.gy-hiw-bottom-cta h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}
.gy-hiw-bottom-cta p {
    color: rgba(255,255,255,.75);
    font-size: 1.05rem;
    margin: 0 0 32px;
}
.gy-hiw-bottom-cta__btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .gy-services-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .gy-services-cta-inner  { grid-template-columns: 1fr; }
    .gy-services-cta__action { flex-direction: row; flex-wrap: wrap; }

    .gy-hiw-steps { grid-template-columns: 1fr; gap: 32px; }
    .gy-hiw-step__connector { display: none; }
    .gy-hiw-step { flex-direction: row; text-align: left; gap: 20px; align-items: flex-start; }
    .gy-hiw-step__body { flex: 1; }
    .gy-hiw-step__icon { margin: 0; flex-shrink: 0; }
}
@media (max-width: 600px) {
    .gy-services-stats-grid  { grid-template-columns: 1fr 1fr; }
    .gy-services-cta__action { flex-direction: column; }
    .gy-hiw-tab-nav { width: 100%; justify-content: center; }
    .gy-hiw-tab-btn { padding: 10px 16px; font-size: .85rem; }
}
