/* =========================================================
   M.W. SUTTON — site styles
   Change the colours in :root below to re-skin the whole site.
   ========================================================= */

:root {
  --navy: #172945;          /* main brand colour */
  --navy-text: #f4f5f7;     /* text on navy */
  --background: #f4f6f8;
  --text: #17202d;
  --card: #fbfcfd;
  --silver-surface: #e4e6e9;
  --muted-text: #5e646b;
  --silver: #7a818a;        /* small labels */
  --border: #cdd0d3;
  --input: #b3b8be;
  --star: #bf8b1f;

  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 88rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.15; }
p { margin: 0; }
[hidden] { display: none !important; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px)  { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

section[id] { scroll-margin-top: 110px; }

/* ---------- Shared section pieces ---------- */
.section { padding: 56px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) { .section { padding: 80px 0; } }

.section-head { border-bottom: 1px solid var(--border); padding-bottom: 32px; }
.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.6875rem;
  color: var(--silver);
}
.section-head h2, .services h2 {
  margin-top: 20px;
  color: var(--navy);
  font-size: 1.875rem;
}
@media (min-width: 640px)  { .section-head h2, .services h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-head h2 { font-size: 3rem; } }

.link-rule {
  display: inline-block;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  text-decoration: none;
  transition: border-color 200ms ease;
}
.link-rule:hover { border-color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 248, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 0.875rem; }
@media (min-width: 640px) {
  .brand-logo { width: 80px; height: 80px; }
  .brand-name { font-size: 1.125rem; }
}

.main-nav { display: none; gap: 40px; align-items: center; }
.main-nav a, .mobile-nav a {
  text-decoration: none;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted-text);
  transition: color 200ms ease;
}
.main-nav a:hover { color: var(--navy); }

.menu-toggle {
  display: grid; gap: 5px; place-content: center;
  width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); transition: transform 200ms, opacity 200ms; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--border); background: var(--background); padding: 0 20px; }
.mobile-nav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--border); color: var(--navy); font-size: 0.75rem; }
.mobile-nav a:last-child { border-bottom: 0; }

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.2; filter: saturate(0); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: var(--navy-text); font-size: 2.25rem; line-height: 1.1; }
.hero-rule { display: block; margin-top: 24px; width: 64px; height: 1px; background: rgba(244, 245, 247, 0.4); }
.hero-tagline { margin-top: 24px; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; color: rgba(244, 245, 247, 0.75); }
@media (min-width: 640px)  { .hero h1 { font-size: 3.75rem; } .hero-tagline { font-size: 0.875rem; } }
@media (min-width: 1024px) { .hero-inner { padding-top: 96px; padding-bottom: 96px; } .hero h1 { font-size: 4.5rem; } }

.reveal { animation: reveal 700ms ease-out both; }
.reveal-delay { animation-delay: 120ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- About ---------- */
.about-text { margin-top: 40px; max-width: none; color: var(--muted-text); line-height: 2; }
.about-text p + p { margin-top: 24px; }

/* ---------- Gallery ---------- */
.gallery { position: relative; margin-top: 32px; overflow: hidden; background: var(--silver-surface); outline-offset: 4px; touch-action: pan-y; cursor: grab; user-select: none; }
.gallery.dragging { cursor: grabbing; }
.gallery-track { display: flex; transition: transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1); will-change: transform; }
.gallery.dragging .gallery-track { transition: none; }
.slide { margin: 0; flex: 0 0 100%; min-width: 0; aspect-ratio: 4 / 3; }
@media (min-width: 640px)  { .slide { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) { .slide { aspect-ratio: 21 / 10; } }
.slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(244, 245, 247, 0.25);
  background: rgba(23, 41, 69, 0.45);
  color: var(--navy-text);
  cursor: pointer;
  transition: opacity 300ms ease, background-color 300ms ease, visibility 300ms;
}
.gallery-arrow:hover { background: rgba(23, 41, 69, 0.7); }
.gallery-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
@media (min-width: 640px) { .gallery-arrow.prev { left: 20px; } .gallery-arrow.next { right: 20px; } }

/* Arrows hidden until the mouse is over the photo (desktop). Always shown on touch screens. */
.gallery-arrow { opacity: 0; visibility: hidden; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .gallery:hover .gallery-arrow,
  .gallery:focus-within .gallery-arrow { opacity: 1; visibility: visible; pointer-events: auto; }
}
@media (hover: none) {
  .gallery-arrow { opacity: 1; visibility: visible; pointer-events: auto; }
}

.gallery-more { margin-top: 20px; text-align: center; font-size: 0.875rem; color: var(--muted-text); }
.gallery-more a { color: var(--muted-text); transition: border-color 200ms ease, color 200ms ease; }
.gallery-more a:hover { color: var(--navy); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Services bar ---------- */
.services { background: var(--navy); color: var(--navy-text); padding: 40px 0; }
@media (min-width: 1024px) { .services { padding: 48px 0; } }
.services h2 { color: var(--navy-text); font-size: 1.5rem; }
@media (min-width: 640px)  { .services h2 { font-size: 1.875rem; } }
@media (min-width: 1024px) { .services h2 { font-size: 2.25rem; } }
.services-list { list-style: none; margin: 32px auto 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 320px; }
.services-list li {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 10px 4px; font-weight: 700; font-size: 0.75rem; line-height: 1.35;
  border-top: 1px solid rgba(244, 245, 247, 0.2);
}
.services-list li:first-child { border-top: 0; }
@media (min-width: 640px) {
  .services-list { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: none; }
  .services-list li { padding: 0 8px; font-size: 0.75rem; border-top: 0; border-left: 1px solid rgba(244, 245, 247, 0.2); }
  .services-list li:first-child { border-left: 0; }
}
@media (min-width: 1024px) { .services-list li { padding: 8px 16px; font-size: 0.875rem; } }

/* ---------- Reviews ---------- */
.reviews { background: var(--silver-surface); }
.reviews .section-head h2 { font-size: 1.875rem; margin-top: 16px; }
@media (min-width: 640px) { .reviews .section-head h2 { font-size: 2.25rem; } }
.sample-note { margin-top: 12px; font-size: 0.75rem; color: var(--muted-text); }

.reviews-viewport { margin-top: 32px; overflow: hidden; }
.reviews-track { display: flex; align-items: flex-start; width: max-content; animation: drift var(--drift-duration, 60s) linear infinite; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (hover: hover) and (pointer: fine) {
  .reviews:hover .reviews-track { animation-play-state: paused; }
}

.review {
  flex: 0 0 auto;
  width: min(85vw, 380px);
  margin-right: 20px;
  display: flex; flex-direction: column;
  height: 18rem;          /* every review card is exactly the same size */
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
}
.review-head { display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--silver-surface); color: var(--navy); font-weight: 600; font-size: 0.875rem; }
.review-name { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.stars { margin-top: 20px; color: var(--star); letter-spacing: 3px; font-size: 1rem; }
.review blockquote { margin: 16px 0 0; font-size: 0.875rem; line-height: 1.75; white-space: normal;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.see-more { align-self: flex-start; margin-top: auto; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--navy);
  border-bottom: 1px solid var(--border); transition: border-color 200ms; }
.see-more:hover { border-color: var(--navy); }
.reviews.reading .reviews-track { animation-play-state: paused; }

/* Full review pop-up (opened by "See more") */
.review-dialog { width: min(92vw, 560px); max-height: 85vh; padding: 32px; border: 1px solid var(--border); border-radius: 2px;
  background: var(--card); color: var(--text); box-shadow: 0 20px 60px rgba(23, 41, 69, 0.25); }
.review-dialog::backdrop { background: rgba(23, 41, 69, 0.55); }
.review-dialog blockquote { margin: 16px 0 0; font-size: 0.95rem; line-height: 1.8; white-space: pre-line; }
.review-dialog .btn { margin-top: 28px; }
.review-tag { margin-top: 20px; font-size: 0.65rem; color: var(--muted-text); }
.review-link { margin-top: 40px; font-size: 0.875rem; font-weight: 600; color: var(--navy); }

/* ---------- Contact ---------- */
.contact { border-bottom: 0; padding: 80px 0; }
@media (min-width: 1024px) { .contact { padding: 112px 0; } }
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.42fr 0.58fr; gap: 80px; } }
.contact-title { margin-top: 20px; max-width: 28rem; color: var(--navy); font-size: 1.875rem; line-height: 1.25; }
@media (min-width: 640px) { .contact-title { font-size: 2.25rem; } }
.contact-intro { margin-top: 28px; max-width: 28rem; line-height: 2; color: var(--muted-text); }
.contact-block { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 24px; font-size: 0.875rem; line-height: 1.75; color: var(--muted-text); }
.contact-block + .contact-block { margin-top: 32px; }
.mini-label { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 12px; }
.contact-block a { color: var(--navy); font-weight: 600; text-decoration: none; transition: opacity 200ms; }
.contact-block a:hover { opacity: 0.75; }

.form-wrap { border-top: 1px solid var(--navy); padding-top: 40px; }
.enquiry-form { display: grid; gap: 28px; }
@media (min-width: 640px) { .enquiry-form { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field textarea {
  font: inherit; font-size: 0.875rem; color: var(--text);
  border: 0; border-bottom: 1px solid var(--input); border-radius: 0;
  background: transparent; padding: 12px 0; outline: none;
  transition: border-color 200ms;
}
.field input { height: 48px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-text); opacity: 0.8; }
.hidden-field { position: absolute; left: -9999px; }

.btn {
  font: inherit; font-size: 0.875rem; font-weight: 600;
  height: 48px; padding: 0 32px; border-radius: 2px; cursor: pointer;
  background: var(--navy); color: var(--navy-text); border: 1px solid var(--navy);
  transition: opacity 200ms, background-color 200ms, color 200ms;
}
.btn:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--navy-text); opacity: 1; }
@media (max-width: 639px) { .enquiry-form .btn { width: 100%; } }
.form-note { align-self: center; font-size: 0.75rem; color: var(--muted-text); }
@media (min-width: 640px) { .form-note { text-align: right; } .enquiry-form .btn { justify-self: start; } }
.form-error { grid-column: 1 / -1; font-size: 0.875rem; color: #b42318; }

.form-success { min-height: 18rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.form-success .tick { width: 28px; height: 28px; fill: none; stroke: var(--silver); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { margin-top: 24px; color: var(--navy); font-size: 1.5rem; }
@media (min-width: 640px) { .form-success h3 { font-size: 1.875rem; } }
.form-success p { margin-top: 16px; max-width: 32rem; line-height: 1.75; color: var(--muted-text); }
.form-success .btn { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--navy-text); }
.footer-inner { display: flex; flex-direction: column; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 640px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
@media (min-width: 1024px) { .footer-inner { padding-top: 64px; padding-bottom: 64px; } }
.footer-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: contain; margin-bottom: 20px; }
@media (min-width: 640px) { .footer-logo { width: 80px; height: 80px; } }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.footer-est, .footer-heading { margin-top: 8px; font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: rgba(244, 245, 247, 0.6); }
.footer-heading { margin-top: 0; letter-spacing: 0.2em; }
.site-footer ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.875rem; }
.site-footer ul a { text-decoration: none; color: rgba(244, 245, 247, 0.75); transition: color 200ms; }
.site-footer ul a:hover { color: var(--navy-text); }
.footer-instagram { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; min-height: 44px; font-size: 0.875rem; text-decoration: none; color: rgba(244, 245, 247, 0.75); transition: color 200ms; }
.footer-instagram:hover, .footer-instagram:focus-visible { color: var(--navy-text); }
.ig-icon { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.ig-icon .ig-dot { fill: currentColor; stroke: none; }
.footer-bottom { border-top: 1px solid rgba(244, 245, 247, 0.15); }
.footer-bottom p { padding: 24px 0; font-size: 0.75rem; color: rgba(244, 245, 247, 0.6); }

/* ---------- Thank-you page ---------- */
.thanks { min-height: 70vh; display: flex; align-items: center; }
.thanks h1 { color: var(--navy); font-size: 2.25rem; margin-top: 20px; }
.thanks p { margin-top: 20px; color: var(--muted-text); line-height: 1.8; max-width: 32rem; }
.thanks .btn { display: inline-flex; align-items: center; margin-top: 32px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reviews-track { animation: none; }
  .reviews-viewport { overflow-x: auto; }
}
