/* A Million Smiles — rebuilt to match the original theme (Gotham Rounded look via Nunito) */
:root {
  --red: #ef463e;
  --teal: #00b2cd;
  --yellow: #fdb913;
  --purple: #7c439a;
  --magenta: #b81e70;
  --grey: #666;
  --panel: #ddd;
  --accent: var(--red);
  --font: "Gotham Rounded", "gotham_rounded", "Nunito", "Varela Round", system-ui, sans-serif;
}
body.theme-videos { --accent: var(--teal); }
body.theme-photographers { --accent: var(--yellow); }
body.theme-about { --accent: var(--magenta); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-weight: 300; font-size: 16px; line-height: 1.5;
  color: var(--accent); background: #fefefe;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header (sticky) ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  display: flex; align-items: center; gap: 2rem;
  padding: 12px 45px 10px; min-height: 114px;
}
.logo { width: 64px; flex: 0 0 64px; }
.logo svg, .logo img { width: 64px; height: 64px; }
.logo svg path { fill: var(--accent); }
.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.6rem; }
.nav-main a { font-size: 1.15rem; font-weight: 400; text-transform: lowercase; }
.nav-main a[aria-current="page"] { font-weight: 700; }
.nav-actions { margin-top: .55rem; }
.nav-actions a { font-weight: 700; font-size: 1.15rem; display: inline-flex; align-items: center; gap: .45rem; text-transform: lowercase; }
.nav a:hover { opacity: .8; }
.icon-circle { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--accent); display: inline-grid; place-items: center; flex: none; }
.icon-circle svg { width: .85rem; height: .85rem; fill: #fff; }
.social { display: flex; gap: .55rem; align-self: flex-end; margin-bottom: 4px; }
.social a { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.social svg { width: .9rem; height: .9rem; fill: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 520px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 32px 45px 22px; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides div { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease; }
.hero-slides div.on { opacity: 1; }
.hero > *:not(.hero-slides) { position: relative; z-index: 1; }
.hero h1 { font-size: 80px; line-height: 1; font-weight: 400; margin: 0 0 8px; max-width: 14ch; color: var(--accent); }
.hero .sub { font-size: 1.6rem; font-weight: 300; margin: .5rem 0 0 .2rem; max-width: 28ch; }
.hero-buttons { display: flex; margin-top: 2rem; }
.big-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 206px; height: 108px; padding: 0 1.4rem; color: #fff; font-weight: 700; font-size: 1.15rem;
  background: var(--red); border: 0; cursor: pointer; font-family: inherit; transition: filter .2s;
}
.big-btn.grey { background: var(--grey); }
.big-btn:hover { filter: brightness(1.08); }
.big-btn .icon-circle { background: #fff; width: 1.55rem; height: 1.55rem; }
.big-btn .icon-circle svg { fill: var(--red); }
.big-btn.grey .icon-circle svg { fill: var(--grey); }
.small-btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--accent); color: #fff; font-weight: 700; padding: .45rem .9rem; border-radius: 4px; }
.small-btn .icon-circle { background: #fff; width: 1.1rem; height: 1.1rem; }
.small-btn .icon-circle svg { fill: var(--accent); width: .7rem; height: .7rem; }

/* ---------- Sections ---------- */
main { padding: 0 11px; }
.divide { border-top: 4px solid var(--accent); font-size: 32px; font-weight: 700; line-height: 1.4; margin: 28px 4px 8px; padding-top: 2px; }
.lead { margin: 0 4px 1rem; max-width: 70rem; font-size: 1.05rem; }
.content { max-width: 60rem; margin: 0 4px 3rem; font-size: 1.05rem; }
.content h2, .content h3 { font-weight: 700; margin: 2rem 0 .6rem; }
.content a { text-decoration: underline; }

/* ---------- Photo grid (hover layer + expanding preview) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 4px; }
@media (min-width: 1440px) { .photo-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 1023px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #eee; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .play { position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; background: rgba(80,80,80,.7); display: grid; place-items: center; }
.thumb .play svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.details-layer {
  position: absolute; left: 0; width: 100%; height: 100%; top: 100%;
  background: var(--red); color: #fff; padding: .5rem .55rem; overflow: hidden;
  transition: top .3s cubic-bezier(.45,.05,.55,.95);
}
.thumb:hover .details-layer, .thumb:focus-within .details-layer, .thumb.touch-open .details-layer { top: 0; }
.details-name { font-weight: 700; margin: 0; }
.details-description { font-weight: 300; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.details-link { position: absolute; left: .55rem; bottom: .5rem; margin: 0; font-weight: 700; display: flex; align-items: center; gap: .35rem; }
.details-link .icon-circle { background: #fff; width: 1.25rem; height: 1.25rem; }
.details-link .icon-circle svg { fill: var(--layer, var(--red)); }
.thumb a.cover { position: absolute; inset: 0; z-index: 2; }
.thumb.og-expanded::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -15px;
  border: 15px solid transparent; border-bottom-color: var(--panel); z-index: 3;
}

.og-expander {
  grid-column: 1 / -1; background: var(--panel); position: relative; overflow: hidden;
  height: 0; transition: height .35s ease; margin-top: 0;
}
.og-expander-inner { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 2rem; padding: 50px 30px; height: 100%; }
.og-details h3 { color: var(--red); font-size: 1.9rem; font-weight: 700; margin: 0 0 .3rem; }
.og-details p { color: #333; font-weight: 300; }
.og-details .meta { color: #666; font-size: .9rem; margin-bottom: 1rem; }
.share { display: block; width: 100%; max-width: 330px; text-align: center; color: #fff; font-weight: 700; padding: .45rem; margin: .5rem 0; border-radius: 3px; font-size: .95rem; }
.share.fb { background: #3b5998; } .share.more { background: var(--purple); } .share.copy { background: #666; }
button.share { border: 0; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.share.ig { background: linear-gradient(45deg,#f09433,#dc2743 50%,#bc1888); } .share.wa { background: #25d366; }
.og-fullimg { display: flex; align-items: center; justify-content: center; min-height: 0; }
.og-fullimg img { max-height: 100%; max-width: 100%; object-fit: contain; }
.og-fullimg iframe { width: 100%; height: 100%; border: 0; aspect-ratio: 16/9; }
.og-close { position: absolute; width: 30px; height: 30px; top: 12px; right: 20px; cursor: pointer; background: none; border: 0; }
.og-close::before, .og-close::after { content: ""; position: absolute; left: 0; width: 100%; top: 50%; height: 1px; background: #888; transform: rotate(45deg); }
.og-close::after { transform: rotate(-45deg); }
.og-close:hover::before, .og-close:hover::after { background: #333; }
.see-more { display: block; margin: 1.6rem auto 2.4rem; background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.see-more[hidden] { display: none; }

/* ---------- Forms ---------- */
.form { max-width: 44rem; margin: 0 4px 3rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; }
.form legend { font-size: 1.6rem; font-weight: 700; margin-bottom: .6rem; }
.form label { display: block; font-weight: 400; margin: .8rem 0 .3rem; color: #444; }
.form label .req { color: var(--red); }
.form input[type=text], .form input[type=email], .form input[type=number], .form input[type=tel], .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 300; color: #333; padding: .65rem .75rem; border: 1px solid #cacaca; border-radius: 0; background: #fff;
}
.form textarea { min-height: 7rem; resize: vertical; }
.form .hint { font-size: .85rem; color: #888; margin-top: .25rem; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.dropzone { border: 2px dashed var(--accent); padding: 1.6rem; text-align: center; cursor: pointer; color: var(--accent); background: #fff; }
.dropzone.drag { background: #fff4f3; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: .8rem; }
.previews figure { margin: 0; position: relative; aspect-ratio: 1; background: #eee; }
.previews img { width: 100%; height: 100%; object-fit: cover; }
.previews button { position: absolute; top: 4px; right: 4px; border: 0; border-radius: 50%; width: 24px; height: 24px; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.form .submit { margin-top: .6rem; height: 64px; min-width: 180px; }
.form-status { margin-top: 1rem; font-weight: 700; }
.form-status.err { color: #b00020; }
.check { display: flex; gap: .5rem; align-items: flex-start; color: #444; font-weight: 300; margin-top: 1rem; }
.check input { margin-top: .3rem; }
.hp { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--red); color: #fff; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; padding: 9px 45px; font-size: .9rem; flex-wrap: wrap; gap: .5rem; }
.footer ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.footer a { color: #fff; text-transform: lowercase; display: inline-flex; gap: .35rem; align-items: center; }
.footer .icon-circle { background: #fff; width: 1.1rem; height: 1.1rem; }
.footer .icon-circle svg { fill: var(--red); width: .7rem; height: .7rem; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .header { padding: 10px 16px; min-height: 0; gap: 1rem; flex-wrap: wrap; }
  .logo, .logo svg { width: 52px; height: 52px; flex-basis: 52px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav { display: none; flex-basis: 100%; order: 3; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: .4rem; }
  .social { display: none; }
  .hero { min-height: 420px; padding: 22px 16px 16px; }
  .hero h1 { font-size: 44px; }
  .hero .sub { font-size: 1.15rem; }
  .big-btn { min-width: 0; flex: 1; height: 84px; font-size: 1rem; }
  .divide { font-size: 24px; }
  .og-expander-inner { grid-template-columns: 1fr; padding: 44px 16px 20px; gap: 1rem; }
  .og-fullimg { order: -1; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer { padding: 10px 16px; }
  .footer ul { flex-wrap: wrap; gap: .6rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .details-layer, .og-expander, .hero-slides div { transition: none; }
}

/* ---------- Single video / single smile pages ---------- */
.video-page { max-width: 1100px; margin: 0 4px 3rem; }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #000; margin-bottom: 1rem; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.single-smile { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 2rem; margin: 0 4px 3rem; align-items: start; }
.single-smile img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #eee; }
.single-smile .big-btn { min-width: 0; padding: 0 1.2rem; margin: .3rem .3rem 0 0; }
@media (max-width: 760px) { .single-smile { grid-template-columns: 1fr; } }

form.paypal { margin: 1rem 0 1.5rem; }
form.paypal .big-btn { height: 64px; min-width: 220px; }
.content img { max-width: 100%; height: auto; }
