/* Rediscover Your World — minimal portfolio theme */
:root {
  --ink: #1c1c1e;
  --muted: #6b6b70;
  --line: #e8e8ea;
  --bg: #ffffff;
  --wash: #f7f7f8;
  --accent: #0a5c8a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; gap: .5rem 1rem; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand-name { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; }
.brand-tag { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: .95rem; padding: .2rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { border-bottom-color: var(--accent); font-weight: 600; }

/* Type */
h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }
main.container { padding-top: 1rem; padding-bottom: 3rem; }
section.block { margin: 3rem 0; }
.center { text-align: center; }

/* Hero */
.hero { position: relative; margin: 1.5rem 0 0; border-radius: 10px; overflow: hidden; }
.hero img { width: 100%; max-height: 62vh; object-fit: cover; }
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1.5rem 1.25rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.hero-caption h1 { margin: 0 0 .25rem; font-size: 2.2rem; }
.hero-caption p { margin: 0; opacity: .92; }

/* Buttons */
.btn {
  display: inline-block; padding: .7rem 1.4rem; border-radius: 6px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
}
.btn:hover { background: #084a70; color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }

/* Feature rows (home) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin: 3.5rem 0; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature img { border-radius: 8px; }
.feature-text h2 { margin-top: 0; }
@media (max-width: 720px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-text { order: 0; }
}

/* Galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin: 2rem 0; }
.gallery figure, .pano figure { margin: 0; }
.gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: 6px; cursor: zoom-in; transition: transform .15s ease; }
.gallery img:hover { transform: scale(1.015); }
figcaption { font-size: .85rem; color: var(--muted); padding: .45rem .1rem 0; }

/* Panoramas — full width */
.pano figure { margin: 0 0 2.5rem; }
.pano img { width: 100%; border-radius: 6px; cursor: zoom-in; }

/* Videos */
.video-section { margin: 2.5rem 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.75rem; }
.video-card h3 { margin: .6rem 0 .3rem; font-size: 1.05rem; }
.video-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: #000; }
.embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.9); align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 4px; }

/* Contact form */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 1.5rem; }
@media (max-width: 720px) { .contact-wrap { grid-template-columns: 1fr; } }
form.contact label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
form.contact input, form.contact textarea {
  width: 100%; padding: .7rem .8rem; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 6px; font-family: inherit;
}
form.contact textarea { min-height: 160px; resize: vertical; }
form.contact button { margin-top: 1.25rem; cursor: pointer; border: 0; font-size: 1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--wash); padding: 2rem 0; margin-top: 2rem; color: var(--muted); font-size: .92rem; }
.site-footer p { margin: .3rem 0; }
.copyright { font-size: .82rem; }

/* Client logo grid — rearranges responsively */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: center;
  margin: 1.5rem auto 0;
  max-width: 1000px;
}
.logo-cell { display: flex; align-items: center; justify-content: center; min-height: 70px; }
.logo-cell img { max-width: 100%; max-height: 90px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 900px) {
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* Badge row */
.badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.badge {
  display: inline-block; padding: .35rem .8rem; border-radius: 999px;
  background: var(--wash); border: 1px solid var(--line); font-size: .85rem; font-weight: 600;
}
