/* ==========================================================================
   Motion Shot Maison — Photo Booth
   ========================================================================== */

:root {
  --bg: #efede0;
  --bg-soft: #f6f4ea;
  --ink: #201f1a;
  --ink-soft: #55534a;
  --line: #dcd8c6;
  --accent: #b3ac93;
  --accent-dark: #8c8567;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 20px 40px -24px rgba(32, 31, 26, 0.35);
  --container: 1140px;
  --nav-h: 100px;
  --ff-display: "Playfair Display", "Georgia", serif;
  --ff-body: "Poppins", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.section {
  padding: 48px 0 96px;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.section-head p {
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: #34321f;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn--block {
  width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(239, 237, 224, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* Desktop: logo on the left, menu centered in the header (equal side columns keep it truly centered) */
.navbar .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 68px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--ink);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

/* Holds only the hamburger, so it's hidden on desktop */
.nav-cta {
  display: none;
  align-items: center;
  gap: 20px;
}

.hamburger {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.is-open span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 16ch;
}

.hero .lede {
  max-width: 52ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.hero-frames {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.frame {
  width: 150px;
  height: 180px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 10px 10px 26px;
  transform: rotate(var(--r, 0deg));
}

.frame:nth-child(1) { --r: -6deg; }
.frame:nth-child(2) { --r: 3deg; margin-top: 18px; }
.frame:nth-child(3) { --r: -2deg; }
.frame:nth-child(4) { --r: 7deg; margin-top: 10px; }

.frame .frame-photo {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}

/* ---------- Contact section (home) ---------- */
.contact-section {
  background: var(--ink);
  color: var(--bg);
  padding: 90px 0 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(239, 237, 224, 0.15);
}

.contact-grid h2 {
  color: var(--bg);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  max-width: 12ch;
}

.contact-grid .lede {
  color: #d9d6c6;
  max-width: 40ch;
}

.contact-col h4 {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a9a692;
  margin-bottom: 18px;
}

.contact-col ul {
  display: grid;
  gap: 12px;
}

.contact-col a {
  color: #ece9d8;
  font-size: 0.96rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.contact-col a:hover {
  color: var(--white);
  padding-left: 4px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(239, 237, 224, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.social-row a:hover {
  background: var(--bg);
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Top/bottom only, so it keeps .container's side padding when both classes are used */
  padding-top: 24px;
  padding-bottom: 8px;
  font-size: 0.82rem;
  color: #a9a692;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  padding: 12px 22px;
  border-radius: 999px;
}

.footer-brand img {
  height: 36px;
  width: auto;
}

/* ---------- Inner page header ---------- */
.page-header {
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.page-header .eyebrow {
  margin-bottom: 10px;
}

.page-header h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
}

/* ---------- 404 page ---------- */
/* Short page: fill the screen so the footer sits at the bottom */
.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-404 main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-404 .notfound {
  flex: 1;
  display: flex;
  align-items: center;
}

.notfound {
  padding: 96px 0;
  border-bottom: none;
}

.notfound-text {
  max-width: 46ch;
  margin: 0 auto 32px;
  color: var(--ink-soft);
}

.notfound-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
  background: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  background: #e7f2e6;
  color: #35603a;
  font-size: 0.88rem;
}

.form-success.is-visible {
  display: block;
}

.form-error {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f6e3e1;
  color: #8a2f25;
  font-size: 0.88rem;
}

.form-error.is-visible {
  display: block;
}

.form-error a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.contact-info-list {
  display: grid;
  gap: 22px;
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-info-item h4 {
  margin: 0 0 4px;
  font-family: var(--ff-body);
  font-size: 0.95rem;
}

.contact-info-item p {
  margin: 0;
  font-size: 0.9rem;
}

.map-embed {
  margin-top: 8px;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Mobile nav overlay ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.mobile-nav.is-open {
  transform: translateY(0);
}

.mobile-nav a {
  font-family: var(--ff-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.mobile-nav .social-row a {
  border-color: var(--line);
  color: var(--ink);
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Responsive ---------- */
/* Tablets in landscape (e.g. iPad): bigger, easier-to-tap header links */
@media (min-width: 961px) and (hover: none) and (pointer: coarse) {
  .nav-links {
    gap: 40px;
  }

  .nav-links a {
    font-size: 1.15rem;
    padding: 8px 0;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  /* Phones/tablets: logo on the left, menu icon on the right */
  .navbar .container {
    display: flex;
    justify-content: space-between;
  }

  .nav-cta {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 72px;
  }

  .section {
    padding: 32px 0 64px;
  }

  .hero {
    padding-top: 32px;
  }

  /* Contact: less space above, heading as "...beautiful" / "together" */
  .contact-section {
    padding-top: 40px;
  }

  .contact-grid {
    gap: 28px;
    padding-bottom: 36px;
  }

  .contact-grid h2 {
    max-width: none;
    font-size: min(calc((100vw - 48px) / 15.5), 1.9rem);
    margin-bottom: 0.4em;
  }

  .contact-grid h2 .line {
    display: block;
    white-space: nowrap;
  }

  .brand img {
    height: 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* iPhones give date fields their own narrower width; make it match the other fields.
     Phones also show no calendar icon, so one is drawn on the right like on desktop. */
  .field input[type="date"] {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23201f1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2'/%3E%3Cpath d='M16 2.5v4M8 2.5v4M3 10h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px 20px;
  }

  /* Hide the browser's own icon where one exists (e.g. a narrow desktop window) so it never shows twice */
  .field input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
  }

  /* Booking page: wider fields, and the info below the form centered like the heading and footer */
  .contact-form {
    padding: 26px 20px;
  }

  .contact-info-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
  }

  .contact-info-item .icon {
    width: auto;
    height: auto;
  }

  .contact-layout .social-row {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-frames .frame {
    width: 110px;
    height: 130px;
  }
}

@media (max-width: 380px) {
  .brand img {
    height: 40px;
  }
}
