/* Imagicomm Studios — light minimal theme */
:root {
  --bg: #faf8f5;
  --panel: #ffffff;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --line: #e6e2dc;
  --accent: #1c1c1c;
  --accent-hover: #3a3a3a;
  --accent-ink: #ffffff; /* text color on accent-colored buttons */
  --radius: 10px;
  --maxw: 1100px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; }
a { color: var(--ink); }
h1, h2, h3 { line-height: 1.2; letter-spacing: .01em; }
h1 { font-size: 2.2rem; font-weight: 700; }
h2 { font-size: 1.6rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; }
.brand img { height: 56px; display: block; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 500; color: var(--ink); }
.site-nav a:hover { color: var(--muted); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink) !important; padding: 12px 26px; border-radius: var(--radius); text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--accent-hover); }
.btn-small { padding: 8px 18px; font-size: .95rem; }
.btn-outline { background: transparent; color: var(--ink) !important; border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg) !important; }

/* Hero */
.hero { text-align: center; padding: 80px 20px 70px; }
.hero img.hero-logo { max-height: 220px; margin-bottom: 10px; }
.hero h1 { max-width: 760px; margin: 0 auto 14px; }
.hero p { max-width: 640px; margin: 0 auto 28px; color: var(--muted); font-size: 1.12rem; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Hero entrance animation: logo drops in and settles (same feel as the 404
   clapperboard), then the headline, tagline, and buttons fade up in sequence. */
@keyframes hero-logo-in {
  from { opacity: 0; transform: translateY(-36px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero img.hero-logo { animation: hero-logo-in .7s cubic-bezier(.22, 1.2, .36, 1) both; }
.hero h1       { animation: hero-fade-up .55s ease-out .35s both; }
.hero p        { animation: hero-fade-up .55s ease-out .5s both; }
.hero .cta-row { animation: hero-fade-up .55s ease-out .65s both; }
@media (prefers-reduced-motion: reduce) {
  .hero img.hero-logo, .hero h1, .hero p, .hero .cta-row { animation: none; }
}

/* Availability calendar (studio pages) */
.avail-cal { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; max-width: 420px; }
.avail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.avail-head button { background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; cursor: pointer; font-size: 1rem; color: var(--ink); }
.avail-head button:disabled { opacity: .3; cursor: default; }
.avail-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.avail-dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.avail-day { text-align: center; padding: 8px 0; border-radius: 6px; font-size: .9rem; }
.avail-free { background: color-mix(in srgb, var(--accent) 12%, transparent); cursor: pointer; font-weight: 600; }
.avail-free:hover, .avail-free:focus { background: var(--accent); color: var(--accent-ink); outline: none; }
.avail-partial { background: repeating-linear-gradient(-45deg, transparent 0 4px, color-mix(in srgb, var(--accent) 25%, transparent) 4px 8px); cursor: pointer; font-weight: 600; }
.avail-partial:hover, .avail-partial:focus { background: var(--accent); color: var(--accent-ink); outline: none; }
.avail-full, .avail-past { color: var(--muted); text-decoration: line-through; opacity: .45; }
.avail-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin: 12px 0 6px; }
.avail-legend .dot { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.dot-free { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.dot-partial { background: repeating-linear-gradient(-45deg, transparent 0 3px, var(--accent) 3px 6px); }
.dot-full { background: var(--line); }

/* Description of services (studios page) */
/* Studio photo gallery */
.gallery-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.gallery-strip img { width: 86px; height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: .85; transition: opacity .15s, border-color .15s; }
.gallery-strip img:hover { opacity: 1; }
.gallery-strip img.active { border-color: var(--accent); opacity: 1; }

/* Add-on service checkboxes (booking form) */
.addon-list { display: grid; gap: 6px; }
.addon-list .addon-item { display: flex; align-items: baseline; gap: 9px; font-weight: 400; font-size: .95rem; margin: 0; cursor: pointer; }
.addon-list input[type="checkbox"] { width: auto; accent-color: var(--accent); }
.addon-list .addon-price { margin-left: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* Booking review / estimate */
.estimate-table tr:last-child th { border-bottom: 0; border-top: 2px solid var(--ink); }

/* Amenities checklist (studio pages) */
.amenity-list { list-style: none; margin: 0 0 26px; padding: 0; }
.amenity-list li { position: relative; padding: 5px 0 5px 28px; }
.amenity-list li::before {
  content: "\2713";
  position: absolute; left: 0; top: 7px;
  width: 19px; height: 19px; line-height: 19px; text-align: center;
  font-size: .75rem; font-weight: 700; border-radius: 50%;
  background: rgba(0,0,0,.08);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.svc-desc { margin-top: 56px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.svc-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; line-height: 1.55; transition: border-color .15s, box-shadow .15s; }
.svc-item:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.svc-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(0,0,0,.05); background: color-mix(in srgb, var(--accent) 12%, transparent); font-size: 1.3rem; margin-bottom: 12px; }
.svc-item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.svc-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.svc-item-cta { background: var(--panel); background: color-mix(in srgb, var(--accent) 6%, var(--panel)); border-style: dashed; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head p { color: var(--muted); max-width: 600px; margin: 8px auto 0; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .card-img { display: block; aspect-ratio: 16/9; background: var(--line) url('/assets/img/logo.png') center/40% no-repeat; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0 0 16px; flex: 1; }
.card .meta { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }

/* Flash */
.flash { max-width: var(--maxw); margin: 16px auto 0; padding: 12px 18px; border-radius: var(--radius); }
.flash-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #1b5e20; }
.flash-error { background: #fdecea; border: 1px solid #f5b7b1; color: #922b21; }

/* Forms */
form.stack { display: grid; gap: 14px; max-width: 620px; }
form.stack .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 4px; }
input, textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: var(--panel); color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); }
.honeypot { position: absolute; left: -9999px; }

/* Studio detail */
.studio-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; padding: 48px 0; align-items: start; }
.pano-viewer { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.booked-list { font-size: .92rem; color: var(--muted); }
.booked-list li { margin-bottom: 4px; }

/* Blog */
article.post { max-width: 760px; margin: 0 auto; padding: 48px 20px; }
article.post h1 { margin-bottom: 6px; }
article.post .post-meta { color: var(--muted); margin-bottom: 28px; font-size: .95rem; }
article.post .post-body h2 { margin-top: 36px; }
article.post .post-body p { margin: 0 0 18px; }

/* Map */
.map-embed { width: 100%; height: 420px; border: 0; border-radius: var(--radius); }

/* Footer */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); margin-top: 60px; padding: 44px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 64px; }
.site-footer h4 { margin: 0 0 10px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer p { color: var(--muted); }
.copyright { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; font-size: .88rem; color: var(--muted); text-align: center; }

/* Tables (availability etc.) */
table.simple { width: 100%; border-collapse: collapse; }
table.simple th, table.simple td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

@media (max-width: 820px) {
  .site-nav { display: none; position: absolute; right: 20px; top: 66px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; flex-direction: column; gap: 14px; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .studio-hero, .footer-grid { grid-template-columns: 1fr; }
  form.stack .row2 { grid-template-columns: 1fr; }
  .hero { padding: 48px 20px 40px; }
  .hero img.hero-logo { max-height: 150px; }
}
