/* Tommy Tricks: same layout and style as new.tammagic.co.uk,
   in brighter family-friendly colours (magic blue and sunny yellow on white). */
:root {
  --navy: #1d2b74;        /* header, footer */
  --blue-deep: #26389b;
  --blue: #3d5be0;
  --blue-glow: #6b86ff;
  --sun: #ffcd3c;         /* buttons and highlights */
  --sun-hover: #ffd966;
  --bg: #ffffff;
  --sky: #f1f4ff;         /* alternate section background */
  --text: #262b40;
  --muted: #5b6178;
  --on-dark-muted: #d6dcfa;
  --line: #e1e6f6;
  --radius: 16px;
  --wrap: 1180px;
  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 10px 28px rgba(29, 43, 116, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--font-body); overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; color: var(--navy); }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.18rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 820px; }
.small { font-size: 0.9rem; color: var(--muted); }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.28rem); }
.intro { max-width: 760px; color: var(--muted); font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 800; color: var(--sun); margin-bottom: 0.8em; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun); color: #000; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.75em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 800 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--sun); color: #1d1d1d; }
.btn-primary:hover { background: var(--sun-hover); color: #000; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-ghost:hover { border-color: var(--sun); color: var(--sun); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: none; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.95rem; }
.btn-lg { padding: 0.9em 1.7em; font-size: 1.06rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(29, 43, 116, 0.96); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--sun); text-decoration: none; white-space: nowrap; margin: 0; }
.brand:hover { color: var(--sun-hover); }
.brand-face { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--sun); background: var(--sun); object-fit: cover; flex: none; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.75rem; letter-spacing: 0.01em; }
.brand-tag { font-family: var(--font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; opacity: 0.85; margin-top: 5px; }
@media (min-width: 1200px) {
  .header-inner { min-height: 88px; }
  .brand-face { width: 62px; height: 62px; }
  .brand-name { font-size: 2.3rem; }
  .brand-tag { font-size: 0.78rem; }
}
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: none; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 8px 16px 20px; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a { display: block; padding: 12px 4px; color: #fff; text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.site-nav a[aria-current="page"] { color: var(--sun); }
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; align-items: center; gap: 24px; position: static; padding: 0; background: none; }
  .site-nav ul { display: flex; gap: 22px; margin: 0; }
  .site-nav li a { padding: 6px 0; border: 0; border-bottom: 2px solid transparent; }
  .site-nav li a:hover, .site-nav a[aria-current="page"] { color: var(--sun); border-bottom-color: var(--sun); }
}

/* Home hero */
.home-hero { padding-block: 28px 56px; color: #fff; background: radial-gradient(ellipse 70% 85% at 78% 45%, var(--blue-glow) 0%, var(--blue) 38%, var(--blue-deep) 70%, var(--navy) 100%); }
.home-hero h1 { color: #fff; }
.home-hero .lead { max-width: 44ch; color: var(--on-dark-muted); }
.home-hero-grid { display: grid; gap: 28px; align-items: center; }
.home-hero-photo { order: -1; }
.home-hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 15%; border-radius: 20px; box-shadow: 0 20px 50px rgba(10, 20, 70, 0.45); }
@media (min-width: 900px) {
  .home-hero { padding-block: 64px 80px; }
  .home-hero-grid { grid-template-columns: 1.25fr 1fr; gap: 56px; }
  .home-hero-photo { order: 0; }
  .home-hero-photo img { aspect-ratio: 4 / 5; max-height: 600px; }
}

/* Inner page hero */
.page-hero { color: #fff; padding-block: clamp(48px, 7vw, 80px); background: radial-gradient(ellipse 60% 120% at 85% 30%, var(--blue-glow) 0%, var(--blue) 40%, var(--blue-deep) 75%, var(--navy) 100%); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { max-width: 52ch; color: var(--on-dark-muted); margin: 0; }

/* Trust strip */
.trust { background: var(--navy); }
.trust-list { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding-block: 18px; font-size: 0.95rem; color: var(--on-dark-muted); text-align: center; }
.trust-list strong { color: var(--sun); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 92px); }
.section-alt { background: var(--sky); }

/* Cards */
.cards { display: grid; gap: 24px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; scroll-margin-top: 90px; }
a.card:hover { transform: translateY(-4px); border-color: var(--sun); color: var(--text); }
.card img { aspect-ratio: 16 / 11; width: 100%; object-fit: cover; object-position: 50% 8%; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body > p { color: var(--muted); flex: 1; }
.card-featured { border: 2px solid var(--sun); }
.badge { position: absolute; top: 14px; right: 14px; z-index: 1; background: var(--sun); color: #1d1d1d; font-weight: 800; font-size: 0.8rem; padding: 4px 12px; border-radius: 999px; }
.card-body > p.meta { color: var(--blue); font-weight: 700; margin-top: -0.4em; flex: none; }
.more { color: var(--blue); font-weight: 800; margin-top: auto; }

/* Feature tiles */
.feature-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
@media (min-width: 700px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } .feature-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.feature-grid li { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--sun); border-radius: var(--radius); padding: 22px; }
.feature-grid p { color: var(--muted); margin: 0; }

/* Ticks */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }

/* Split layouts */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.split-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 10%; box-shadow: var(--shadow); }
.small-photo { max-width: 340px; }
.small-photo img { aspect-ratio: 3 / 4; }
.video-frame { width: 100%; max-width: 340px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame video { width: 100%; }

/* Photo strip */
.gallery { overflow: hidden; }
.gallery-strip { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip img { flex: 0 0 72%; scroll-snap-align: start; height: clamp(220px, 28vw, 330px); object-fit: cover; object-position: 50% 10%; }
@media (min-width: 900px) { .gallery-strip img { flex: 1 1 0; min-width: 0; } }

/* Photo grid (gallery page) */
.photo-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-grid a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .2s; }
.photo-grid a:hover img { transform: scale(1.03); }

/* Steps (booking, tips) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 22px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps-tips { grid-template-columns: repeat(2, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 26px 22px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; background: var(--sun); color: var(--navy); font: 600 1.25rem var(--font-display); }
.steps p { color: var(--muted); margin: 0; }
.steps-tips li { padding-left: 84px; }
.steps-tips li::before { position: absolute; left: 22px; top: 22px; margin: 0; }

/* Testimonials */
.t-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .t-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .t-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.t-card { margin: 0; padding: 26px; background: #fff; border-radius: var(--radius); border-left: 4px solid var(--sun); box-shadow: var(--shadow); }
.t-card blockquote { margin: 0 0 14px; font-size: 1.06rem; }
.t-card figcaption { font-weight: 800; color: var(--navy); }
.t-card figcaption span { color: var(--muted); font-weight: 400; }
.more-link { margin: 26px 0 0; font-weight: 800; }

.area-list { color: var(--muted); }
.area-list strong { color: var(--text); }

/* CTA band */
.cta-band { text-align: center; color: #fff; padding-block: clamp(56px, 8vw, 88px); background: radial-gradient(ellipse at 50% 0%, var(--blue-glow) 0%, var(--blue) 40%, var(--blue-deep) 75%, var(--navy) 100%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); font-size: 1.15rem; margin-bottom: 1.4em; }

/* Contact */
.contact { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: 2fr 3fr; gap: 56px; } }
.contact-intro .ticks { margin-block: 18px 22px; }
.enquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; flex: 1; min-width: 0; }
.field-row { display: flex; flex-direction: column; gap: 0 18px; }
@media (min-width: 600px) { .field-row { flex-direction: row; } }
label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.opt { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
input, select, textarea { width: 100%; padding: 12px 14px; font: inherit; color: var(--text); background: #fff; border: 1px solid #c9d0e6; border-radius: 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(61, 91, 224, 0.2); }
textarea { min-height: 140px; resize: vertical; }
.enquiry .btn { width: 100%; margin: 6px 0 14px; }

/* Footer */
.site-footer { background: var(--navy); padding-top: 56px; color: var(--on-dark-muted); font-size: 0.95rem; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.brand-footer { margin-bottom: 10px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 40px; padding-block: 18px 96px; font-size: 0.88rem; }
@media (min-width: 1200px) { .footer-base { padding-bottom: 18px; } }

/* Mobile sticky button */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(29, 43, 116, 0.96); backdrop-filter: blur(8px); }
.mobile-bar .btn { width: 100%; }
@media (min-width: 1200px) { .mobile-bar { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  a.card:hover { transform: none; }
}
.portrait-photo { max-width: 440px; justify-self: center; }
.portrait-photo img { aspect-ratio: 3 / 4; object-position: 50% 0; }
