/* Idaman Service Residence — static rebuild
   No external fonts or frameworks. Edit the variables below to re-theme. */
:root {
  --ink: #1d221f;
  --muted: #5b625d;
  --paper: #ffffff;
  --tint: #f4f6f4;
  --line: #dfe4df;
  --green: #9a4a1f;
  --green-dark: #5a2a10;
  --link: #9a4a1f;
  --radius: 12px;
  --wrap: 1120px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

/* ---------- Header + hero ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.site-header .wrap { width: min(1320px, 100% - 2rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.75rem); color: #fff; text-decoration: none; line-height: 1.1; white-space: nowrap; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: .1rem; justify-content: flex-end; }
.nav a {
  color: rgba(255,255,255,.92); text-decoration: none; font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; padding: .5rem .65rem; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { background: rgba(255,255,255,.16); color: #fff; }
.nav a[aria-current="page"] { background: #fff; color: var(--ink); }
.nav-toggle { display: none; }

.hero {
  position: relative; min-height: clamp(260px, 38vw, 400px);
  display: flex; align-items: flex-end;
  color: #fff;
  background:
    radial-gradient(1200px 400px at 85% 0%, rgba(230,150,90,.28), transparent 60%),
    linear-gradient(135deg, #2a1408 0%, #6e3416 55%, #9a4a1f 100%);
  background-size: cover; background-position: center;
}
.hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.1) 60%); }
.hero .wrap { position: relative; z-index: 1; padding-block: 3rem 2.2rem; }
.hero h1 { margin: 0; font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 400; letter-spacing: .01em; text-shadow: 0 2px 14px rgba(0,0,0,.4); }

/* ---------- Content ---------- */
main { display: block; }
.section { padding-block: 2.4rem; }
.section + .section { border-top: 1px solid var(--line); }
.lead { color: var(--muted); font-size: 1.1rem; }
.rounded, figure img { border-radius: var(--radius); }
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--muted); font-style: italic; margin-top: .6rem; }

.trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; align-items: center; margin-top: 1.4rem; }
.trio p { margin: 0; text-align: center; color: var(--muted); }

.history { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; align-items: start; }
.history .text p:last-child { margin-bottom: 0; }

.classics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.2rem; }
.classics h3 { text-align: center; font-size: 1rem; font-family: var(--sans); font-weight: 600; margin-bottom: .6rem; color: var(--muted); }
.classics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.checklist { padding-left: 1.2rem; }
.checklist li { margin-bottom: .35rem; }
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  padding: .85rem 1.6rem; border-radius: 10px; font-weight: 600; border: 0; cursor: pointer; font: inherit; font-weight: 600;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.center { text-align: center; }

/* image/text rows (Where It All Started) */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; align-items: center; padding-block: 1.2rem; }
.pair figure { justify-self: center; }
.pair p { margin: 0; text-align: center; color: var(--muted); }
.pair.rev figure { order: 2; }
.rebuild { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; align-items: center; margin-top: 1.2rem; }
.rebuild p { margin: 0; text-align: center; color: var(--muted); }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; align-items: center; margin-block: 1.6rem; }
.about-grid p { margin: 0; text-align: center; color: var(--muted); }
.about-grid img { width: 100%; }
.about-feature { max-width: 640px; margin: 0 auto; }

/* specifications */
.spec-intro { display: grid; gap: 1.4rem; }
.spec-img { max-width: 540px; }
.spec { columns: 2 22rem; column-gap: 3rem; margin-top: 1.4rem; }
.spec section { break-inside: avoid; margin-bottom: 1.5rem; }
.spec h3 { font-size: 1.02rem; font-style: italic; margin-bottom: .35rem; color: var(--green-dark); }
.spec ul { margin: 0; padding-left: 1.15rem; color: #353b37; }
.spec li { margin-bottom: .2rem; }
.spec-end { margin: 2rem auto 0; max-width: 580px; }

/* gallery */
.gallery { columns: 4 220px; column-gap: .8rem; }
.gallery a { display: block; margin: 0 0 .8rem; border-radius: 10px; overflow: hidden; break-inside: avoid; background: var(--tint); }
.gallery img { width: 100%; height: auto; transition: transform .25s ease, filter .25s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.03); filter: brightness(1.06); }
.gallery a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.count { color: var(--muted); font-size: .95rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,10,9,.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(94vw, 1200px); max-height: 86vh; width: auto; height: auto; border-radius: 8px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.5rem; line-height: 1;
}
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: #cfd6d1; font-size: .9rem; }

/* contact */
.form { max-width: 620px; display: grid; gap: 1rem; margin-top: 1.2rem; }
.form label { font-weight: 600; font-size: .95rem; display: grid; gap: .3rem; }
.form input, .form textarea {
  font: inherit; padding: .7rem .8rem; border: 1px solid #b9c2bb; border-radius: 8px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 3px solid rgba(154,74,31,.3); border-color: var(--green); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { padding: .8rem 1rem; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #e6f3ea; color: #14532d; }
.form-msg.err { display: block; background: #fdecea; color: #7f1d1d; }
.req { color: #b42318; }

/* footer */
.site-footer { background: #222; color: #b8beba; padding: 2.6rem 0; text-align: center; margin-top: 3rem; font-size: .95rem; }
.site-footer a { color: #d6dcd8; }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .trio, .rebuild, .about-grid, .classics { grid-template-columns: 1fr; }
  .classics { max-width: 520px; margin-inline: auto; }
  .history { grid-template-columns: 1fr; }
  .history figure { max-width: 230px; }
  .pair { grid-template-columns: 1fr; gap: 1rem; }
  .pair.rev figure { order: 0; }
}
@media (max-width: 1240px) {
  .nav-toggle {
    display: inline-flex; background: rgba(255,255,255,.18); color: #fff; border: 0; border-radius: 8px;
    padding: .55rem .8rem; font: inherit; font-size: .85rem; cursor: pointer;
  }
  .nav { display: none; position: absolute; top: 100%; left: 1rem; right: 1rem; background: rgba(14,26,20,.97); padding: .6rem; border-radius: 12px; flex-direction: column; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 1rem; font-size: .85rem; }
  .site-header .wrap { position: relative; }
}

/* ---------- Banners ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero.has-img { background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero.baked { height: clamp(210px, calc(100vw * var(--inv, .3)), 480px); min-height: 0; }
.hero.baked::after { display: none; }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem 1.6rem; margin-top: 1.4rem; }
.video { margin: 0; }
.video-btn, .video-frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius);
  overflow: hidden; background: #111; cursor: pointer;
}
.video-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .25s ease, opacity .25s; }
.video-btn:hover img { transform: scale(1.03); opacity: .9; }
.video-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.video .play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
  background: rgba(20,20,20,.82); border-radius: 12px;
}
.video .play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.video-btn:hover .play { background: #c4302b; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-style: normal; font-size: .95rem; margin-top: .6rem; color: var(--ink); }
.video figcaption a { font-size: .85rem; }

/* ---------- Blog ---------- */
.author { display: flex; gap: 1.4rem; align-items: center; background: var(--tint); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1.6rem; }
.author .avatar { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; flex: none; }
.author h2 { font-size: 1.2rem; margin-bottom: .3rem; }
.author p { margin: 0; color: var(--muted); }
.year { margin: 2rem 0 .8rem; color: var(--green-dark); border-bottom: 1px solid var(--line); padding-bottom: .3rem; font-size: 1.3rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); color: var(--ink); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; background: var(--tint); }
.card-text { display: grid; gap: .3rem; padding: 1rem 1.1rem 1.2rem; }
.card-text time { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-text strong { font-family: var(--serif); font-size: 1.15rem; line-height: 1.25; }
.card-text span { font-size: .95rem; color: var(--muted); line-height: 1.5; }

.post { max-width: 860px; margin-inline: auto; }
.crumb { margin-bottom: .4rem; font-size: .95rem; }
.postdate { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.4rem; }
.post-body h3 { margin-top: 1.6rem; }
.post-body p { margin-bottom: 1.1em; }
.post-body figure.pic { margin: 1.4rem auto; text-align: center; }
.post-body figure.pic img { display: inline-block; max-width: 100%; width: auto; height: auto; }
.post-body figure.pic.float-right { float: right; margin: 0 0 1rem 1.4rem; max-width: 45%; }
.cols { display: flex; gap: 1.5rem; align-items: center; margin: 1.4rem 0; }
.col { flex: var(--w, 6) 1 0; min-width: 0; }
.col > :first-child { margin-top: 0; }
.col > :last-child { margin-bottom: 0; }
.cols figure.pic { margin: 0; }
.cols figure.pic img { width: 100%; }
.postnav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.pn { text-decoration: none; font-size: .9rem; color: var(--muted); max-width: 48%; }
.pn strong { color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.pn.next { margin-left: auto; text-align: right; }
@media (max-width: 700px) {
  .cols { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cols .col { flex: none; }
  .post-body figure.pic.float-right { float: none; max-width: 100%; margin: 1.4rem auto; }
  .author { flex-direction: column; text-align: center; }
  .videos { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gallery img { transition: none; } }

/* ---------- Idaman additions ---------- */
.hero .btn { margin-top: 1.2rem; background: #fff; color: var(--green-dark); }
.hero .btn:hover { background: #f7ece4; color: var(--green-dark); }
.hero h1 { max-width: 22ch; }
.hero.home h1 { max-width: 26ch; }
.pair.text-left p { text-align: left; color: var(--ink); }
.pair figure { width: 100%; max-width: 440px; }
.pair figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pair .txt p { margin: 0 0 1em; text-align: left; color: var(--ink); }
.pair .txt p:last-child { margin-bottom: 0; }
.mapbox { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--tint); }
.mapbox iframe { display: block; width: 100%; height: clamp(300px, 45vw, 420px); border: 0; }
.addr { margin: 1rem 0 .4rem; color: var(--muted); }
.contact-card { max-width: 640px; background: var(--tint); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin-block: 1.2rem; }
.contact-card dt { font-weight: 600; margin-top: .9rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: .1rem 0 0; font-size: 1.15rem; }
.contact-card .btn { margin: .8rem .5rem 0 0; font-size: 1rem; padding: .7rem 1.2rem; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; padding: 0; margin: 1.2rem 0 0; }
.facts li { background: var(--tint); border-radius: 999px; padding: .35rem 1rem; font-size: .95rem; }
@media (max-width: 860px) { .pair figure { max-width: 100%; } }
.hero.has-img::after { background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.12) 65%), linear-gradient(to right, rgba(0,0,0,.4), rgba(0,0,0,0) 65%); }
.hero.home { min-height: clamp(340px, 38vw, 400px); }
.hero .wrap { padding-top: 5.2rem; }
