/* JomGarden v9: an image-led garden journal. Shared tokens + homepage. */
:root,[data-theme="dark"] {
 --bg-body:#101e18; --bg-surface:#1b2c23; --bg-overlay:rgba(16,30,24,.98);
 --text-main:#f1eee4; --text-muted:#bdc6ba; --text-accent:#c8d6b5;
 --border-color:#3a493d; --btn-primary-bg:#d9e3c8; --btn-primary-text:#19271d;
 --header-height:80px; --section-space:clamp(4.5rem,8vw,8rem);
 --spacing-container:1440px;
}
[data-theme="light"] {
 --bg-body:#f3f1e8; --bg-surface:#e8ebdf; --bg-overlay:rgba(243,241,232,.98);
 --text-main:#20372a; --text-muted:#53634e; --text-accent:#52683d;
 --border-color:#c7cebc; --btn-primary-bg:#294632; --btn-primary-text:#f5f3eb;
}
html:lang(zh) { --font-main:"Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif; --font-heading:var(--font-main); }
body { font-size:17px; }
h1,h2,h3,h4 { text-wrap:balance; }
h2::after { display:none; }
.container { padding-inline:clamp(1.25rem,4vw,4rem); }
header { background:var(--bg-body); border-bottom:1px solid var(--border-color); }
.logo img { width:150px; height:auto; }
.footer-brand img { width:300px; max-width:100%; height:auto; }
.footer-brand > p { overflow-wrap:anywhere; }
.nav-links { gap:1.35rem; }
.nav-links>a { font-size:.9375rem; font-weight:400; }
.header-cta { min-height:44px; padding:.65rem 1.1rem; font-size:.9375rem; border-radius:2px; }
.btn { min-height:48px; font-size:1rem; border-radius:2px; gap:.8rem; padding:.9rem 1.4rem; }
.btn-primary { background:var(--btn-primary-bg); color:var(--btn-primary-text); border-color:var(--btn-primary-bg); }
.btn-primary:hover { background:#edf0e4; color:#19271d; border-color:#edf0e4; }
.gallery-load-more[aria-disabled="true"],.gallery-load-more[aria-disabled="true"]:hover { background:var(--bg-surface); color:var(--text-muted); border-color:var(--border-color); cursor:default; }
.eyebrow { font-weight:400; letter-spacing:.09em; font-size:.8125rem; color:var(--text-accent); margin:0 0 1.2rem; line-height:1.8; overflow-wrap:anywhere; }
:lang(th) .eyebrow,:lang(zh) .eyebrow { letter-spacing:.015em; font-size:.9375rem; }
.section-link { display:inline-flex; align-items:center; justify-content:space-between; gap:1.3rem; min-height:48px; border-bottom:1px solid var(--border-color); font-size:1rem; color:var(--text-main); padding-block:.5rem; }
.section-link:hover { color:var(--text-accent); border-color:var(--text-accent); }
:where(a,button,summary):focus-visible { outline:3px solid var(--text-accent); outline-offset:5px; }
.garden-hero { position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:center; min-height:clamp(620px,calc(100svh - 80px),860px); background:#0f2116; color:#fffdf5; }
.garden-hero-photo { position:absolute; inset:0; z-index:-2; overflow:hidden; }
.garden-hero-photo picture,.garden-hero-photo img { display:block; width:100%; height:100%; }
.garden-hero-photo img { object-fit:cover; object-position:55% 57%; }
.garden-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(6,22,13,.78),rgba(6,22,13,.48) 42%,rgba(6,22,13,.03) 76%),linear-gradient(0deg,rgba(6,22,13,.78),transparent 30%); }
.garden-hero-content { margin-block:auto; padding-top:6rem; padding-bottom:4.25rem; }
.garden-hero-eyebrow { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem; color:#eeeede; font-size:.875rem; letter-spacing:.025em; margin:0 0 2rem; }
.garden-hero-eyebrow span { color:#cfdbb6; }
.garden-hero h1 { margin:0 0 1.5rem; padding:0; color:#fffdf5; font-size:clamp(2.6rem,4.65vw,4.75rem); font-weight:600; line-height:1.43; letter-spacing:-.035em; max-width:53rem; }
.garden-hero h1 span { display:block; color:#edf1db; }
:lang(th) .garden-hero h1 { letter-spacing:0; }
:lang(zh) .garden-hero h1 { letter-spacing:.015em; }
.garden-hero-lead { font-size:1.125rem; line-height:1.85; color:#f0f0e5; margin:0 0 2rem; max-width:35rem; }
.garden-hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:1rem 1.8rem; }
.garden-hero .btn-primary { background:#e4e9d7; color:#182a1d; border-color:#e4e9d7; }
.garden-hero-work { display:inline-flex; align-items:center; min-height:48px; gap:1.4rem; border-bottom:1px solid #c9d1ba; color:#fffdf5; }
.garden-hero-work:hover { color:#e2ebcd; }
.garden-hero-bottom { position:relative; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1.5rem; min-height:76px; padding-block:.8rem; color:#e4e7da; font-size:.8125rem; }
.garden-hero-bottom a { display:inline-flex; align-items:center; gap:1.5rem; min-height:44px; font-size:.9375rem; }
.garden-hero :focus-visible,.garden-evening :focus-visible { outline-color:#f1edd7; }
.garden-ribbon { display:flex; gap:1rem 2.5rem; align-items:center; flex-wrap:wrap; border-bottom:1px solid var(--border-color); padding-block:1.4rem; color:var(--text-muted); font-size:.9375rem; }
.garden-ribbon>span:not(.ribbon-brand) { display:flex; align-items:center; gap:2.5rem; }
.garden-ribbon>span:not(.ribbon-brand)::before { content:""; width:5px; height:5px; border-radius:50%; background:var(--text-accent); }
.garden-ribbon .ribbon-brand { margin-left:auto; letter-spacing:.17em; color:var(--text-accent); font-size:.75rem; }
.garden-intro { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3rem 7rem; padding-block:var(--section-space); }
.garden-intro h2 { margin:0; padding:0; color:var(--text-main); font-size:clamp(1.9rem,3vw,3rem); font-weight:400; line-height:1.5; }
.garden-intro p { max-width:36rem; margin:0 0 1.5rem; color:var(--text-muted); font-size:1.125rem; line-height:1.9; }
.garden-work { padding-bottom:var(--section-space); }
.studio-section-heading { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:2rem; margin-bottom:3rem; }
.studio-section-heading h2 { padding:0; margin:0; color:var(--text-main); font-size:clamp(2rem,3.4vw,3.4rem); line-height:1.5; font-weight:400; }
.studio-section-heading>* { min-width:0; max-width:100%; }
.studio-section-heading>.section-link { flex-shrink:1; white-space:normal; }
.garden-feature { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); background:var(--bg-surface); }
.garden-feature-photo { display:block; min-width:0; overflow:hidden; }
.garden-feature-photo picture,.garden-feature-photo img { display:block; width:100%; height:100%; }
.garden-feature-photo img { object-fit:cover; object-position:50% 50%; min-height:600px; }
.garden-feature-copy { min-width:0; padding:clamp(2rem,4vw,4rem); align-self:center; }
.feature-marker { display:flex; justify-content:space-between; align-items:center; gap:1rem; border-bottom:1px solid var(--border-color); padding-bottom:1.5rem; margin-bottom:2.5rem; }
.feature-marker>span { font-family:Georgia,serif; font-size:3rem; line-height:1; font-style:italic; color:var(--text-accent); }
.feature-marker .eyebrow { margin:0; text-align:right; }
.garden-location { color:var(--text-accent); font-size:.9375rem; margin-bottom:.6rem; }
.garden-feature h3 { font-size:clamp(1.6rem,2.3vw,2.4rem); line-height:1.5; font-weight:400; color:var(--text-main); margin:0 0 1.5rem; padding:0; }
.garden-feature-copy>p:not(.garden-location) { color:var(--text-muted); line-height:1.85; font-size:1.0625rem; }
.garden-feature-tags { list-style:none; display:flex; flex-wrap:wrap; gap:.5rem 1rem; padding:0; margin:1.6rem 0; font-size:.875rem; color:var(--text-accent); }
.garden-feature-tags li { padding-bottom:.2rem; border-bottom:1px solid var(--border-color); }
.garden-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2rem; margin-top:4rem; }
.garden-card { display:block; min-width:0; }
.garden-card-image { position:relative; overflow:hidden; aspect-ratio:4/5; background:var(--bg-surface); }
.garden-card-image picture,.garden-card-image img { display:block; width:100%; height:100%; object-fit:cover; }
.garden-card-image .studio-arrow { position:absolute; right:1rem; bottom:1rem; background:#edf0e1; color:#233426; border-color:#edf0e1; }
.photo-total { position: absolute; top: 1rem; left: 1rem; max-width: calc(100% - 2rem); padding: .4rem .75rem; border: 1px solid #879a89; border-radius: 999px; background: #13281e; color: #f6f8f0; font-size: .875rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.photo-total-inline { margin: .75rem 0; color: var(--text-accent); font-size: 1rem; }
.archive-photo-caption { display: block; padding: .7rem .85rem; background: var(--bg-surface); color: var(--text-primary); font-size: .9375rem; line-height: 1.7; overflow-wrap: anywhere; }
.studio-arrow { width:44px; height:44px; border:1px solid var(--border-color); border-radius:50%; display:grid; place-items:center; font-size:1.4rem; flex-shrink:0; }
.garden-card-caption { display:flex; gap:1rem; padding-top:1.3rem; }
.garden-card-caption>div { min-width:0; }
.garden-number { font-family:Georgia,serif; font-style:italic; color:var(--text-accent); font-size:1.2rem; flex-shrink:0; white-space:nowrap; }
.garden-card-caption p { color:var(--text-muted); font-size:.875rem; margin:0 0 .4rem; }
.garden-card-caption h3 { font-size:1.375rem; line-height:1.65; padding:0; margin:0; font-weight:400; }
.studio-services { padding-block:var(--section-space); background:var(--bg-surface); border-block:1px solid var(--border-color); }
.studio-services-layout { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1fr); gap:clamp(3rem,8vw,8rem); }
.studio-services h2 { color:var(--text-main); font-size:clamp(2rem,3vw,3rem); line-height:1.5; font-weight:400; padding:0; margin-bottom:2.5rem; }
.studio-services figure { margin:0; max-width:30rem; }
.studio-services figure picture { display:block; aspect-ratio:4/3; overflow:hidden; }
.studio-services figure img { display:block; width:100%; height:100%; object-fit:cover; }
.studio-services figcaption,.studio-care figcaption { color:var(--text-muted); font-size:.875rem; line-height:1.8; margin-top:.8rem; }
.studio-services-list { align-self:center; }
.studio-service { display:grid; grid-template-columns:1.8rem minmax(0,1fr) 44px; gap:1rem; padding:2rem 0; border-top:1px solid var(--border-color); }
.studio-service-number { color:var(--text-accent); font-size:.875rem; padding-top:.5rem; }
.studio-service h3 { font-size:1.625rem; font-weight:400; margin:0 0 .85rem; padding:0; }
.studio-service p { color:var(--text-muted); line-height:1.85; margin:0; font-size:1.0625rem; }
.studio-services-list>.section-link { margin-top:1rem; }
.garden-evening { position:relative; isolation:isolate; display:flex; align-items:end; min-height:680px; color:#f7f4e9; background:#09130e; }
.garden-evening-photo { position:absolute; inset:0; z-index:-2; }
.garden-evening-photo picture,.garden-evening-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 50%; }
.garden-evening::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg,rgba(5,16,10,.96),rgba(5,16,10,.68) 33%,rgba(5,16,10,.02) 72%); }
.garden-evening-copy { padding-block:5rem; }
.garden-evening-copy>* { max-width:43rem; }
.garden-evening .eyebrow { color:#dce6cb; }
.garden-evening h2 { color:#fffdf4; font-size:clamp(2.2rem,3.8vw,3.7rem); font-weight:400; line-height:1.5; padding:0; margin-bottom:1.25rem; }
.garden-evening-copy>p:not(.eyebrow) { color:#ecefe3; font-size:1.0625rem; line-height:1.85; margin-bottom:1.2rem; }
.garden-evening .section-link { color:#fffdf4; border-color:#adba9d; }
.studio-care { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:clamp(3rem,7vw,7rem); padding-block:var(--section-space); align-items:center; }
.studio-care h2 { font-size:clamp(2rem,3vw,3rem); line-height:1.5; font-weight:400; color:var(--text-main); padding:0; margin-bottom:2.6rem; }
.studio-process { margin:0; padding:0; list-style:none; }
.studio-process li { display:grid; grid-template-columns:2rem minmax(0,1fr); gap:1rem; border-top:1px solid var(--border-color); padding-block:1.4rem; }
.studio-process li>span { color:var(--text-accent); font-size:.8125rem; padding-top:.3rem; }
.studio-process h3 { font-size:1.125rem; line-height:1.7; font-weight:600; margin:0 0 .5rem; padding:0; }
.studio-process p { font-size:1rem; color:var(--text-muted); line-height:1.85; margin:0; }
.studio-care-photo { margin:0; }
.studio-care-photo picture { display:block; aspect-ratio:3/4; overflow:hidden; border-radius:48% 48% 0 0; }
.studio-care-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:78% 50%; }
.studio-contact { padding-block:5rem; background:#dfe5d3; color:#213529; }
.studio-contact-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:3rem 7rem; align-items:center; }
.studio-contact .eyebrow { color:#47603d; }
.studio-contact h2 { font-size:clamp(2.2rem,3.5vw,3.6rem); line-height:1.5; color:#203529; font-weight:400; margin:0; padding:0; }
.studio-contact p { font-size:1.0625rem; line-height:1.85; }
.studio-contact .btn-primary { background:#223e2b; border-color:#223e2b; color:#f9f7ee; }
.studio-contact .btn-primary:hover { background:#355640; border-color:#355640; }
.studio-contact-actions { display:flex; align-items:center; flex-wrap:wrap; gap:1rem 1.6rem; margin-block:1.8rem 1rem; }
.studio-contact .section-link { color:#223e2b; border-color:#75856d; }
.studio-contact .email-app-note { color:#4d5e47; font-size:.875rem; margin:0; }
.studio-contact :focus-visible { outline-color:#28412d; }
.site-footer { padding-block:4.5rem 2rem; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
 .garden-card img,.garden-feature-photo img { transition:transform .65s ease; }
 .garden-card:hover img,.garden-feature-photo:hover img { transform:scale(1.025); }
 .studio-service:hover .studio-arrow { background:var(--btn-primary-bg); color:var(--btn-primary-text); }
}
@media (max-width:1200px) {
 .nav-links { gap:.85rem; }
 .garden-feature-copy { padding:2rem; }
 .studio-services-layout { gap:3rem; }
}
@media (max-width:1024px) {
 :root,[data-theme="dark"],[data-theme="light"] { --header-height:68px; }
 .logo img { width:124px; }
 .garden-hero { min-height:700px; }
 .garden-hero-content { padding-block:5rem 3.625rem; }
 .garden-hero h1 { font-size:clamp(2.5rem,5vw,4rem); }
 .garden-feature { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
 .garden-feature-photo img { min-height:570px; }
 .garden-grid { gap:1.5rem; }
 .garden-ribbon .ribbon-brand { display:none; }
 .mobile-contact-bar { min-height:60px; padding:.45rem 1rem calc(.45rem + env(safe-area-inset-bottom)); }
 .mobile-contact-bar a { min-height:44px; padding:.5rem; font-size:.9375rem; }
}
@media (max-width:760px) {
 .garden-hero { min-height:660px; justify-content:end; }
 .garden-hero-photo img { object-position:57% 45%; }
 .garden-hero::before { background:linear-gradient(0deg,rgba(6,22,13,.96),rgba(6,22,13,.76) 38%,rgba(6,22,13,.08) 80%); }
 .garden-hero-content { padding-top:10rem; padding-bottom:2.125rem; }
 .garden-hero-eyebrow { width:fit-content; max-width:100%; padding:.3rem .55rem; background:rgba(7,23,13,.82); font-size:.875rem; line-height:1.7; letter-spacing:0; margin-bottom:1.2rem; gap:.35rem .5rem; }
 .garden-hero h1 { font-size:clamp(2.1rem,6.5vw,3.25rem); line-height:1.45; margin-bottom:1.25rem; }
 .garden-hero-lead { font-size:1rem; line-height:1.85; margin-bottom:1.5rem; }
 .garden-hero-actions { gap:.7rem 1.1rem; }
 .garden-hero-actions .btn { padding:.75rem 1rem; }
 .garden-hero-work { gap:.7rem; font-size:.9375rem; }
 .garden-hero-bottom { align-items:start; flex-direction:column; gap:0; padding-block:.5rem; min-height:70px; font-size:.875rem; line-height:1.7; }
 .garden-hero-bottom a { font-size:.875rem; min-height:40px; }
 .garden-ribbon { gap:.5rem 1rem; padding-block:1.2rem; font-size:.8125rem; }
 .garden-ribbon>span:not(.ribbon-brand) { gap:.6rem; }
 .garden-intro { grid-template-columns:1fr; gap:1.5rem; padding-block:3.5rem; }
 .garden-intro h2 { font-size:1.875rem; }
 .garden-intro p { font-size:1.0625rem; }
 .studio-section-heading { align-items:start; flex-direction:column; gap:1rem; margin-bottom:2rem; }
 .studio-section-heading h2 { font-size:2rem; }
 .garden-feature { grid-template-columns:1fr; }
 .garden-feature-photo picture { aspect-ratio:4/3; }
 .garden-feature-photo img { min-height:0; }
 .garden-feature-copy { padding:1.75rem; }
 .feature-marker { padding-bottom:1rem; margin-bottom:1.5rem; }
 .feature-marker>span { font-size:2.2rem; }
 .garden-feature h3 { font-size:1.75rem; }
 .garden-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:2.5rem 1.25rem; margin-top:2.5rem; }
 .garden-card:last-child { grid-column:1/-1; }
 .garden-card:last-child .garden-card-image { aspect-ratio:16/9; }
 .garden-card-caption { gap:.7rem; }
 .garden-card-caption h3 { font-size:1.25rem; }
 .studio-services-layout { grid-template-columns:1fr; gap:2rem; }
 .studio-services figure { max-width:none; }
 .studio-services figure picture { aspect-ratio:16/10; }
 .studio-services h2 { font-size:2rem; margin-bottom:1.75rem; }
 .studio-service { padding-block:1.6rem; gap:.75rem; }
 .studio-service h3 { font-size:1.375rem; }
 .garden-evening { min-height:630px; }
 .garden-evening-copy { padding-block:3rem; }
 .garden-evening h2 { font-size:2rem; }
 .studio-care { grid-template-columns:1fr; gap:2.5rem; }
 .studio-care h2 { font-size:2rem; }
 .studio-care-photo { max-width:32rem; width:100%; margin-inline:auto; }
 .studio-care-photo picture { aspect-ratio:4/3; border-radius:0; }
 .studio-contact-layout { grid-template-columns:1fr; gap:1.5rem; }
 .studio-contact { padding-block:3.5rem; }
 .studio-contact h2 { font-size:2.125rem; }
 .studio-contact-actions { margin-top:1.5rem; }
}
@media (max-width:480px) {
 .garden-hero { min-height:660px; }
 .garden-hero-photo img { object-position:56% 45%; }
 .garden-hero h1 { font-size:2.1rem; }
 :lang(en) .garden-hero h1 { font-size:2.2rem; }
 .garden-grid { grid-template-columns:1fr; }
 .garden-card:last-child { grid-column:auto; }
 .garden-card-image,.garden-card:last-child .garden-card-image { aspect-ratio:4/3; }
 .garden-card-caption h3 { font-size:1.375rem; }
 .garden-feature-copy { padding:1.5rem; }
 .studio-service { grid-template-columns:1.4rem minmax(0,1fr) 36px; }
 .studio-service .studio-arrow { width:36px; height:36px; }
}
@media (max-width:360px) {
 .garden-hero h1 { font-size:1.85rem; }
 :lang(en) .garden-hero h1 { font-size:2rem; }
 .garden-hero-content { padding-top:9rem; padding-bottom:2.625rem; }
 .garden-hero-actions { gap:.5rem 1rem; }
 .garden-hero-work { font-size:.875rem; }
 .studio-service { grid-template-columns:minmax(0,1fr) 36px; }
 .studio-service-number { display:none; }
}
@media (prefers-reduced-motion:reduce) {
 .studio-home *, .profile-inner * { scroll-behavior:auto; transition:none; animation:none; }
}

/* Direct company LINE contact, shared by every localized page. */
.btn.btn-line, .mobile-contact-bar a.line-contact { background:#06c755; border-color:#06c755; color:#052213; font-weight:700; }
.btn.btn-line:hover, .mobile-contact-bar a.line-contact:hover { background:#05b94e; border-color:#05b94e; color:#052213; }
@media (max-width:1199px) {
 .mobile-contact-bar { grid-template-columns:repeat(3,minmax(0,1fr)); min-height:60px; padding:.45rem 1rem calc(.45rem + env(safe-area-inset-bottom)); }
 .mobile-contact-bar a { min-height:44px; padding:.5rem; font-size:.9375rem; gap:.35rem; }
}

/* Enlarged text can wrap without widening its grid or covering nearby controls. */
.studio-home { overflow-wrap:anywhere; }
.studio-home :is(h1,h2,h3,h4) { overflow-wrap:anywhere; }
.studio-home :is(.garden-intro,.studio-contact-layout,.studio-care,.studio-services-layout)>* { min-width:0; }
.studio-home :is(.btn,.section-link,.garden-hero-work,.garden-hero-bottom a) { max-width:100%; min-width:0; white-space:normal; }
.garden-hero-bottom>* { min-width:0; max-width:100%; }
@media (max-width:1199px) {
 body:has(> .mobile-contact-bar) { padding-bottom:max(calc(max(64px,4rem) + env(safe-area-inset-bottom)),var(--contact-dock-height,0px)); }
 /* Failed or disabled JavaScript keeps contacts after the footer, never over it. */
 html:not([data-contact-dock-ready="true"]) body:has(> .mobile-contact-bar) { padding-bottom:0; }
 html:not([data-contact-dock-ready="true"]) .mobile-contact-bar { position:static; inset:auto; }
 .mobile-contact-bar { padding-inline:min(1rem,4vw); }
 .mobile-contact-bar a { overflow-wrap:anywhere; }
 .mobile-contact-bar a>span { min-width:0; }
}
@media (max-width:480px) {
 .mobile-contact-bar a { padding-inline:.125rem; }
 .mobile-contact-bar .fas { display:none; }
}

/* Keep the saved light theme logo readable if the shared script cannot run. */
html[data-theme="light"]:not([data-theme-ready="true"]) .logo img {
 content:url("/assets/brand/jomgarden-header-light.svg");
}

/* Short screens need their vertical space; contact links remain in the footer. */
@media (max-width:1199px) and (max-height:480px) {
 body:has(> .mobile-contact-bar) { padding-bottom:0; }
 .mobile-contact-bar { display:none; }
}

/* Keep fixed contacts from covering keyboard focus in the page content.
   Ordinary contact links remain available; retain padding to avoid layout jumps. */
@media (max-width:1199px) {
 body:has(> main:focus-visible, > main :focus-visible, > footer :focus-visible) > .mobile-contact-bar { display:none; }
}

/* Keep the measured desktop width independent of the active menu mode. */
@media (min-width:1025px) {
 :root,[data-theme="dark"],[data-theme="light"] { --header-height:max(80px,3.5rem); }
 .nav-links { flex-shrink:0; width:max-content; }
 html[data-header-compact="true"] .nav-links { position:fixed; left:0; top:0; visibility:hidden; pointer-events:none; }
 html[data-header-compact="true"] .mobile-menu-btn { display:inline-flex; }
 html[data-header-compact="true"] .mobile-nav { display:flex; }
}

/* Language choices are always one tap away, including on compact screens. */
:root { --site-header-height:calc(var(--header-height) + max(44px,1.40625rem + 10px) + 10px); }
html { scroll-padding-top:calc(var(--site-header-height) + 1rem); }
body { padding-top:var(--site-header-height); }
.mobile-nav { top:var(--site-header-height); }
/* Very short screens and enlarged text need one scrollable navigation surface. */
@media screen {
html[data-header-scrollable="true"] { scroll-padding-top:1rem; scroll-behavior:auto; }
html[data-header-scrollable="true"] header { position:static; }
html[data-header-scrollable="true"] body { padding-top:0; }
html[data-header-scrollable="true"] .mobile-nav { position:static; inset:auto; overflow:visible; }
html[data-header-scrollable="true"] body.menu-open { overflow:auto; }
html[data-header-scrollable="true"] body.menu-open :is(main,body > footer) { display:none; }
}
html:not([data-menu-ready="true"]) header { position:relative; }
html:not([data-menu-ready="true"]) body { padding-top:0; }
html:not([data-menu-ready="true"]) { scroll-padding-top:1rem; }
.language-bar { border-top:1px solid var(--border-color); }
.language-bar-inner { display:flex; justify-content:center; align-items:center; padding:4px 12px; }
.language-picker { position:relative; max-width:100%; }
.language-summary { display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; max-width:100%; padding:4px 12px; border:1px solid var(--border-color); border-radius:6px; color:var(--text-main); font-size:.9375rem; line-height:1.5; font-weight:600; cursor:pointer; list-style:none; }
.language-summary::-webkit-details-marker { display:none; }
.language-summary > span:not(.language-chevron) { min-width:0; overflow-wrap:anywhere; }
.language-chevron { flex:0 0 auto; }
.language-picker[open] .language-chevron { transform:rotate(180deg); }
.language-summary:focus-visible { outline:3px solid var(--text-accent); outline-offset:2px; }
.language-options { position:absolute; top:calc(100% + 5px); left:50%; transform:translateX(-50%); z-index:2; display:grid; gap:4px; width:min(24rem,calc(100vw - 2.5rem)); max-height:max(44px,calc(100svh - var(--site-header-height) - var(--contact-dock-height,4rem) - 1rem)); padding:6px; border:1px solid var(--border-color); border-radius:6px; background:var(--bg-body); box-shadow:0 12px 32px rgba(0,0,0,.24); overflow-y:auto; overscroll-behavior:contain; }
.language-picker:not([open]) .language-options { display:none; }
.language-bar .language-options .language-label { justify-content:flex-start; }
.language-options .language-label > span { min-width:0; overflow-wrap:anywhere; }
html[data-header-scrollable="true"] .language-options { position:static; transform:none; width:100%; max-height:none; margin-top:5px; }
.language-bar .language-label { display:inline-flex; align-items:center; justify-content:center; min-width:64px; min-height:44px; padding:4px 12px; border:1px solid transparent; border-radius:6px; color:var(--text-muted); font-size:.9375rem; line-height:1.5; font-weight:600; text-decoration:none; }
.language-bar .language-label:hover { color:var(--text-main); background:var(--bg-surface); }
.language-bar .language-label[aria-current="true"] { color:var(--btn-primary-text); background:var(--btn-primary-bg); border-color:var(--btn-primary-bg); }
.language-bar .language-label:focus-visible { outline:2px solid var(--text-accent); outline-offset:1px; }
@media (max-width:480px) {
 .language-bar .language-label { padding-inline:6px; }
}
@media (forced-colors:active) {
 .language-summary,.language-options { color:CanvasText; background:Canvas; border-color:CanvasText; box-shadow:none; }
 .language-summary:focus-visible { outline-color:Highlight; }
 .language-bar .language-label { color:LinkText; }
 .language-bar .language-label[aria-current="true"] { color:CanvasText; border-color:CanvasText; text-decoration:underline; }
 .language-bar .language-label:focus-visible { outline-color:Highlight; }
}

/* On small screens the real garden has its own reserved frame. Text grows in
   flow instead of covering the foreground or choosing the photo's crop height. */
@media screen and (max-width:760px) {
 .garden-hero { min-height:0; justify-content:flex-start; }
 .garden-hero-photo { position:relative; inset:auto; z-index:auto; width:100%; aspect-ratio:16/10; flex:0 0 auto; }
 .garden-hero-photo img { object-position:50% 85%; }
 .garden-hero::before { display:none; }
 .garden-hero-content { margin-block:0; padding-block:1.25rem; }
 .garden-hero-eyebrow { padding:0; background:none; margin-bottom:.75rem; }
 .garden-hero h1 { margin-bottom:.75rem; }
 .garden-hero-lead { line-height:1.7; margin-bottom:1.25rem; }
 .garden-hero-actions { display:grid; grid-template-columns:minmax(0,1fr); justify-items:start; gap:.75rem; }
 .garden-hero-actions > a { min-width:0; max-width:100%; }
 .garden-hero-bottom { padding-bottom:1.25rem; }
}

/* Keep the supplied artwork legible on either system contrast canvas. */
@media (forced-colors: active) {
 .logo img { forced-color-adjust:none; background:#fff; content:url("/assets/brand/jomgarden-header-light.svg"); }
 .footer-brand img { forced-color-adjust:none; background:#101e18; }
}
/* Print the company content, never an open navigation overlay or screen dock. */
@media print {
 :root,[data-theme="dark"],[data-theme="light"] {
  --bg-body:#fff; --bg-surface:#fff; --text-main:#111;
  --text-muted:#333; --text-accent:#111; --border-color:#888;
  --btn-primary-bg:#fff; --btn-primary-text:#111;
 }
 body,body *,body::before,body::after,body *::before,body *::after { transition:none !important; animation:none !important; }
 html,body,body.menu-open,body.gallery-open { overflow:visible !important; }
 body,body:has(> .mobile-contact-bar) { min-width:0; padding:0 !important; background:#fff !important; color:#111 !important; }
 body * { color:#111 !important; background-color:transparent !important; }
 header { position:static !important; border-bottom:1px solid #888; }
 .nav-wrapper { height:auto; min-height:0; padding-block:1rem; }
 .nav-links,.header-actions,.language-bar,.mobile-nav,.no-js-menu,.no-js-nav,.mobile-contact-bar,
 .skip-link,.gallery-dialog,.gallery-load-more { display:none !important; }
 .logo img { content:url("/assets/brand/jomgarden-header-light.svg"); }
 .footer-brand img { content:url("/assets/brand/jomgarden-company.svg"); }
 .garden-hero-photo,.garden-evening-photo,
 .garden-hero::before,.garden-evening::before { display:none !important; }
 .garden-hero,.garden-evening { min-height:0; }
 .garden-hero-content,.garden-evening-copy { padding-block:2rem; }
 .btn { border-color:#888 !important; }
 h1,h2,h3 { break-after:avoid; }
}
/* Japanese uses local Japanese glyphs with comfortable reading rhythm. */
html:lang(ja) body {font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; line-height: 1.75;}
html:lang(ja) :is(h1,h2,h3,.eyebrow,.garden-hero-eyebrow) {letter-spacing: normal;}

/* Decorative language badges retain text labels and native touch targets. */
.language-flag { display:inline-block; width:22px; height:15px; flex:0 0 22px; object-fit:contain; border-radius:2px; box-shadow:0 0 0 1px rgba(128,128,128,.35); vertical-align:middle; }
.language-bar .language-label { gap:6px; }
.contact-actions .language-flag { margin-inline-end:8px; }
/* A compact first-visit hint keeps the homepage visible and leaves language choice to the visitor. */
.language-suggestion { border-bottom:1px solid var(--border-color); background:var(--bg-surface); }
.language-suggestion-inner { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; justify-items:center; gap:.4rem 1.25rem; padding-block:.5rem; }
.language-suggestion-inner > p { width:100%; min-width:0; margin:0; color:var(--text-main); font-size:1rem; line-height:1.6; text-align:center; overflow-wrap:anywhere; }
.language-suggestion-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; gap:.35rem 1rem; width:min(100%,32rem); min-width:0; max-width:100%; }
.language-suggestion-actions > a { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:44px; width:100%; min-width:0; max-width:100%; padding:.5rem .75rem; color:var(--text-main); font-size:1rem; line-height:1.6; text-align:center; overflow-wrap:anywhere; }
.language-suggestion-link > span { min-width:0; }
.language-suggestion-link { background:var(--btn-primary-bg); color:var(--btn-primary-text) !important; border:1px solid var(--btn-primary-bg); border-radius:4px; }
.language-suggestion-stay { text-decoration:underline; text-underline-offset:.2em; }
/* Font swaps must not choose between one and two action rows on narrow screens. */
@media (max-width:480px) {
 .language-suggestion-inner { column-gap:.75rem; padding-inline:1rem; }
 .language-suggestion-actions { grid-template-columns:minmax(0,1fr); width:100%; }
}
@media (forced-colors:active) {
 .language-suggestion-link { background:ButtonFace; color:ButtonText !important; border-color:ButtonText; }
 .language-suggestion-stay { color:LinkText; }
}
@media print { .language-suggestion { display:none !important; } }
