/*
  SugarMommy.uk Styles
  - Clean, modern, SEO-friendly, inspired by minimal luxury aesthetics
  - All styles consolidated here; avoid duplicates and conflicts
  - Mobile-first, responsive menu, grids, buttons
*/

/* Base */
:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #5f5f5f;
  --color-border: #e6e6e6;
  --color-accent: #c9a646; /* soft gold accent */
  --color-accent-dark: #a88a38;
  --color-header: #0f0f0f;
  --color-section-alt: #fafafa;
  --radius: 12px;
  --shadow: 0 10px 24px rgba(0,0,0,0.08);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}
.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; border-radius: var(--radius); }
a { color: var(--color-text); text-decoration: none; }
p { margin: 0 0 1rem; color: var(--color-text); }
h2, h3 { color: var(--color-header); margin: 0 0 .6rem; line-height: 1.25; }
h1 { color: #d10c0c; margin: 0 0 .6rem; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--color-border); backdrop-filter: saturate(180%) blur(4px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.brand__name { letter-spacing: .2px; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; width: 40px; height: 36px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--color-border); border-radius: 10px; cursor: pointer; }
.nav-toggle__bar { width: 22px; height: 2px; background: var(--color-header); display: block; border-radius: 2px; }

.nav { position: fixed; inset: 60px 0 auto 0; transform: translateY(-120%); transition: transform .28s ease; background: #fff; border-bottom: 1px solid var(--color-border); z-index: 100; box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-radius: 0 0 12px 12px; }
.nav--open { transform: translateY(0); }
.nav__list { list-style: none; margin: 0; padding: 12px 16px 16px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.nav__item { }
.nav__link { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--color-border); font-size: 0.98rem; font-weight: 600; color: var(--color-header); background: #fff; }
.nav__link:hover { background: var(--color-section-alt); }
.nav__cta .button { width: 100%; }

/* Mobile menu overlay */
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.menu-open .nav-overlay { opacity: 1; pointer-events: auto; }

/* Prevent body scroll when menu is open */
.menu-open { overflow: hidden; }

/* Toggle button active state (hamburger to X) */
.nav-toggle__bar { transition: transform .2s ease, opacity .2s ease, background-color .2s ease; }
.nav-toggle[aria-expanded="true"] { border-color: var(--color-accent); background: var(--color-section-alt); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { position: static; transform: none; border: 0; }
  .nav__list { display: flex; gap: 6px; padding: 0; }
  .nav__link { padding: 10px 12px; }
}

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--color-accent); color: var(--color-header); font-weight: 600; transition: all .2s ease; }
.button--primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.button--primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.button--secondary { background: #fff; color: var(--color-header); }
.button--secondary:hover { background: var(--color-section-alt); }
.button--lg { padding: 14px 22px; font-size: 1rem; }

/* Hero */
.hero { position: relative; overflow: hidden; }
/* place image below overlay */
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(96%) contrast(96%); }
/* soft dark overlay to improve text readability */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.25)); }
/* readable text block */
.hero__content { padding: 80px 16px 56px; max-width: 820px; background: rgba(0,0,0,0.20); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero h1 { color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.55); }
.hero p { color: #f2f2f2; text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.hero .button { margin-top: 12px; box-shadow: 0 8px 18px rgba(0,0,0,0.25); }
@media (min-width: 900px) {
  .hero__content { padding: 100px 24px 72px; }
}

/* Sections */
.section { padding: 56px 0; }
.section--alt { background: var(--color-section-alt); }
.section--cta { background: linear-gradient(180deg, #fff, #f7f4ed); }
.section__actions { margin-top: 12px; }

/* Features */
.features { display: grid; grid-template-columns: 1fr; gap: 18px; }
.feature { display: grid; grid-template-columns: 44px minmax; gap: 12px; align-items: start; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", "Source Han Sans SC", "SimSun", "NSimSun"; writing-mode: horizontal-tb; }
.feature > * { min-width: 0; }
.feature__icon { width: 36px; height: 36px; color: var(--color-accent); }
.feature h3, .feature p { display: block; width: 100%; letter-spacing: 0; word-break: normal; overflow-wrap: break-word; white-space: normal; text-align: left; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.7; hyphens: auto; }

@media (min-width: 700px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

/* Lists */
.list { margin: 10px 0 0; padding: 0; list-style: none; }
.list--columns { display: grid; grid-template-columns: 1fr; gap: 10px; }
.list--columns li { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px; }
@media (min-width: 900px) {
  .list--columns { grid-template-columns: 1fr 1fr 1fr; }
}

/* Steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; }
.step { display: grid; grid-template-columns: 1fr; gap: 12px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.step__media img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.step__content { padding: 12px 12px 14px; }
@media (min-width: 900px) {
  .step { grid-template-columns: 240px auto; }
  .step__media img { height: 100%; object-fit: cover; border-top-right-radius: 0; border-bottom-left-radius: var(--radius); }
}

/* Benefits */
.benefits { display: grid; grid-template-columns: 1fr; gap: 14px; }
.benefit { display: grid; grid-template-columns: 40px minmax; align-items: start; gap: 12px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", "Source Han Sans SC", "SimSun", "NSimSun"; }
.benefit > * { min-width: 0; }
.benefit svg { width: 32px; height: 32px; color: var(--color-accent); }
.benefit h3, .benefit p { display: block; width: 100%; letter-spacing: 0; word-break: normal; overflow-wrap: break-word; white-space: normal; text-align: left; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.7; hyphens: auto; }
@media (min-width: 900px) { .benefits { grid-template-columns: 1fr 1fr 1fr; } }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.card__image { width: 100%; height: 220px; object-fit: cover; }
.card__body { padding: 12px 12px 16px; }
.cards--cities .card__image { height: 200px; }
.cards--blog .card__image { height: 220px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .cards--blog { grid-template-columns: repeat(5, 1fr); } }

/* Cities grid symmetry */
@media (min-width: 700px) {
  .cards--cities { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards--cities { grid-template-columns: repeat(4, 1fr); }
}

/* Profiles grid symmetry */
@media (min-width: 700px) {
  .cards--profiles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards--profiles { grid-template-columns: repeat(4, 1fr); }
}

/* Venues grid symmetry: 3 per row on desktop */
@media (min-width: 700px) {
  .cards--venues { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards--venues { grid-template-columns: repeat(3, 1fr); }
}

/* Grid */
.grid { display: grid; gap: 16px; }
.grid--two { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .grid--two { grid-template-columns: 1fr 1fr; }
}
.media-box img { height: 100%; object-fit: cover; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: 1fr; gap: 16px; }
.testimonial { display: grid; grid-template-columns: 64px auto; gap: 12px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.testimonial__avatar { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }
.testimonial__body h3 { margin-bottom: 6px; }
@media (min-width: 900px) { .testimonials { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr; gap: 10px; }
.faq__item { border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; padding: 10px 12px; box-shadow: var(--shadow); }
.faq__item summary { cursor: pointer; font-weight: 600; }
.faq__item p { margin-top: 8px; color: var(--color-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); background: #fff; }
/* Footer layout: mobile-first */
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 16px 0; align-items: start; }
.footer__brand { display: grid; grid-template-columns: 48px auto; gap: 10px; align-items: center; }
.footer__logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
/* Use CSS Grid for footer links to create clean columns without changing HTML */
.footer__nav { display: grid; grid-template-columns: 1fr; gap: 8px 12px; align-items: start; }
.footer__link { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 8px; line-height: 1.2; }
.footer__link:hover { background: var(--color-section-alt); }
.footer__social { display: flex; gap: 12px; }
.footer__social-link { color: var(--color-muted); }
.footer__contact a { color: var(--color-text); font-weight: 600; }
/* Wider screens: two clear columns (brand + nav) */
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1.3fr 2fr; }
  .footer__nav { grid-template-columns: repeat(2, minmax(160px, auto)); }
}

/* Extra wide: three link columns for better scanability */
@media (min-width: 1200px) {
  .footer__nav { grid-template-columns: repeat(3, minmax(160px, auto)); }
}

/* Accessibility helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* London page helpers (moved from inline styles) */
.note { color: var(--color-muted); font-size: 0.95rem; }
figure { margin: 0; }
figcaption { font-size: 0.9rem; color: var(--color-muted); margin-top: 6px; }
.faq dt { font-weight: 700; margin-top: 12px; }
.faq dd { margin: 6px 0 12px 0; }