@import "tailwindcss";

:root {
  --green-950: #08372f;
  --green-900: #0c4a3d;
  --green-800: #145f4e;
  --green-100: #e7f0ec;
  --cream: #f8f5ee;
  --paper: #fffdf9;
  --ink: #1f2925;
  --muted: #61706a;
  --gold: #c38a47;
  --gold-soft: #f3e4cf;
  --line: #e7e0d5;
  --shadow: 0 16px 46px rgba(31, 41, 37, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Vazirmatn, IRANSans, Tahoma, Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 253, 249, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { width: min(1240px, calc(100% - 40px)); min-height: 78px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--green-900); font-size: 25px; font-weight: 900; width: fit-content; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--green-900); color: white; box-shadow: inset 0 0 0 2px rgba(255,255,255,.16); }
nav { display: flex; align-items: center; justify-content: center; gap: 30px; font-size: 15px; font-weight: 700; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; right: 0; bottom: -9px; width: 0; height: 2px; background: var(--green-900); transition: width .2s ease; }
nav a:hover::after { width: 100%; }
.header-cta { justify-self: end; background: var(--green-900); color: white; padding: 11px 20px; border-radius: 12px; font-size: 14px; font-weight: 800; }

.hero { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 58px; padding-block: 68px 46px; }
.eyebrow { margin: 0 0 13px; color: var(--green-800); font-size: 14px; font-weight: 900; letter-spacing: .01em; }
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 2px; margin-left: 10px; background: var(--gold); }
.hero h1 { margin: 0; max-width: 660px; color: var(--green-950); font-size: clamp(42px, 5vw, 70px); line-height: 1.24; letter-spacing: -0.04em; font-weight: 950; }
.hero-lead { max-width: 620px; margin: 24px 0 0; color: #46534e; font-size: 18px; line-height: 2; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border: 1px solid transparent; border-radius: 13px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green-900); color: white; box-shadow: 0 11px 24px rgba(12, 74, 61, .18); }
.button-secondary { border-color: #d9c3a5; color: #8b5d29; background: transparent; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 27px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.trust-list li::before { content: "✓"; margin-left: 7px; color: var(--green-800); font-weight: 950; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; z-index: -1; border-radius: 32px; background: var(--green-100); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 27px; box-shadow: var(--shadow); }
.experience-badge { position: absolute; bottom: 20px; right: 20px; display: flex; flex-direction: column; padding: 12px 17px; border-radius: 13px; background: rgba(255,253,249,.93); color: var(--green-900); box-shadow: 0 10px 30px rgba(0,0,0,.14); backdrop-filter: blur(8px); }
.experience-badge strong { font-size: 14px; }.experience-badge span { color: var(--muted); font-size: 11px; }

.branches { padding-block: 42px 80px; }
.section-heading { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.section-heading h2, .care-intro h2, .final-cta h2 { margin: 0; color: var(--green-950); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.35; letter-spacing: -.025em; }
.section-heading > p:last-child, .horizontal-heading > p, .compact-heading > p { margin: 14px 0 0; color: var(--muted); }
.compact-heading, .horizontal-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 30px; text-align: right; }
.compact-heading > p, .horizontal-heading > p { max-width: 460px; }
.branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.branch-card { display: flex; gap: 20px; align-items: flex-start; padding: 27px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 9px 30px rgba(31,41,37,.055); }
.icon-wrap { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: var(--gold-soft); color: #a96c29; }
.icon { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.branch-card h3 { margin: 0 0 5px; color: var(--green-950); font-size: 19px; }
.branch-card address { min-height: 34px; color: #44524c; font-style: normal; }
.branch-card a, .text-link { margin-top: 11px; display: inline-flex; align-items: center; gap: 4px; color: var(--green-800); font-weight: 900; font-size: 14px; }
.branch-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.branch-phones { display: grid; gap: 7px; margin-top: 13px; }
.branch-phones a { min-height: 38px; margin-top: 0; padding: 6px 10px; border-radius: 10px; background: var(--green-100); color: var(--green-900); }
.arrow-icon { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; transform: rotate(180deg); }

.service-preview { padding-block: 88px; border-radius: 34px; background: var(--cream); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-inline: 38px; }
.service-grid article { min-height: 245px; padding: 28px; border: 1px solid #e2d5c4; border-radius: 21px; background: rgba(255,255,255,.74); }
.service-grid article > span { color: var(--gold); font-size: 14px; font-weight: 900; }
.service-grid h3 { margin: 38px 0 9px; color: var(--green-950); font-size: 21px; }
.service-grid h3 a { color: inherit; text-decoration: none; }.service-grid h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.portfolio { padding-block: 105px 95px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.portfolio figure { margin: 0; overflow: hidden; position: relative; border-radius: 22px; background: #eee; box-shadow: 0 12px 34px rgba(31,41,37,.1); }
.portfolio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease; }
.portfolio figure:hover img { transform: scale(1.035); }
.portfolio figcaption { position: absolute; inset: auto 12px 12px; padding: 12px 15px; border-radius: 12px; background: rgba(8,55,47,.9); color: white; font-size: 14px; font-weight: 800; backdrop-filter: blur(10px); }

.care { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; padding-block: 95px; border-top: 1px solid var(--line); }
.care-intro { position: sticky; top: 120px; align-self: start; }
.care-intro > p:not(.eyebrow) { color: var(--muted); }
.care-list { display: flex; flex-direction: column; }
.care-list article { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.care-list article > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: var(--green-100); color: var(--green-900); font-weight: 950; }
.care-list h3 { margin: 0 0 6px; color: var(--green-950); font-size: 18px; }
.care-list p { margin: 0; color: var(--muted); font-size: 14px; }

.final-cta { margin-top: 15px; margin-bottom: 85px; padding: 46px 52px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: 28px; background: var(--green-900); color: white; box-shadow: 0 20px 50px rgba(12,74,61,.18); }
.final-cta h2 { color: white; font-size: clamp(27px, 3vw, 39px); }.final-cta .eyebrow { color: #f0cfa8; }.final-cta p:last-child { margin-bottom: 0; color: #d1e0db; }
.button-light { flex: 0 0 auto; background: white; color: var(--green-900); }

footer { background: #07342c; color: #d3e0dc; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 70px; padding-block: 58px; }
.footer-brand { color: white; }.footer-inner p { max-width: 420px; color: #a9bdb7; }
.footer-inner h2 { margin: 0 0 13px; color: white; font-size: 15px; }
.footer-inner > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-branch { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-branch a:not(:first-child) { color: #b8ccc5; font-size: 13px; direction: ltr; justify-content: flex-end; }
.copyright { padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.1); color: #91aaa2; text-align: center; font-size: 12px; }

.inner-page { min-height: 100vh; background: var(--paper); }
.simple-header { border-bottom: 1px solid var(--line); background: white; }
.simple-header > div { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.back-link { color: var(--green-800); font-size: 14px; font-weight: 850; }
.breadcrumbs { display: flex; justify-content: flex-start; gap: 9px; padding-top: 30px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--green-800); font-weight: 800; }
.branch-detail { padding-bottom: 90px; }
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 58px; padding-block: 56px 68px; }
.detail-hero h1, .article-header h1 { margin: 0; color: var(--green-950); font-size: clamp(38px, 5vw, 64px); line-height: 1.3; letter-spacing: -.035em; }
.detail-hero p { color: var(--muted); font-size: 17px; }
.detail-hero address { margin: 23px 0; padding: 17px 19px; border-right: 3px solid var(--gold); background: var(--cream); color: var(--green-950); font-style: normal; font-weight: 900; }
.detail-phones { display: flex; flex-wrap: wrap; gap: 10px; margin: -10px 0 22px; }
.detail-phones a { min-height: 46px; display: inline-flex; align-items: center; padding: 9px 14px; border: 1px solid #c9dcd5; border-radius: 12px; background: var(--green-100); color: var(--green-900); font-weight: 900; }
.detail-hero img { width: 100%; aspect-ratio: 4/3; border-radius: 25px; object-fit: cover; box-shadow: var(--shadow); }
.local-copy { max-width: 820px; margin-inline: auto; }
.local-copy h2, .nearby-link h2, .article-body h2 { margin: 45px 0 10px; color: var(--green-950); font-size: 27px; }
.local-copy p, .article-body p { color: #4d5b55; }
.nearby-link { max-width: 820px; margin: 45px auto 0; padding: 25px 30px; border-radius: 20px; background: var(--green-100); }
.nearby-link h2 { margin: 0 0 8px; font-size: 20px; }.nearby-link p { margin: 0; }.nearby-link a, .article-body a { color: var(--green-800); font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.article-page { padding-bottom: 100px; }
.article-header { max-width: 890px; margin: 55px auto 42px; text-align: center; }.article-header p:last-child { margin: 18px auto 0; max-width: 720px; color: var(--muted); font-size: 17px; }
.article-cover { width: min(900px, 100%); max-height: 520px; margin: 0 auto 60px; border-radius: 26px; object-fit: cover; box-shadow: var(--shadow); }
.article-body { max-width: 780px; margin-inline: auto; }.article-body section { padding-bottom: 12px; }.article-body h2 { font-size: 26px; }.article-body p { font-size: 16px; line-height: 2.1; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 70px; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 45px; }
  .hero-copy { text-align: center; }.hero h1, .hero-lead { margin-inline: auto; }.hero-actions, .trust-list { justify-content: center; }
  .hero-media { grid-row: 2; }
  .compact-heading, .horizontal-heading { align-items: start; flex-direction: column; }
  .service-grid, .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .service-grid article:last-child, .portfolio figure:last-child { grid-column: 1 / -1; }
  .care { grid-template-columns: 1fr; gap: 25px; }.care-intro { position: static; }
  .detail-hero { grid-template-columns: 1fr; }.detail-hero img { grid-row: 1; }
}

@media (max-width: 620px) {
  .section-shell, .header-inner { width: min(100% - 28px, 1180px); }
  .header-cta { padding: 9px 13px; font-size: 12px; }.brand { font-size: 20px; }.brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .hero { padding-top: 36px; }.hero h1 { font-size: 40px; }.hero-lead { font-size: 16px; }.hero-actions { flex-direction: column; }.button { width: 100%; }
  .hero-media::before { inset: -10px 10px 10px -10px; }.experience-badge { bottom: 10px; right: 10px; }
  .branches { padding-bottom: 60px; }.branch-grid, .service-grid, .portfolio-grid { grid-template-columns: 1fr; }.service-grid article:last-child, .portfolio figure:last-child { grid-column: auto; }
  .branch-card { padding: 21px; }.branch-card address { min-height: 0; }
  .service-preview { width: 100%; border-radius: 0; padding-block: 70px; }.service-grid { padding-inline: 14px; }
  .portfolio { padding-block: 75px; }.portfolio-grid { gap: 14px; }
  .care { padding-block: 70px; }.care-list article { grid-template-columns: 40px 1fr; gap: 13px; }.care-list article > span { width: 38px; height: 38px; }
  .final-cta { width: calc(100% - 28px); padding: 34px 25px; flex-direction: column; align-items: stretch; text-align: center; }.final-cta .eyebrow::before { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .simple-header > div { min-height: 68px; }.back-link { font-size: 12px; }
  .detail-hero { padding-block: 38px 60px; gap: 30px; }.detail-hero h1, .article-header h1 { font-size: 38px; }.detail-hero .button { width: 100%; }
  .article-header { margin-top: 38px; text-align: right; }.article-cover { margin-bottom: 40px; border-radius: 18px; }.article-body h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  background: white;
}
.faq-list summary {
  cursor: pointer;
  color: var(--green-950);
  font-weight: 950;
}
.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 2;
}

.admin-page {
  min-height: 100vh;
  padding: 28px 28px 112px;
  background: linear-gradient(135deg, var(--cream), var(--paper));
}
.admin-grid {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}
.admin-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}
.admin-login {
  width: min(470px, 100%);
  margin: 80px auto;
  padding: 28px;
}
.admin-login h1, .admin-sidebar h1, .admin-form h2 {
  margin: 0 0 10px;
  color: var(--green-950);
  line-height: 1.35;
}
.admin-login p, .admin-sidebar p, .admin-help, .admin-muted {
  color: var(--muted);
}
.admin-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}
.admin-sidebar .admin-card, .admin-form {
  padding: 22px;
}
.admin-form-header, .admin-section-title, .admin-repeat-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.admin-kicker {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}
.admin-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.admin-section h3 {
  margin: 0 0 14px;
  color: var(--green-950);
}
.admin-form label, .admin-login label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--green-950);
  font-weight: 900;
}
.admin-form input, .admin-form textarea, .admin-login input {
  width: 100%;
  border: 2px solid #b9afa2;
  border-radius: 13px;
  padding: 12px 14px;
  background: white;
  color: #132a23;
  font: inherit;
  font-weight: 500;
  caret-color: var(--green-900);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.admin-form input:hover, .admin-form textarea:hover, .admin-login input:hover {
  border-color: #8f8171;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-login input:focus {
  border-color: var(--green-800);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(20, 95, 78, .13);
}
.admin-form input::placeholder, .admin-form textarea::placeholder, .admin-login input::placeholder {
  color: #68746f;
  opacity: 1;
}
.admin-form input:placeholder-shown, .admin-form textarea:placeholder-shown,
.admin-login input:placeholder-shown {
  border-color: #c4945d;
  background: #fffcf5;
}
.admin-form textarea {
  resize: vertical;
}
.admin-primary, .admin-secondary, .admin-danger {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 9px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}
.admin-primary {
  background: var(--green-900);
  color: white;
}
.admin-primary:disabled {
  cursor: wait;
  opacity: .65;
}
.admin-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  border: 1px solid #d9c3a5;
  background: white;
  color: #8b5d29;
}
.admin-danger {
  min-height: 36px;
  background: #fff1f0;
  color: #a32018;
}
.admin-message {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 13px;
  font-weight: 850;
}
.admin-message.success {
  background: var(--green-100);
  color: var(--green-900);
}
.admin-message.error {
  background: #fff1f0;
  color: #a32018;
}
.admin-save-state {
  margin: 16px 0 0;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
}
.admin-save-state.saved { background: var(--green-100); color: var(--green-900); }
.admin-save-state.unsaved { background: #fff3df; color: #8a5316; }
.admin-save-bar {
  position: fixed;
  z-index: 60;
  right: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(50%);
  width: min(680px, calc(100% - 28px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 12px;
  border: 2px solid #b8d0c8;
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  color: var(--green-900);
  box-shadow: 0 18px 50px rgba(8, 55, 47, .2);
  backdrop-filter: blur(14px);
  font-weight: 900;
}
.admin-save-bar.has-changes { border-color: var(--gold); background: #fffcf5; }
.admin-save-bar .admin-save-state { margin: 0; }
.admin-save-bar .admin-primary { flex: 0 0 auto; min-width: 170px; }
.admin-preview span {
  display: block;
  margin-bottom: 10px;
  color: var(--green-950);
  font-weight: 900;
}
.admin-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
  background: var(--cream);
}
.admin-repeat {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.admin-repeat-title span {
  color: var(--green-900);
  font-weight: 950;
}
.admin-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.admin-form small.field-warning {
  color: #a32018;
}
.seo-preview {
  display: grid;
  gap: 5px;
  margin: 14px 0 20px;
  padding: 18px;
  border: 1px solid #dfe4ea;
  border-radius: 16px;
  background: white;
  font-family: Arial, sans-serif;
}
.seo-preview strong {
  color: #1a0dab;
  font-size: 20px;
  font-weight: 400;
}
.seo-preview span {
  color: #202124;
  font-size: 12px;
}
.seo-preview p {
  margin: 2px 0 0;
  color: #4d5156;
  font-size: 14px;
  line-height: 1.6;
}
.admin-inline-preview {
  display: block;
  width: min(260px, 100%);
  margin-top: 14px;
  aspect-ratio: 4 / 3;
  border-radius: 13px;
  object-fit: cover;
  background: var(--cream);
}

@media (max-width: 860px) {
  .admin-page { padding: 14px 14px 112px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-form-header, .admin-section-title { align-items: stretch; flex-direction: column; }
}

/* Responsive hardening for phones, tablets and narrow browser windows. */
html, body {
  max-width: 100%;
  overflow-x: clip;
}
body {
  min-width: 280px;
}
main, section, article, header, footer, div, form, aside {
  min-width: 0;
}
p, h1, h2, h3, address, figcaption, summary, a, label, small {
  overflow-wrap: anywhere;
}
button, input, textarea, select {
  max-width: 100%;
}
button, input, textarea {
  font-size: 16px;
}
.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

@media (max-width: 900px) {
  html { scroll-padding-top: 118px; }
  .site-header { padding-top: env(safe-area-inset-top); }
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding-block: 8px;
  }
  .site-header nav {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: inline proximity;
  }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav a {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding-inline: 12px;
    border-radius: 10px;
    background: var(--cream);
    font-size: 13px;
    scroll-snap-align: start;
  }
  .site-header nav a::after { display: none; }
  .portfolio-grid { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
  .portfolio figure:last-child { grid-column: auto; }
  .admin-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
  .admin-sidebar .admin-card { height: 100%; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 124px; }
  .section-shell, .header-inner {
    width: min(100% - 28px, 1180px);
  }
  .hero h1 {
    font-size: clamp(32px, 10vw, 40px);
    line-height: 1.32;
  }
  .section-heading h2, .care-intro h2, .final-cta h2 {
    font-size: clamp(27px, 8vw, 34px);
  }
  .compact-heading, .horizontal-heading { gap: 12px; }
  .compact-heading > p, .horizontal-heading > p { margin-top: 0; }
  .branch-card > div { width: 100%; }
  .branch-links { align-items: stretch; flex-direction: column; gap: 2px; }
  .branch-card a { min-height: 44px; margin-top: 4px; }
  .service-grid article { min-height: 0; padding: 22px; }
  .service-grid h3 { margin-top: 22px; }
  .portfolio figcaption {
    position: static;
    border-radius: 0;
    background: var(--green-900);
  }
  .faq-list { padding-inline: 14px; }
  .faq-list details { padding: 16px; }
  .care-intro .text-link { min-height: 44px; }
  .footer-inner { padding-block: 44px; }
  .footer-inner a { min-height: 36px; display: inline-flex; align-items: center; }
  .detail-hero h1, .article-header h1 {
    font-size: clamp(30px, 9vw, 38px);
  }
  .detail-hero p, .article-header p:last-child { font-size: 16px; }
  .local-copy h2, .nearby-link h2, .article-body h2 {
    margin-top: 34px;
    font-size: clamp(21px, 6.5vw, 25px);
  }
  .nearby-link { padding: 20px; }
  .breadcrumbs {
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .article-page { padding-bottom: 70px; }
  .article-body p { font-size: 15px; }
  .admin-page {
    padding: 12px max(10px, env(safe-area-inset-right)) max(112px, calc(18px + env(safe-area-inset-bottom))) max(10px, env(safe-area-inset-left));
  }
  .admin-sidebar { grid-template-columns: 1fr; }
  .admin-sidebar .admin-card, .admin-form, .admin-login { padding: 18px; }
  .admin-login { margin-block: 28px; }
  .admin-card { border-radius: 17px; }
  .admin-form-header, .admin-section-title { gap: 10px; }
  .admin-repeat { padding: 13px; }
  .admin-repeat-title { flex-wrap: wrap; }
  .admin-repeat-title .admin-danger { margin-inline-start: auto; }
  .admin-primary, .admin-secondary, .admin-danger { min-height: 46px; }
  .seo-preview { padding: 14px; }
  .seo-preview strong { font-size: 18px; }
}

@media (max-width: 420px) {
  .section-shell, .header-inner { width: min(100% - 20px, 1180px); }
  .header-inner { column-gap: 8px; }
  .brand { gap: 7px; font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .header-cta { padding-inline: 10px; font-size: 11px; white-space: nowrap; }
  .site-header nav a { padding-inline: 10px; font-size: 12px; }
  .hero { padding-top: 28px; }
  .hero-copy { text-align: right; }
  .hero-actions, .trust-list { justify-content: flex-start; }
  .hero-media img { border-radius: 19px; }
  .experience-badge { max-width: calc(100% - 20px); }
  .branch-card { flex-direction: column; gap: 13px; padding: 18px; }
  .icon-wrap { width: 46px; height: 46px; }
  .service-preview { padding-block: 56px; }
  .portfolio { padding-block: 60px; }
  .care-list article { grid-template-columns: 34px minmax(0, 1fr); }
  .care-list article > span { width: 32px; height: 32px; }
  .final-cta { width: calc(100% - 20px); padding: 28px 18px; }
  .simple-header > div { gap: 10px; }
  .simple-header .brand { font-size: 17px; }
  .back-link { max-width: 112px; text-align: left; line-height: 1.45; }
  .detail-hero address { padding: 14px; }
  .article-cover { aspect-ratio: 4 / 3; }
  .admin-form input, .admin-form textarea, .admin-login input { padding: 11px 12px; }
  .admin-form-header .admin-primary { width: 100%; }
}

@media (max-width: 520px) {
  .admin-save-bar { min-height: 0; align-items: stretch; flex-direction: column; gap: 8px; padding: 10px; text-align: center; }
  .admin-save-bar .admin-primary { width: 100%; min-width: 0; }
}
