/* ===== 고쳐주기 타일전문시공 — 디자인 시스템 ===== */
:root {
    --bg: #FFFFFF;
    --bg-warm: #F5F1EA;
    --surface: #FFFFFF;
    --ink: #23211D;
    --ink-soft: #6B6259;
    --line: #E3DDD2;
    --accent: #9C6B3E;
    --accent-strong: #7A5230;
    --accent-soft: #F1E6D6;
    --cta: #9C6B3E;
    --cta-strong: #7A5230;
    --max: 1600px;
    --gap: clamp(25px, 3.75vw, 50px);
    --section-pad: clamp(80px, 11.25vw, 160px);
    --side-pad: 30px;
    --side-pad-mobile: 25px;
    --radius: 5px;
    --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
table { border-collapse: collapse; width: 100%; }

.grj-skip-link {
    position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
    padding: 15px 25px; z-index: 999;
}
.grj-skip-link:focus { left: 15px; top: 15px; }

/* ===== Header ===== */
.grj-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.grj-header__inner {
    max-width: 1680px; margin: 0 auto; padding: 22px 36px;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.grj-logo { display: flex; align-items: center; gap: 13px; font-weight: 700; font-size: 25px; color: var(--accent); flex-shrink: 0; }
.grj-logo__mark { display: inline-flex; color: var(--accent); }
.grj-nav__list { display: flex; align-items: center; gap: 52px; }
.grj-nav__list a { font-size: 19px; font-weight: 500; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; }
.grj-nav__list a:hover { border-bottom-color: var(--accent); }
.grj-nav__list .grj-nav__cta a,
.grj-nav__list li.grj-nav__cta a {
    background: var(--cta); color: #fff; padding: 13px 25px; border-radius: 999px; border: none;
}
.grj-nav__list > li:last-child > a { background: var(--cta); color: #fff; padding: 13px 25px; border-radius: 999px; }
.grj-nav__list > li:last-child > a:hover { background: var(--cta-strong); border-bottom-color: transparent; }

.grj-nav-toggle {
    display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 10px;
}
.grj-nav-toggle span { width: 30px; height: 2.5px; background: var(--ink); display: block; }
.grj-nav-toggle__label { display: none; }

/* ===== Header — dropdown submenu (서비스 안내) ===== */
.grj-nav__list li.menu-item-has-children { position: relative; }
.grj-nav__list li.menu-item-has-children > a { display: inline-flex; align-items: center; gap: 6px; }
.grj-nav__list li.menu-item-has-children > a::after {
    content: "▾"; font-size: 12px; transition: transform .2s ease;
}
.grj-nav__list li.menu-item-has-children:hover > a::after,
.grj-nav__list li.menu-item-has-children:focus-within > a::after { transform: rotate(180deg); }
.grj-nav__list .sub-menu {
    position: absolute; top: 100%; left: 0; margin-top: 14px;
    min-width: 220px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.12);
    padding: 10px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 120;
}
.grj-nav__list li.menu-item-has-children:hover > .sub-menu,
.grj-nav__list li.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.grj-nav__list .sub-menu a {
    display: block; padding: 11px 22px; font-size: 17px; font-weight: 500;
    color: var(--ink); border-bottom: none; white-space: nowrap;
}
.grj-nav__list .sub-menu a:hover { background: var(--accent-soft); color: var(--accent-strong); }

/* ===== Header — front-page hero overlay ===== */
.grj-header--overlay {
    position: absolute; left: 0; right: 0; top: 0;
    background: transparent; border-bottom: none; backdrop-filter: none;
}
.grj-header--overlay .grj-logo,
.grj-header--overlay .grj-logo__mark { color: #fff; }
.grj-header--overlay .grj-nav__list a { color: #fff; }
.grj-header--overlay .grj-nav__list a:hover { border-bottom-color: #fff; }
.grj-header--overlay .grj-nav__list > li:last-child > a { color: #fff; }
.grj-header--overlay .grj-nav-toggle span { background: #fff; }
.grj-header--overlay .grj-nav__list .sub-menu a { color: var(--ink); }
.grj-header--overlay .grj-nav__list .sub-menu a:hover { color: var(--accent-strong); }

/* ===== Quick FAB (front-page only, fixed right-center) ===== */
.grj-quick-fab {
    position: fixed; right: 28px; top: 50%; transform: translateY(-50%);
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 150;
    opacity: 1; transition: opacity .2s ease;
}
.grj-quick-fab:hover { background: var(--accent-strong); }
.grj-quick-fab.is-hidden-for-cta { opacity: 0; pointer-events: none; }

/* ===== Buttons / CTA ===== */
.grj-cta-group { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 40px; }
.grj-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 19px 35px; font-size: 20px; font-weight: 700;
    border-radius: 999px; border: 2.5px solid transparent; white-space: nowrap;
}
.grj-btn--call { background: var(--cta); color: #fff; }
.grj-btn--call:hover { background: var(--cta-strong); }
.grj-btn--sms { background: transparent; color: var(--accent); border-color: var(--accent); }
.grj-btn--sms:hover { background: var(--accent-soft); }
.grj-cta-group--lg .grj-btn { padding: 23px 43px; font-size: 23px; }
.grj-btn--block { display: flex; justify-content: center; width: 100%; margin-top: 25px; }

/* ===== Section shell ===== */
.grj-main { overflow-x: clip; }
.grj-main > section { padding: var(--section-pad) var(--side-pad); max-width: var(--max); margin: 0 auto; }
.grj-section-head { max-width: 900px; margin-bottom: 60px; }
.grj-section-head h2 { font-size: clamp(35px, 3.75vw, 50px); font-weight: 800; letter-spacing: -0.01em; }
.grj-lead { color: var(--ink-soft); font-size: 21px; margin-top: 15px; }
.grj-eyebrow {
    font-size: 16px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 18px;
}
.grj-section-cta { margin-top: 50px; }
.grj-link-arrow { font-weight: 700; color: var(--accent); border-bottom: 2.5px solid var(--accent); padding-bottom: 2.5px; }

.grj-inspect .grj-section-head h2::before,
.grj-solutions .grj-section-head h2::before,
.grj-process--home .grj-section-head h2::before,
.grj-faq .grj-section-head h2::before,
.grj-why-check__text h2::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 18px;
}
.grj-updated { text-align: center; color: var(--ink-soft); font-size: 16px; padding: 30px; max-width: var(--max); margin: 0 auto; }
.grj-note { font-size: 17px; color: var(--ink-soft); }

/* ===== Hero (full-width photo background) ===== */
.grj-hero {
    position: relative; isolation: isolate; overflow: hidden;
    max-width: 100%; padding: 0 !important; min-height: min(92vh, 1075px);
    display: flex; align-items: flex-end;
}
.grj-hero__media { position: absolute; inset: 0; z-index: 0; background: var(--bg-warm); }
.grj-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.grj-hero__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(35,29,20,.6) 0%, rgba(35,29,20,.38) 42%, rgba(35,29,20,.68) 100%);
}
.grj-hero__content {
    position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto;
    padding: 40px var(--side-pad) clamp(140px, 16vw, 220px);
}
.grj-hero__title {
    font-size: clamp(52px, 7vw, 103px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05;
    color: #fff; margin: 0 0 25px; text-shadow: 0 2px 24px rgba(0,0,0,.28);
}
.grj-hero__sub { font-size: clamp(22px, 2vw, 30px); color: rgba(255,255,255,.92); max-width: 44ch; }
.grj-hero .grj-eyebrow {
    color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35);
    font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
}
.grj-hero .grj-btn--sms { color: #fff; border-color: #fff; }
.grj-hero .grj-btn--sms:hover { background: rgba(255,255,255,.18); }
.grj-hero__content .grj-cta-group { gap: 12px; margin-top: 32px; }
.grj-hero__content .grj-btn { padding: 13px 24px; font-size: 16px; gap: 8px; border-radius: 8px; }
.grj-hero__wave {
    position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1;
    width: 100%; height: clamp(80px, 11.25vw, 175px); display: block;
}
.grj-hero__wave path { fill: var(--surface); }

/* ===== Inspect (타일 점검 + 시공사례) ===== */
.grj-inspect {
    max-width: 100% !important;
    padding-left: 0 !important; padding-right: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important;
}
.grj-inspect__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--side-pad); }
.grj-inspect__block { padding: 90px 0; }
.grj-inspect h2 { color: var(--accent-strong); }

.grj-inspect__block--signs { background: var(--accent-soft); }
.grj-inspect__block--cases { background: var(--surface); border-top: 3px solid var(--accent); }
.grj-inspect__block--cases .grj-section-head {
    background: var(--accent-soft);
    max-width: none;
    margin: 0 calc(-1 * var(--side-pad)) 50px;
    padding: 44px var(--side-pad) 36px;
}

.grj-inspect__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin: 45px 0 40px; }
.grj-inspect__photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; aspect-ratio: 4/5; border: 1px solid var(--line); }
.grj-inspect__photo figcaption { margin-top: 14px; font-size: 16px; color: var(--ink-soft); }

.grj-check-list { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.grj-check-list li {
    position: relative; padding-left: 35px; font-size: 20px; color: var(--ink);
}
.grj-check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800;
}

.grj-inspect__case-row {
    display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 1fr;
    gap: var(--gap); margin-top: 45px;
}
.grj-case-card { display: block; }
.grj-case-card__media { aspect-ratio: 3/4; overflow: hidden; border-radius: 0; }
.grj-case-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; border: 1px solid var(--line); }
.grj-case-card:hover .grj-case-card__media img { transform: scale(1.04); }
.grj-case-card__caption { margin-top: 14px; font-size: 16px; color: var(--ink-soft); }

/* ===== Services grid ===== */
.grj-services__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
}
.grj-service-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.grj-service-card--feature { grid-column: span 4; display: flex; flex-direction: column; gap: 30px; border: none; background: none; }
.grj-service-card--feature .grj-service-card__media { aspect-ratio: 21/9; }
.grj-service-card__media { aspect-ratio: 1/1; overflow: hidden; background: var(--bg-warm); }
.grj-service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.grj-service-card__body { padding: 28px; }
.grj-service-card--feature .grj-service-card__body { padding: 0; }
.grj-service-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.grj-service-card--feature h3 { font-size: 42px; margin-bottom: 18px; }
.grj-service-card p { color: var(--ink-soft); font-size: 19px; }
.grj-service-card--feature p { font-size: 22px; line-height: 1.7; }

/* ===== Solutions (홈 "타일 시공 서비스" — 편집형 모자이크) ===== */
.grj-solutions__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; gap: 32px 32px; }
.grj-solutions__item { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.grj-solutions__media { flex: 1; overflow: hidden; border-radius: var(--radius); background: var(--bg-warm); }
.grj-solutions__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.grj-solutions__item:hover .grj-solutions__media img { transform: scale(1.035); }
.grj-solutions__body { padding-top: 22px; max-width: 62ch; }
.grj-solutions__body h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.grj-solutions__body p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* 대표 서비스(1번) — 가장 크게, 세로로 길게 좌측 배치 */
.grj-solutions__item--feature { grid-column: 1 / 8; grid-row: 1 / 2; position: relative; }
.grj-solutions__item--feature .grj-solutions__media { aspect-ratio: 4/5; }
.grj-solutions__item--feature .grj-solutions__body h3 { font-size: 32px; }
.grj-solutions__item--feature .grj-solutions__body p { font-size: 18px; }
.grj-solutions__item--feature::before {
    content: "";
    position: absolute;
    top: -22px; left: -22px;
    width: 58%; height: 42%;
    background: var(--accent-strong);
    z-index: -1;
}

/* 2, 3번 — 대표 서비스 옆에 세로로 쌓아 높이를 맞춤 */
.grj-solutions__item:nth-child(2) { grid-column: 8 / 13; grid-row: 1 / 2; }
.grj-solutions__item:nth-child(3) { grid-column: 8 / 13; grid-row: 2 / 3; }
.grj-solutions__item:nth-child(2) .grj-solutions__media,
.grj-solutions__item:nth-child(3) .grj-solutions__media { aspect-ratio: 16/11; }
.grj-solutions__item:nth-child(1) { grid-row: 1 / 3; }

/* ===== Process (horizontal steps) ===== */
.grj-process__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.grj-process__media { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--radius); margin-bottom: 20px; background: var(--bg-warm); }
.grj-process__media img { width: 100%; height: 100%; object-fit: cover; }
.grj-process__no {
    position: absolute; top: 13px; left: 13px; background: rgba(255,255,255,0.92); color: var(--accent-strong);
    font-weight: 800; font-size: 16px; padding: 5px 13px; border-radius: 999px;
}
.grj-process__item h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.grj-process__item p { font-size: 18px; color: var(--ink-soft); }

/* ===== Process — 홈 전용 타임라인형 ===== */
.grj-process--home { background: var(--accent-soft); }
.grj-process--home .grj-process__list {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
    position: relative; margin-top: 8px;
}
.grj-process--home .grj-process__list::before {
    content: ''; position: absolute; top: 5px; left: 10%; right: 10%; height: 2px; background: rgba(156,107,62,0.3); z-index: 0;
}
.grj-process--home .grj-process__item { position: relative; display: flex; flex-direction: column; }
.grj-process--home .grj-process__dot {
    display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
    align-self: center; position: relative; z-index: 1;
}
.grj-process--home .grj-process__no {
    position: static; background: none; padding: 0; border-radius: 0; align-self: flex-start;
    font-size: 46px; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -0.02em;
    margin: 18px 0 20px;
}
.grj-process--home .grj-process__media { margin-bottom: 20px; }
.grj-process--home .grj-process__item:nth-child(even) .grj-process__media { margin-top: 34px; }

/* ===== Cases archive (/projects/) ===== */
.grj-empty { color: var(--ink-soft); }

.grj-cases-archive__list { display: flex; flex-direction: column; gap: 70px; }
.grj-case-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap); align-items: center; }
.grj-case-row__media { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); }
.grj-case-row__media img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }
.grj-case-row__text h2 { font-size: 30px; font-weight: 800; margin: 10px 0 15px; }
.grj-case-row__text p { color: var(--ink-soft); margin-bottom: 18px; }

/* ===== Why check (editorial, text forward) ===== */
.grj-why-check { display: grid; grid-template-columns: 1fr 0.9fr; gap: var(--gap); align-items: center; }
.grj-why-check__text {
    background: var(--accent-soft);
    padding: 48px 46px;
}
.grj-why-check__text h2 { font-size: clamp(32px, 3.75vw, 45px); font-weight: 800; margin-bottom: 25px; }
.grj-why-check__media img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }

/* ===== Detail block (reusable editorial split, subpages) ===== */
.grj-detail-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.grj-detail-block--reverse { grid-template-columns: 1fr 1fr; }
.grj-detail-block--reverse .grj-detail-block__media { order: 2; }
.grj-detail-block__media img { aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.grj-detail-block__text h2 { font-size: clamp(30px, 3.25vw, 40px); font-weight: 800; margin-bottom: 20px; }
.grj-detail-block__text p { color: var(--ink-soft); }

/* ===== Table ===== */
.grj-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.grj-table--summary { margin-top: 50px; }
.grj-table { margin-top: 30px; font-size: 18px; }
.grj-table th, .grj-table td { border: 1px solid var(--line); padding: 15px 18px; text-align: left; vertical-align: top; }
.grj-table th { background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
.grj-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.015); }
.grj-table tbody tr.is-current { background: var(--accent-soft); }
.grj-table tbody tr.is-current td:first-child { font-weight: 700; color: var(--accent-strong); }

.grj-faq .grj-section-head {
    background: var(--accent-soft);
    max-width: none;
    margin: 0 calc(-1 * var(--side-pad)) 50px;
    padding: 44px var(--side-pad) 36px;
}

/* ===== FAQ accordion ===== */
.grj-accordion { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.grj-faq__page { display: flex; flex-direction: column; }
.grj-faq__page[hidden] { display: none; }
.grj-accordion__item { border-bottom: 1px solid var(--line); padding: 28px 0; position: relative; }
.grj-accordion__item::before {
    content: "";
    position: absolute; inset: 0 -24px;
    background: transparent;
    z-index: -1;
    transition: background .18s ease;
}
.grj-accordion__item:hover::before,
.grj-accordion__item[open]::before {
    background: var(--accent-soft);
}
.grj-accordion__item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.grj-accordion__item summary::-webkit-details-marker { display: none; }
.grj-accordion__item summary h3 { font-size: 21px; font-weight: 700; }
.grj-accordion__item summary::after {
    content: "+"; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    font-size: 20px; line-height: 1;
}
.grj-accordion__item[open] summary::after { content: "–"; background: var(--accent); color: #fff; }
.grj-accordion__item p { margin-top: 20px; color: var(--ink-soft); max-width: 68ch; }

/* ===== FAQ pager (홈 전용) ===== */
.grj-faq__pager { display: flex; align-items: center; gap: 20px; justify-content: center; margin-top: 40px; }
.grj-faq__pager-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    border: none; cursor: pointer; flex-shrink: 0;
    transition: background .18s ease, color .18s ease;
}
.grj-faq__pager-btn:hover:not(:disabled) { background: var(--accent); color: #fff; }
.grj-faq__pager-btn:disabled { background: var(--bg-warm); color: var(--line); cursor: not-allowed; }
.grj-faq__pager-status { font-size: 17px; font-weight: 700; color: var(--ink); min-width: 56px; text-align: center; }

/* ===== Final CTA ===== */
.grj-final-cta {
    background: var(--accent); color: #fff; text-align: center; border-radius: var(--radius);
    padding: clamp(39px, 4.9vw, 72px) var(--side-pad) !important; max-width: var(--max);
}
.grj-final-cta h2 { font-size: clamp(30px, 3.75vw, 43px); font-weight: 800; line-height: 1.4; }
.grj-final-cta .grj-cta-group { justify-content: center; margin-top: 22px; gap: 14px; }
.grj-final-cta .grj-cta-group .grj-btn {
    background: transparent; color: #fff; border: 1px solid #fff;
    padding: 13px 28px; font-size: 16px; border-radius: 8px; gap: 8px;
    min-width: 160px; justify-content: center;
}
.grj-final-cta .grj-cta-group .grj-btn span { font-size: 16px; line-height: 1; }
.grj-final-cta .grj-cta-group .grj-btn:hover { background: rgba(255,255,255,.15); }
.grj-final-cta--compact { padding: clamp(33px, 4.1vw, 52px) var(--side-pad) !important; }

/* ===== Footer ===== */
.grj-footer { background: var(--accent-strong); color: #F3EBE0; margin-top: 50px; }
.grj-footer__inner {
    max-width: var(--max); margin: 0 auto; padding: 70px var(--side-pad);
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
}
.grj-footer__brand { display: flex; flex-direction: column; gap: 13px; }
.grj-logo__mark--footer { color: #F3EBE0; }
.grj-footer__biz-name { font-size: 25px; font-weight: 800; color: #fff; margin-top: 5px; }
.grj-footer__biz-info { display: flex; flex-direction: column; gap: 8px; font-size: 18px; color: #D9CBB8; }
.grj-footer__biz-info a { color: #D9CBB8; }
.grj-footer__nav { display: flex; align-items: flex-start; justify-content: flex-end; }
.grj-footer__list { display: flex; flex-direction: column; gap: 15px; text-align: right; }
.grj-footer__list a { font-size: 19px; color: #F3EBE0; }
.grj-footer__list a:hover { text-decoration: underline; }
.grj-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); text-align: center; padding: 23px; font-size: 16px; color: #C7B7A0; }

/* ===== Subpages ===== */
.grj-subpage { padding-top: 0; }
.grj-breadcrumb { max-width: var(--max); margin: 25px auto 0; padding: 0 var(--side-pad); }
.grj-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; font-size: 16px; color: var(--ink-soft); }
.grj-breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 10px; color: var(--line); }
.grj-breadcrumb a { color: var(--ink-soft); }
.grj-breadcrumb a:hover { color: var(--accent); }
.grj-page-hero { max-width: var(--max); margin: 0 auto; padding: 50px var(--side-pad) 0; }
.grj-page-hero h1 { font-size: clamp(43px, 5.25vw, 65px); font-weight: 900; color: var(--accent-strong); letter-spacing: -0.02em; }
.grj-page-hero .grj-lead { max-width: 62ch; margin-top: 20px; font-size: 21px; }

/* ===== Contact page ===== */
.grj-contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grj-contact__card { background: var(--surface); border: 1px solid var(--line); padding: 50px; text-align: center; }
.grj-contact__card h2 { font-size: 28px; font-weight: 800; margin-bottom: 13px; }
.grj-contact__card p { color: var(--ink-soft); margin-bottom: 10px; }
.grj-contact-info { background: var(--bg-warm); padding: 50px; text-align: center; }
.grj-contact-info h2 { font-size: 25px; font-weight: 800; margin-bottom: 20px; }
.grj-contact-info ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; color: var(--ink-soft); font-size: 18px; }

/* ===== Case study detail ===== */
.grj-case-hero-media { max-width: var(--max); margin: 40px auto 0; padding: 0 var(--side-pad); }
.grj-case-hero-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); }
.grj-case-summary { max-width: 1000px !important; font-size: 21px; color: var(--ink-soft); }
.grj-case-summary p { margin-bottom: 1em; }
.grj-case-group h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.grj-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.grj-gallery__item:first-child { grid-column: span 2; }
.grj-gallery__item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.grj-gallery__item:first-child img { aspect-ratio: 16/9; }
.grj-gallery__item figcaption { font-size: 16px; color: var(--ink-soft); margin-top: 10px; }
.grj-case-video { margin-top: 30px; }
.grj-case-video video { width: 100%; max-height: 720px; border-radius: var(--radius); background: #000; }
.grj-case-nav { max-width: var(--max); margin: 0 auto; padding: 0 var(--side-pad); }

/* ===========================================================
   Responsive — Tablet
   Desktop stays fixed above this line.
   =========================================================== */
@media (max-width: 1280px) {
    .grj-services__grid { grid-template-columns: repeat(2, 1fr); }
    .grj-service-card--feature { grid-column: span 2; }
    .grj-solutions__grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 50px; }
    .grj-solutions__item:nth-child(n) { grid-column: auto; grid-row: auto; }
    .grj-solutions__item:nth-child(n) .grj-solutions__media { aspect-ratio: 16/10; }
    .grj-solutions__item--feature .grj-solutions__body h3 { font-size: 28px; }
    .grj-process__list { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
    .grj-process--home .grj-process__list { grid-template-columns: 1fr; row-gap: 56px; margin-top: 0; }
    .grj-process--home .grj-process__list::before { top: 0; bottom: 0; left: 50%; right: auto; width: 2px; height: auto; transform: translateX(-1px); }
    .grj-process--home .grj-process__item:nth-child(even) .grj-process__media { margin-top: 0; }
    .grj-inspect__block { padding: 70px 0; }
    .grj-inspect__photos { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .grj-inspect__case-row { grid-template-columns: repeat(3, 1fr); }
    .grj-case-row { grid-template-columns: 1fr; }
    .grj-why-check { grid-template-columns: 1fr; }
    .grj-why-check__media { order: -1; }
    .grj-detail-block, .grj-detail-block--reverse { grid-template-columns: 1fr; }
    .grj-detail-block--reverse .grj-detail-block__media { order: -1; }
    .grj-footer__inner { grid-template-columns: 1fr; }
    .grj-footer__nav { justify-content: flex-start; }
    .grj-footer__list { text-align: left; }
}

/* ===========================================================
   Responsive — Mobile
   =========================================================== */
@media (max-width: 800px) {
    .grj-header__inner { padding: 18px 25px; }
    .grj-nav-toggle { display: flex; }
    .grj-nav {
        position: fixed; inset: 0 0 0 auto; width: min(78vw, 400px); height: 100vh;
        background: var(--surface); transform: translateX(100%); transition: transform .25s ease;
        padding: 110px 35px 35px; box-shadow: -8px 0 24px rgba(0,0,0,0.08);
        overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .grj-nav.is-open { transform: translateX(0); }
    .grj-nav__list { flex-direction: column; align-items: flex-start; gap: 28px; }
    .grj-nav__list > li:last-child > a { display: inline-block; }
    .grj-nav__list > li { width: 100%; }
    .grj-nav__list .sub-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; background: none; margin: 14px 0 0; padding: 0 0 0 18px;
        display: flex; flex-direction: column; gap: 14px;
    }
    .grj-nav__list .sub-menu a { padding: 0; font-size: 16px; color: var(--ink-soft); }
    .grj-nav__list li.menu-item-has-children > a::after { margin-left: auto; }
    .grj-quick-fab { width: 46px; height: 46px; right: 16px; }
    .grj-quick-fab svg { width: 18px; height: 18px; }

    .grj-main > section, .grj-page-hero, .grj-breadcrumb, .grj-case-hero-media, .grj-case-nav { padding-left: var(--side-pad-mobile); padding-right: var(--side-pad-mobile); }
    .grj-services__grid { grid-template-columns: 1fr; }
    .grj-service-card--feature { grid-column: span 1; }
    .grj-solutions__grid { gap: 40px; }
    .grj-solutions__item:nth-child(n) .grj-solutions__media { aspect-ratio: 4/3; }
    .grj-inspect__block { padding: 55px 0; }
    .grj-inspect__photos { grid-template-columns: 1fr; gap: 18px; }
    .grj-inspect__case-row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .grj-inspect__block--cases .grj-section-head,
    .grj-faq .grj-section-head {
        margin-left: calc(-1 * var(--side-pad-mobile)); margin-right: calc(-1 * var(--side-pad-mobile));
        padding-left: var(--side-pad-mobile); padding-right: var(--side-pad-mobile);
    }
    .grj-why-check__text { padding: 36px 30px; }
    .grj-process__list { grid-template-columns: repeat(2, 1fr); }
    .grj-contact { grid-template-columns: 1fr; }
    .grj-cta-group { flex-direction: column; }
    .grj-cta-group .grj-btn { width: 100%; justify-content: center; }
    .grj-gallery { grid-template-columns: 1fr; }
    .grj-gallery__item:first-child { grid-column: span 1; }
    .grj-hero { min-height: min(100vh, 800px); }
    .grj-hero__content { padding: 30px var(--side-pad-mobile) 100px; }
    .grj-header--overlay .grj-nav__list a { color: var(--ink); }
    .grj-header--overlay .grj-nav__list li:last-child a { color: #fff; }
}
