/* Motion Estate Media — styles */
:root {
  --navy: #17325c;
  --blue: #2c4789;
  --orange: #ee5d24;        /* brand accent (focus rings, highlights) */
  --orange-btn: #c94a14;    /* button fill: passes WCAG AA with white text */
  --orange-btn-hover: #a83c0e;
  --green: #18714e;
  --ink: #192b3b;
  --cream: #f5f4ef;
  --line: #dcdedb;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.7 Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .h3 { line-height: 1.12; letter-spacing: -.04em; }
h1 { font-size: clamp(42px, 5.5vw, 80px); font-weight: 500; margin-bottom: 28px; }
h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 500; margin-bottom: 25px; }
h3, .h3 { font-size: 24px; font-weight: 500; margin: 24px 0 14px; }
p { margin-bottom: 22px; }
em { font-family: Georgia, serif; font-weight: 400; }
[id] { scroll-margin-top: 25px; }
[hidden] { display: none !important; }

.skip { position: absolute; top: -100px; left: 10px; background: white; padding: 10px; z-index: 100; }
.skip:focus { top: 10px; }

/* ---------- Header / nav ---------- */
header { background: #fff; position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.nav-wrap { max-width: 1440px; margin: auto; padding: 14px 4%; display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.brand img { width: 112px; height: 82px; object-fit: contain; }
#main-nav { display: flex; gap: 20px; align-items: center; margin-left: auto; }
#main-nav a { font-size: 13px; padding: 12px 0; white-space: nowrap; }
#main-nav a[aria-current] { color: var(--green); border-bottom: 2px solid var(--green); }
#main-nav .nav-book { display: none; }
.menu-toggle { display: none; }

/* ---------- Buttons & links ---------- */
.button { display: inline-flex; gap: 25px; align-items: center; justify-content: center; background: var(--orange-btn); color: #fff; padding: 14px 23px; border: 1px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; line-height: 1.4; transition: background-color .2s; }
.button:hover { background: var(--orange-btn-hover); }
.button.secondary { color: var(--navy); background: transparent; border-color: #9ba8b3; }
.button.secondary:hover { background: #e8ede9; }
.text-link { display: inline-block; border-bottom: 1px solid var(--green); padding-bottom: 5px; color: var(--green); font-size: 14px; font-weight: 600; }
.text-link:hover { border-bottom-width: 2px; padding-bottom: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: 1260px; margin: auto; padding-left: 5%; padding-right: 5%; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; }
.spacious { padding-top: 95px; padding-bottom: 95px; }
.soft { background: var(--cream); }
.center { text-align: center; }
.lead { font-size: 21px; line-height: 1.6; max-width: 780px; }
.small { font-size: 13px; color: #5e6971; }
.eyebrow { font-size: 11px; letter-spacing: .17em; font-weight: 700; text-transform: uppercase; color: var(--green); margin-bottom: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 30px; }
.actions { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Home: hero ---------- */
.hero { position: relative; min-height: 650px; height: 77vh; max-height: 850px; color: white; display: flex; align-items: center; overflow: hidden; }
.hero-photo, .hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { background: linear-gradient(90deg, rgba(8,23,39,.87), rgba(8,23,39,.35) 70%, rgba(8,23,39,.16)); }
.hero-copy { position: relative; width: 100%; padding-top: 40px; padding-bottom: 70px; }
.hero h1 { font-size: clamp(44px, 5.8vw, 82px); letter-spacing: -.045em; max-width: 1000px; }
.hero p:not(.eyebrow) { font-size: 19px; line-height: 1.8; }
.hero .eyebrow { color: #fff; }
.hero .secondary { color: white; border-color: #ffffff88; }
.hero .secondary:hover { background: #ffffff22; }
.hero-caption { position: absolute; right: 4%; bottom: 25px; font-size: 12px; opacity: .85; }
.motion-toggle { position: absolute; left: 5%; bottom: 22px; border: 1px solid #ffffff88; background: #102236b3; color: white; padding: 8px 14px; font-size: 12px; cursor: pointer; z-index: 2; }
.trust { display: flex; justify-content: center; gap: 12%; padding: 23px; background: var(--navy); color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards img { width: 100%; height: 260px; object-fit: cover; }
.cards p { font-size: 15px; }
.image-stack img { height: 430px; width: 100%; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); max-width: none; padding: 65px max(5%, calc((100vw - 1134px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: white; }
.cta .eyebrow { color: #a8cdbb; }
.cta h2 { margin: 0; }

/* ---------- Inner pages ---------- */
.page-intro { padding-top: 85px; padding-bottom: 55px; }
.page-intro h1 { max-width: 900px; }
.story { padding-bottom: 90px; }
.family { margin: 0; background: var(--cream); padding: 20px; }
.family img { max-height: 570px; margin: auto; object-fit: contain; }
.family figcaption { text-align: center; font-family: Georgia, serif; font-style: italic; margin-top: 12px; }
.role { color: var(--green); font-size: 11px; letter-spacing: .12em; }

/* Services */
.service-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 7%; align-items: center; padding-top: 35px; padding-bottom: 60px; }
.service-row img { height: 350px; width: 100%; object-fit: cover; }
.service-options { padding-left: 19px; margin: 0 0 26px; font-size: 15px; }
.service-options li { padding: 4px 0; }
.service-options li::marker { color: var(--green); }
.service-jumps { display: flex; flex-wrap: wrap; margin: 30px 0 0; gap: 12px 24px; }
.service-jumps a { font-size: 13px; padding: 0 0 4px; border-bottom: 1px solid var(--line); }
.service-jumps a:hover { border-color: var(--green); color: var(--green); }
.service-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; }
.service-extras article { border-top: 1px solid var(--line); padding-top: 22px; }
.service-pricing-note { margin-top: 28px; margin-bottom: 0; }
.upcoming-services { margin-top: 35px; }
.coming-label { font-size: 10px; font-weight: 700; letter-spacing: .13em; color: var(--green); background: #e5eee6; padding: 7px 10px; display: inline-block; }
.event-service-image { background: var(--cream); }
.event-service-image img { object-fit: contain; }

/* Portfolio */
.video-section { padding-bottom: 75px; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 28px; margin-top: 35px; }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #102236; object-fit: contain; }
.video-card p { font-size: 15px; }
.video-card.portrait { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(240px, 360px) 1fr; column-gap: 45px; align-items: center; background: var(--cream); padding: 30px; }
.video-card.portrait video { aspect-ratio: 9 / 16; grid-row: 1 / 3; max-height: 560px; }
.video-card.portrait h3 { align-self: end; font-size: 36px; }
.video-card.portrait p { align-self: start; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 35px; }
.filters button { background: white; border: 1px solid var(--line); padding: 9px 22px; cursor: pointer; border-radius: 30px; font-size: 14px; color: var(--ink); }
.filters button[aria-pressed=true] { background: var(--navy); color: white; border-color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 22px; }
.gallery figure { margin: 0; }
.gallery img { height: 260px; width: 100%; object-fit: cover; transition: transform .3s; }
.photo-button { padding: 0; border: 0; background: none; width: 100%; cursor: zoom-in; overflow: hidden; display: block; }
.photo-button:hover img { transform: scale(1.035); }
figcaption { font-size: 13px; margin-top: 8px; }
dialog { border: 0; padding: 25px; background: #102236; color: white; max-width: 94vw; max-height: 94vh; }
dialog::backdrop { background: #000c; }
dialog img { max-height: 76vh; margin: auto; object-fit: contain; }
dialog p { margin: 10px 0 0; }
dialog .close { background: white; color: #102236; border: 0; position: absolute; right: 8px; top: 8px; font-size: 28px; width: 40px; height: 40px; cursor: pointer; line-height: 1; }

/* Client hub */
.hub { display: grid; grid-template-columns: 1fr 2fr; gap: 8%; padding-bottom: 90px; }
.hub-side { background: var(--cream); padding: 28px; align-self: start; }
.hub-side .h3 { margin-top: 0; }
.hub-side .button { margin-bottom: 24px; }
.hub-side .small { margin-top: 30px; }
.moti-welcome { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 25px; }
.moti-welcome img { width: 190px; height: 225px; object-fit: contain; margin: 0 auto 24px; }
.moti-welcome .eyebrow { font-size: 9px; }
.moti-welcome .h3 { line-height: 1.25; }
.hub-moti-tip { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.hub-moti-tip p { font-size: 14px; }
.hub-moti-tip .eyebrow { font-size: 10px; margin-bottom: 12px; }
details { border-bottom: 1px solid var(--line); padding: 24px 0; }
summary { cursor: pointer; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 10px; font-size: 26px; color: var(--green); }
details[open] summary::after { content: '−'; }
summary .eyebrow { display: block; margin-bottom: 10px; }
summary strong { font-size: 22px; font-weight: 500; line-height: 1.3; display: block; }
details p { margin-top: 20px; margin-bottom: 5px; }

/* Contact & forms */
.contact-layout { align-items: start; padding-bottom: 95px; }
.contact-links { display: grid; gap: 12px; margin: 30px 0; }
.contact-links a { color: var(--green); overflow-wrap: anywhere; }
form { background: var(--cream); padding: 32px; }
form h3 { margin-top: 0; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 17px; }
input, select, textarea { display: block; width: 100%; background: white; border: 1px solid #c8cfca; border-radius: 0; padding: 11px; margin-top: 6px; color: var(--ink); }
textarea { resize: vertical; }

/* Motion Notes */
.notes-intro { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; padding-top: 65px; padding-bottom: 65px; }
.notes-intro h1 { font-size: clamp(40px, 4.5vw, 65px); }
.notes-art { position: relative; text-align: center; background: #eff3ed; border-radius: 50% 50% 8px 8px; padding: 25px 25px 0; }
.notes-art img { height: 360px; width: 100%; object-fit: contain; }
.notes-art p { font: italic 18px Georgia, serif; color: var(--green); padding-bottom: 20px; }
.notes-stamp { position: absolute; right: -8px; top: 15px; background: var(--navy); color: white; border-radius: 50%; height: 94px; width: 94px; display: grid; place-content: center; font-size: 9px; letter-spacing: .08em; transform: rotate(10deg); }
.notes-strip { display: flex; justify-content: center; gap: 10%; padding: 23px; background: var(--navy); color: white; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.notes-edition { padding-top: 75px; padding-bottom: 65px; }
.notes-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 45px; align-items: center; }
.notes-feature img { height: 340px; width: 100%; object-fit: cover; }
.notes-article { display: grid; grid-template-columns: minmax(0, 2.3fr) 1fr; gap: 65px; padding-bottom: 80px; }
.article-copy > p { max-width: 720px; }
.notes-day { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.notes-day > span { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--green); padding-top: 8px; }
.notes-day h3 { margin: 0 0 12px; }
.notes-day p { margin-bottom: 0; }
.notes-aside { background: var(--cream); padding: 25px; align-self: start; }
.notes-aside h3 { margin-top: 0; }
.moti-minute { display: grid; grid-template-columns: 115px 1fr; gap: 22px; align-items: center; background: #edf3ed; padding: 24px; margin: 20px 0 45px; }
.moti-minute img { width: 115px; }
.moti-minute h3 { margin-top: 0; }
.moti-minute p:last-child { margin: 0; }
.moti-minute .eyebrow { margin-bottom: 12px; }
.notes-signoff { color: var(--green); padding: 10px 0; }
.notes-signup { background: var(--cream); padding: 70px 0; }
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.signup-preview { background: white; }
.signup-preview .coming-label { margin-bottom: 23px; }
.signup-preview .small { margin: 20px 0 0; }
.signup-preview button:disabled { background: #6b767b; cursor: not-allowed; }

/* ---------- Footer ---------- */
footer { background: var(--cream); padding-top: 55px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 45px; }
.footer-brand { font-size: 24px; line-height: 1.12; letter-spacing: .2em; font-weight: 600; margin: 0 0 20px; }
.footer-brand span { font-size: 10px; display: block; color: var(--green); margin-top: 8px; }
.footer-grid a { display: block; margin-bottom: 12px; font-size: 14px; }
.footer-grid a:hover { color: var(--green); }
.footer-grid p { font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line); }

/* ---------- Tablet & phone: hamburger menu (≤950px) ---------- */
@media (max-width: 950px) {
  .nav-wrap { padding: 8px 5%; flex-wrap: wrap; }
  .brand img { height: 68px; width: 90px; }
  .header-book { display: none; }
  .menu-toggle { display: block; background: none; border: 1px solid var(--line); padding: 9px 15px; color: var(--navy); cursor: pointer; }
  #main-nav { display: none; flex-basis: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 15px; }
  #main-nav.open { display: flex; }
  #main-nav a { font-size: 15px; border-bottom: 1px solid var(--line); }
  #main-nav a[aria-current] { border-bottom: 1px solid var(--line); font-weight: 600; }
  #main-nav .nav-book { display: block; color: var(--orange-btn); font-weight: 600; border-bottom: 0; }
  .cards img { height: 200px; }
  .notes-article { gap: 30px; }
  .notes-intro { gap: 25px; }
  .notes-art img { height: 300px; }
}

/* ---------- Phone (≤700px) ---------- */
@media (max-width: 700px) {
  .hero { min-height: 570px; height: 78vh; max-height: 750px; }
  .hero h1 { font-size: 46px; }
  .hero p:not(.eyebrow) { font-size: 17px; }
  .hero .eyebrow { max-width: 280px; line-height: 1.8; }
  .hero-photo { object-position: 60% center; }
  .hero-caption { display: none; }
  .motion-toggle { bottom: 15px; }
  .trust { gap: 6%; font-size: 9px; letter-spacing: .1em; }
  .spacious { padding-top: 60px; padding-bottom: 60px; }
  .split, .cards, .service-row, .hub, .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .section-heading { align-items: start; flex-direction: column; gap: 0; }
  .cards img { height: 270px; }
  .cards { gap: 35px; }
  .image-stack img { height: 300px; }
  .cta { padding: 50px 5%; align-items: start; flex-direction: column; }
  .page-intro { padding-top: 55px; padding-bottom: 30px; }
  .page-intro h1 { font-size: 44px; }
  .lead { font-size: 18px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .gallery img { height: 190px; }
  .service-row img { height: 280px; }
  .service-row .event-service-image img { height: 350px; }
  .service-extras { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .hub-side { order: 2; }
  .family img { max-height: 500px; }
  .contact-layout { padding-bottom: 60px; }
  form { padding: 25px; }
  .story { padding-bottom: 55px; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card.portrait { grid-template-columns: 1fr; padding: 20px; }
  .video-card.portrait video { grid-row: auto; max-height: 540px; }
  .video-card.portrait h3 { font-size: 26px; }
  .notes-intro, .notes-feature, .notes-article, .signup-grid { grid-template-columns: 1fr; gap: 30px; }
  .notes-intro { padding-top: 45px; padding-bottom: 45px; }
  .notes-art { max-width: 360px; width: 100%; margin: auto; }
  .notes-intro h1 { font-size: 42px; }
  .notes-strip { gap: 5%; font-size: 9px; padding: 20px 12px; text-align: center; }
  .notes-edition { padding-top: 45px; padding-bottom: 45px; }
  .notes-feature img { height: 260px; }
  .notes-day { grid-template-columns: 1fr; gap: 10px; }
  .moti-minute { grid-template-columns: 75px 1fr; gap: 15px; padding: 18px; }
  .moti-minute img { width: 75px; }
  .notes-signup { padding: 45px 0; }
  .notes-article { padding-bottom: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
