/* Cheshire Cherubs Photography: mobile-first styles */
/* Fonts hosted on this site (Amatic SC and Open Sans, SIL Open Font Licence), Latin characters only */
@font-face { font-family: 'Amatic SC'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/amatic-sc-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-stretch: 75% 100%; font-display: swap;
  src: url(/fonts/open-sans-latin.woff2) format('woff2'); }
:root {
  --lilac: #d0afd8;
  --lilac-soft: #f6eff8;
  --lilac-deep: #8c5b9c;
  --plum: #5e3a6b;
  --blue: #1a76b8;      /* the old site's blue (#2ea3f2), darkened for readable contrast */
  --blue-dark: #135a8d;
  --text: #333;
  --muted: #666;
  --line: #e6dcea;
  --bg: #fff;
  --radius: 6px;
  --shadow: 0 6px 18px rgba(60, 30, 70, .14);
  --heading: 'Amatic SC', 'Segoe Print', cursive;
  --body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.7 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 2px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.draft-banner { background: #fff3c4; color: #5a4300; text-align: center; padding: 8px 16px; font-weight: 600; }

h1, h2, h3, h4 { font-family: var(--heading); font-weight: 700; line-height: 1.15; color: #222; margin: 1.6em 0 .4em; letter-spacing: .02em; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.7rem; }
h4 { font-size: 1.4rem; }
h2 a, h3 a { color: inherit; text-decoration: none; }
p, ul, ol { margin: 0 0 1em; }

/* header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #222; padding: 6px 0; }
.logo-img { width: 52px; height: 52px; }
.logo-text { font-family: var(--heading); font-size: 1.6rem; line-height: 1; }
.logo-text small { display: block; font-family: var(--body); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font: 600 .9rem var(--body); color: var(--text); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.site-nav { display: none; width: 100%; padding-bottom: 12px; }
.site-nav.open { display: block; }
.nav-list, .sub { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-top: 1px solid var(--line); }
.nav-list a, .sub-toggle { display: block; width: 100%; text-align: left; padding: 12px 4px; color: var(--text); text-decoration: none; font: 600 .95rem var(--body); background: none; border: 0; cursor: pointer; }
.nav-list a[aria-current="page"] { color: var(--lilac-deep); }
.sub-toggle::after { content: ' \25BE'; color: var(--muted); }
.sub { display: none; padding-left: 14px; }
.has-sub.open .sub { display: block; }
.sub a { font-weight: 400; padding: 9px 4px; }

/* hero */
.hero { position: relative; }
.hero-plain { background: var(--lilac-soft); text-align: center; padding: 36px 0 28px; }
.hero-plain h1 { margin: 0; }
.hero-image { background: #2b2230; color: #fff; }
.hero-image img { width: 100%; height: 56vw; max-height: 560px; min-height: 240px; object-fit: cover; object-position: 50% 25%; }
.hero-text { padding: 20px 16px 24px; text-align: center; background: var(--plum); }
.hero-text h1 { color: #fff; margin: 0; }
.hero-sub { margin: .4em 0 0; font-size: 1.05rem; }
.post-meta { color: var(--muted); font-size: .9rem; margin: .3em 0 0; }
.hero-text .post-meta { color: #eadcf0; }

/* content */
.content { padding-top: 8px; padding-bottom: 48px; }
.content > p, .content > ul, .content > ol, .content > h2, .content > h3, .content > h4, .content > form, .content > img, .content > a > img { max-width: 760px; margin-left: auto; margin-right: auto; }
.content > p:has(> img:only-child), .content img { border-radius: var(--radius); }
.content > p > img, .content > p > a > img { box-shadow: var(--shadow); margin: 1.5em auto; }
.content ul li { margin-bottom: .35em; }
.content > h2, .content > h3 { text-align: center; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1.5em auto; max-width: 960px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; box-shadow: var(--shadow); border-radius: var(--radius); }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin: 2em 0; }
.card { text-align: center; background: #fff; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.card h2, .card h3 { margin: .7em 0 .2em; font-size: 1.9rem; }
.card p { color: var(--muted); font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 1.5em auto; max-width: 760px; }
.btn { display: inline-block; padding: 11px 22px; border: 2px solid var(--blue); border-radius: var(--radius); color: var(--blue); background: #fff; text-decoration: none; font-weight: 600; text-align: center; }
.btn:hover { background: var(--blue); color: #fff; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

/* forms */
.enquiry { background: var(--lilac-soft); border: 1px solid var(--line); border-radius: 10px; padding: 20px 16px; margin: 2.5em auto; scroll-margin-top: 80px; }
.form-title { text-align: center; margin-top: 0; }
.field { margin: 0 0 14px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #c9b7cf; border-radius: var(--radius); font: inherit; background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lilac-deep); outline: 2px solid var(--lilac); }
.choice { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; padding: 3px 0; }
.choice input { width: auto; }
.req { color: #a3305a; }
.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry button { width: 100%; font-size: 1rem; cursor: pointer; }
.enquiry button[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 12px 0 0; font-weight: 600; }
.form-status.ok { color: #1f6b3a; background: #e6f4ea; padding: 12px; border-radius: var(--radius); }
.form-status.err { color: #8a1f3d; background: #fbe9ee; padding: 12px; border-radius: var(--radius); }
.form-privacy { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* service pages and areas */
.other-services, .areas { border-top: 1px solid var(--line); margin-top: 3em; padding-top: 1em; }
.other-services > h2, .areas > h2 { text-align: center; }
.areas p { max-width: 760px; margin-left: auto; margin-right: auto; }
.content h2 + h3, .content p + h3 { margin-top: 1.4em; }
.footer-areas { font-size: .85rem; }

/* footer */
.site-footer { background: var(--lilac); color: #2a1f2e; padding: 36px 0 0; }
.site-footer h2 { font-size: 1.9rem; margin: 0 0 .4em; color: #2a1f2e; }
.site-footer a { color: #2a1f2e; }
.footer-grid { display: grid; gap: 24px; text-align: center; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 4px 0; }
.footer-base { border-top: 1px solid rgba(0, 0, 0, .12); margin-top: 28px; padding-top: 14px; padding-bottom: 14px; font-size: .85rem; text-align: center; }
.footer-base p { margin: 0; }

/* larger screens */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .enquiry { padding: 28px; }
  .enquiry button { width: auto; }
}
@media (min-width: 900px) {
  h1 { font-size: 3.4rem; }
  h2 { font-size: 2.5rem; }
  .nav-toggle { display: none; }
  .site-nav { display: block; width: auto; padding: 0; }
  .nav-list { display: flex; gap: 4px; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list a, .sub-toggle { padding: 10px 12px; width: auto; }
  .sub { position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 0; }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
  .sub a { padding: 8px 16px; }
  .sub a:hover { background: var(--lilac-soft); }
  .hero-image { display: grid; }
  .hero-image > * { grid-area: 1 / 1; }
  .hero-image img { height: 520px; }
  .hero-text { align-self: end; background: linear-gradient(transparent, rgba(30, 15, 35, .75)); padding: 80px 16px 36px; }
  .hero-text h1 { font-size: 4rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
