/* Bapple Media Studios - one shared stylesheet for every page.
   Colours and fonts copied from the old Hostinger site. */
:root {
  --red: #e60000;
  --blue: #2e14d4;
  --ink: #1f1f1f;
  --ink-soft: #1d1e20;
  --grey-text: #5e5e5e;
  --navy: #042040;
  --light: #f2f3f6;
  --light-2: #dddddd;
  --max: 1224px;
  --head: "Marcellus", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
  --nav: "Barlow", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--ink-soft); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--head); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 100; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.logo img { width: 110px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 4vw, 64px); }
.nav a { font-family: var(--nav); font-size: 16px; color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--red); color: #fff; font-family: var(--head); font-size: 18px; padding: 13px 24px; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: #b80000; }
.pill { display: inline-block; min-width: 174px; padding: 13px 20px; border-radius: 30px; font-family: var(--nav); font-size: 17px; text-align: center; }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 520px; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; z-index: -1; }
.hero h1 { margin: 10px 0 0; font-size: clamp(2rem, 4.5vw, 3rem); }
.hero h2 { color: var(--red); font-size: 18px; margin: 4px 0 0; }
.hero .btn { margin-top: auto; margin-bottom: 90px; }

/* ---------- Generic page sections ---------- */
.page { padding: 24px 0 48px; }
.lead { font-size: 24px; color: var(--ink); max-width: 520px; margin: 0 auto 24px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.about h1 { font-size: clamp(2.4rem, 5vw, 4rem); text-align: center; }
.about .text { text-align: center; }
.about .text p { margin: 0 0 1em; }
.about .text .big { font-size: 24px; color: var(--ink); }

/* Contact */
.contact { max-width: 520px; margin: 0 auto; }
.contact h1 { text-align: center; }
.contact form { display: grid; gap: 22px; margin-top: 8px; }
.field label { display: block; font-size: 16px; color: #1a1a1a; margin-bottom: 4px; }
.field input, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #cfd2d6; border-radius: 4px; background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.field .err { display: none; color: var(--red); font-size: 14px; margin-top: 4px; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.field.invalid .err { display: block; }
.contact .btn { justify-self: center; min-width: 176px; }
.form-msg { display: none; padding: 16px; border-radius: 4px; text-align: center; }
.form-msg.ok { display: block; background: #e9f7ee; color: #12632f; border: 1px solid #9fd6b0; }
.form-msg.bad { display: block; background: #fdeaea; color: #8a0000; border: 1px solid #f0a5a5; }
.hidden { display: none !important; }

/* Pricing cards */
.pricing h1 { text-align: center; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0 24px; justify-items: center; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; align-items: start; }
.card { padding: 20px 18px 24px; }
.card .price { font-family: var(--head); font-size: 48px; text-align: center; margin: 0 0 8px; color: inherit; }
.card .price.small { font-size: 40px; }
.card .desc { font-style: italic; font-size: 20px; text-align: center; margin: 0 0 24px; line-height: 1.35; }
.card h3 { font-size: 32px; color: inherit; margin: 0 0 8px; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin: 0 0 2px; }
.card p { font-size: 18px; margin: 0 0 12px; }
.c-white { background: #fff; color: var(--ink); }
.c-red { background: var(--red); color: #fff; }
.c-blue { background: var(--blue); color: #fff; }
.c-black { background: #000; color: #fff; }
.c-light { background: var(--light); color: var(--ink); }
.c-grey { background: var(--light-2); color: var(--ink); }
.t-red { background: var(--red); color: #fff; }
.t-blue { background: var(--blue); color: #fff; }
.t-black { background: #000; color: #fff; }
.t-white { background: #fff; color: #000; border: 1px solid #000; }
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; align-items: start; }
.extras .card h3 { font-size: 24px; }

/* Photo booth top row */
.booth-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: center; margin-bottom: 24px; }
.booth-top img { width: 100%; aspect-ratio: 353 / 374; object-fit: cover; }

/* Video embeds (YouTube and Google Drive) */
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.r4x3 { aspect-ratio: 4 / 3; }
.video.tall { aspect-ratio: 3 / 5; }
.video-feature { max-width: 690px; margin: 0 auto 16px; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; margin: 40px 0; }
.video-grid h2, .video-grid h3, .video-title { font-size: 28px; text-align: center; margin: 14px 0 0; }
.video-grid .vh { font-size: 24px; margin: 0 0 12px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin: 48px 0 16px; }
.intro { max-width: 360px; margin: 0 auto; text-align: center; color: #323232; }

/* Blog */
.blog-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 940px; margin: 40px auto 0; }
.blog-card a { text-decoration: none; }
.blog-card img { width: 100%; aspect-ratio: 450 / 270; object-fit: cover; }
.blog-card h2 { font-size: 24px; margin: 16px 0 8px; }
.blog-card p { margin: 0 0 6px; font-size: 14px; }
.article { max-width: 800px; margin: 0 auto; overflow-wrap: anywhere; }
.article h1 { text-align: center; }
.article h2 { font-size: 30px; margin-top: 1.2em; }
.article img.cover { width: 100%; aspect-ratio: 812 / 344; object-fit: cover; margin: 16px 0 24px; }
.article p { font-size: 18px; color: #333; }
.longread { text-align: center; }
.longread h1, .longread h2, .longread h3 { color: var(--navy); }
.longread h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-top: 1.4em; }
.longread h3 { font-size: clamp(1.4rem, 3vw, 2.4rem); margin-top: 1.2em; }
.longread p { font-size: 24px; color: var(--grey-text); line-height: 1.3; }

/* ---------- Footer ---------- */
.site-footer { padding: 24px 0 40px; }
.site-footer .tag { font-family: var(--head); color: var(--ink); font-size: 28px; text-align: center; margin: 0 0 20px; }
.foot-grid { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 24px 64px; max-width: 900px; margin: 0 auto; align-items: start; }
.social { display: grid; gap: 12px; }
.social a { display: flex; align-items: center; gap: 24px; font-family: var(--head); font-size: 24px; color: #1a1a1a; text-decoration: underline; }
.social a span { background: var(--light); padding: 2px 6px; }
.social svg { width: 30px; height: 30px; flex: none; fill: var(--red); order: 2; }
.reach { display: grid; grid-template-columns: auto auto; gap: 10px; font-family: var(--head); font-size: 24px; align-items: center; }
.reach .lab { background: #f1f1f1; padding: 2px 8px; }
.reach a { background: var(--red); color: #fff; padding: 2px 10px; text-decoration: underline; }
.wa { position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: #1f8b4c; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); z-index: 60; }
.wa svg { width: 30px; height: 30px; fill: #fff; }

.card .tabname { display: none; font-family: var(--nav); text-align: center; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; opacity: .85; }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 920px) {
  .cards, .extras, .tabs { grid-template-columns: 1fr 1fr; }
  .booth-top { grid-template-columns: 1fr 1fr; }
  .booth-top .video { grid-column: 1 / -1; grid-row: 1; max-width: 360px; justify-self: center; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #eee; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav li a { display: block; padding: 12px 0; font-size: 18px; }
  .hero { min-height: 0; padding-bottom: 24px; }
  .hero img { position: static; z-index: auto; order: 3; height: 300px; margin-top: 14px; object-position: 70% 20%; }
  .hero h1 { order: 1; padding: 0 12px; }
  .hero h2 { order: 2; }
  .hero .btn { order: 4; margin: 20px 0 0; }
  .about { grid-template-columns: 1fr; }
  .about h1 { order: -1; }
  .video-grid, .blog-list { grid-template-columns: 1fr; gap: 28px; }
  .video-grid h2, .video-grid h3, .video-title { font-size: 24px; }
  .foot-grid { grid-template-columns: 1fr; justify-items: center; }
  .social a, .reach { font-size: 20px; }
  .site-footer .tag { font-size: 22px; }
  .longread p { font-size: 19px; }
  .lead { font-size: 20px; }
}
@media (max-width: 520px) {
  .cards, .extras, .tabs { grid-template-columns: 1fr; }
  .tabs { display: none; }
  .card .tabname { display: block; }
}
