/* ═══════════════════════════════════════════
   Graham Hughes Sewing — Brand Stylesheet
   Blue / Yellow identity taken from company
   logo and printed flyer.
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1a4f9c;
  --blue-dark:   #123a75;
  --blue-deep:   #0e2d5c;
  --blue-tint:   #eef3fa;
  --yellow:      #fdc300;
  --yellow-dark: #e0ac00;
  --charcoal:    #2b2b2b;
  --grey:        #5f6773;
  --grey-light:  #e3e7ee;
  --white:       #ffffff;
  --radius:      10px;
  --radius-lg:   18px;
  --shadow:      0 4px 20px rgba(26,79,156,0.10);
  --shadow-lg:   0 10px 40px rgba(26,79,156,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }
img { max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }

/* Section heading with yellow underline accent */
.section-title {
  text-transform: uppercase;
  color: var(--blue);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: .4rem;
}
.section-title.light { color: var(--white); }
.title-rule {
  width: 68px; height: 5px;
  background: var(--yellow);
  border-radius: 3px;
  margin-bottom: 1.6rem;
}
.title-rule.center { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .8rem 1.9rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: all .2s;
}
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--yellow); color: var(--blue-deep); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--blue-deep); }

.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--blue); }

.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

/* ── Header ── */
header {
  background: var(--white);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 14px rgba(0,0,0,.09);
  border-bottom: 4px solid var(--yellow);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: .7rem; padding-bottom: .7rem;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }

/* Text wordmark, echoing the printed logo's lockup */
.logo-text { display: block; line-height: 1.12; }
.logo-text .l1 {
  display: block;
  font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  font-weight: 800; color: var(--blue);
  text-transform: uppercase; letter-spacing: -0.005em;
  white-space: nowrap;
}
.logo-text .l2 {
  display: block;
  font-size: clamp(.6rem, 1.9vw, .72rem);
  font-weight: 700; color: var(--charcoal);
  text-transform: uppercase; letter-spacing: .2em;
  white-space: nowrap;
}

nav { margin-left: auto; }
nav ul { display: flex; gap: .3rem; }
nav a {
  display: block;
  color: var(--charcoal);
  padding: .5rem 1rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
nav a:hover { background: var(--blue-tint); color: var(--blue); }
nav a.active { background: var(--blue); color: var(--white); }

.cta-phone {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--yellow); color: var(--blue-deep);
  font-weight: 800; font-size: 1rem;
  padding: .6rem 1.3rem; border-radius: 50px;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(253,195,0,.4);
}
.cta-phone:hover { background: var(--yellow-dark); color: var(--blue-deep); }

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--blue);
  background-size: cover; background-position: center;
  color: var(--white);
}
.hero-overlay {
  background: linear-gradient(115deg, rgba(14,45,92,.94) 0%, rgba(26,79,156,.86) 55%, rgba(26,79,156,.72) 100%);
  padding: 6rem 0 7.5rem;
}
.hero-inner { max-width: 680px; }
.hero-kicker {
  display: inline-block;
  background: var(--yellow); color: var(--blue-deep);
  font-weight: 800; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem 1.1rem; border-radius: 50px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.7rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--yellow); display: block; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.88); margin-bottom: 2rem; max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Yellow swoosh divider under hero */
.swoosh {
  position: absolute; bottom: -1px; left: 0; width: 100%;
  line-height: 0; pointer-events: none;
}
.swoosh svg { width: 100%; height: 70px; display: block; }

/* ── Promise bar (flyer tick list) ── */
.promise-bar { background: var(--white); padding: 2.5rem 0 1rem; }

/* Full company logo, shown large on the home page */
.brand-mark { text-align: center; margin-bottom: 2.5rem; }
.brand-mark img {
  width: 100%; max-width: 460px;
  height: auto; display: block; margin: 0 auto;
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}
.promise-item {
  display: flex; align-items: center; gap: .85rem;
  background: var(--blue-tint);
  border-radius: 50px;
  padding: .85rem 1.3rem;
  font-weight: 700; color: var(--blue-deep);
  font-size: .95rem;
}
.tick {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: grid; place-items: center;
  font-size: .9rem; font-weight: 900;
}

/* ── Intro strip ── */
.intro { background: var(--white); padding: 2.5rem 0 1rem; text-align: center; }
.intro .lead {
  font-size: 1.1rem; color: var(--grey);
  max-width: 820px; margin: 0 auto;
}

/* ── Feature cards with circular framed images ── */
.features { padding: 4rem 0 4.5rem; background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}
.feature-card { text-align: center; }

.circle-frame {
  width: 210px; height: 210px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  padding: 7px;
  background: var(--white);
  position: relative;
}
/* Yellow ring + blue arc, echoing the flyer's circular photo frames */
.circle-frame::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--yellow) 0deg 190deg, var(--blue) 190deg 300deg, transparent 300deg 360deg);
}
.circle-frame img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--white);
  display: block;
}
.feature-card h3 {
  font-size: 1.2rem; color: var(--blue);
  text-transform: uppercase; margin-bottom: .5rem;
}
.feature-card p { color: var(--grey); font-size: .96rem; }

/* ── About ── */
.about { padding: 4.5rem 0; background: var(--blue-tint); }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
}
.about p { color: var(--grey); margin-bottom: 1rem; }
.about .years {
  display: inline-block;
  background: var(--blue); color: var(--white);
  font-weight: 800; font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem 1.1rem; border-radius: 50px; margin-bottom: 1rem;
}
.about-image img {
  width: 100%; max-height: 400px; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  display: block;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  position: relative;
  background: var(--blue);
  background-size: cover; background-position: center;
}
.page-hero-overlay {
  background: linear-gradient(115deg, rgba(14,45,92,.93) 0%, rgba(26,79,156,.84) 100%);
  padding: 4rem 0 5rem;
  text-align: center; color: var(--white);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  text-transform: uppercase; margin-bottom: .5rem;
}
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; }

/* ── Services page ── */
.services-content { padding: 4rem 0; }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; margin-bottom: 3rem;
}
.service-block {
  background: var(--white);
  border: 2px solid var(--grey-light);
  border-top: 6px solid var(--yellow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.service-block h2 {
  color: var(--blue); text-transform: uppercase;
  font-size: 1.3rem; margin-bottom: .3rem;
}
.service-block > p { color: var(--grey); margin-bottom: 1rem; }

/* Multi-column rather than grid: a grid locks items into shared rows, so
   one wrapping item ("Electrical / won't turn on") would stretch its whole
   row and push the column beside it out of alignment. */
.repair-list, .brands-list {
  columns: 2;
  column-gap: 1.5rem;
  margin-bottom: 1.2rem;
}
.repair-list li, .brands-list li {
  padding-left: 1.6em; position: relative;
  font-size: .94rem; font-weight: 600;
  break-inside: avoid;
  margin-bottom: .5rem;
}
.repair-list li::before, .brands-list li::before {
  content: "✓";
  position: absolute; left: 0; top: .1em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: .62rem; font-weight: 900;
  display: grid; place-items: center;
}

.note { font-size: .88rem; color: var(--grey); }
.note strong { color: var(--charcoal); }

.promise-block {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  margin-bottom: 3rem;
  border-left: 8px solid var(--yellow);
}
.promise-block h2 { color: var(--white); text-transform: uppercase; font-size: 1.3rem; margin-bottom: .6rem; }
.promise-block p { color: rgba(255,255,255,.9); margin-bottom: .6rem; }
.promise-block .note { color: rgba(255,255,255,.65); }
.promise-block .note strong { color: rgba(255,255,255,.9); }

.pricing-block { margin-bottom: 1rem; }
.price-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.price-table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 420px; }
.price-table th {
  background: var(--blue); color: var(--white);
  padding: .95rem 1.2rem; text-align: left;
  text-transform: uppercase; font-size: .82rem; letter-spacing: .06em;
}
.price-table td { padding: .8rem 1.2rem; border-bottom: 1px solid var(--grey-light); }
.price-table tbody tr:nth-child(even) td { background: var(--blue-tint); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table td:last-child {
  font-weight: 800; color: var(--blue); white-space: nowrap; text-align: right;
}

.price-note { margin-top: 1rem; }

/* New machines referral card (from flyer) */
.referral-card {
  background: var(--blue-tint);
  border: 2px dashed var(--blue);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-top: 2.5rem;
}
.referral-card h2 { color: var(--blue); text-transform: uppercase; font-size: 1.2rem; margin-bottom: .4rem; }
.referral-card p { color: var(--grey); margin-bottom: .5rem; }
.referral-list { display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-weight: 700; }

/* On narrow screens the price table stops being a scrollable table and
   becomes stacked rows — a sideways-scrolling table hides the prices. */
@media (max-width: 620px) {
  .price-table-wrap { overflow-x: visible; }
  .price-table { min-width: 0; }
  .price-table thead, .price-table tbody, .price-table tr, .price-table th, .price-table td {
    display: block; width: 100%;
  }
  .price-table thead tr, .price-table tbody tr {
    display: flex; align-items: baseline;
    justify-content: space-between; gap: 1rem;
    padding: .75rem 1rem;
  }
  .price-table thead tr { background: var(--blue); }
  .price-table th, .price-table td {
    width: auto; padding: 0; border: none; background: none;
  }
  .price-table th:last-child { text-align: right; }
  .price-table td:first-child { flex: 1 1 auto; }
  .price-table td:last-child { flex: 0 0 auto; text-align: right; }
  .price-table tbody tr { border-bottom: 1px solid var(--grey-light); }
  .price-table tbody tr:nth-child(even) { background: var(--blue-tint); }
  .price-table tbody tr:last-child { border-bottom: none; }
}

/* ── CTA strip ── */
.cta-strip {
  background: var(--blue); color: var(--white);
  padding: 3rem 0; text-align: center;
  border-top: 6px solid var(--yellow);
}
.cta-strip h2 { text-transform: uppercase; font-size: clamp(1.4rem,3vw,2rem); margin-bottom: .4rem; }
.cta-strip p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Contact page ── */
.contact-content { padding: 4rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }

.contact-details h2 {
  color: var(--blue); text-transform: uppercase;
  font-size: 1rem; margin: 1.6rem 0 .3rem;
  letter-spacing: .04em;
}
.contact-details h2:first-of-type { margin-top: 0; }
.contact-details address { font-style: normal; color: var(--grey); line-height: 1.8; }
.contact-details p { color: var(--grey); }
.contact-details a { font-weight: 700; }

.contact-form-wrap {
  background: var(--blue-tint);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-top: 6px solid var(--yellow);
}
.contact-form-wrap h2 { color: var(--blue); text-transform: uppercase; font-size: 1.3rem; margin-bottom: 1.25rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { font-size: .85rem; font-weight: 700; margin-bottom: -.55rem; text-transform: uppercase; letter-spacing: .03em; }
.contact-form label span { color: var(--blue); }
.contact-form input, .contact-form textarea {
  padding: .75rem 1rem;
  border: 2px solid var(--grey-light);
  border-radius: var(--radius);
  font-size: 1rem; font-family: inherit; color: var(--charcoal);
  background: var(--white);
  width: 100%; transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form textarea { resize: vertical; }
.checkbox-label {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 600 !important; font-size: .9rem;
  text-transform: none !important; letter-spacing: 0 !important;
  cursor: pointer; margin-bottom: -.3rem;
}
.checkbox-label input { width: auto; }
.contact-form .btn { align-self: flex-start; margin-top: .3rem; }

/* ── Thank-you page ── */
.thanks { padding: 3.5rem 0 4.5rem; }
.thanks-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--blue-tint);
  border-radius: var(--radius-lg);
  border-top: 6px solid var(--yellow);
  padding: 2.5rem 2rem;
}
.thanks-tick {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 900;
  margin: 0 auto 1.25rem;
  box-shadow: 0 6px 18px rgba(26,79,156,.3);
}
.thanks-card p { color: var(--grey); margin-bottom: .8rem; }
.thanks .cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer { background: var(--blue-deep); color: rgba(255,255,255,.72); padding: 3.5rem 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 2.5rem;
}
.footer-logo { background: var(--white); border-radius: var(--radius); padding: .8rem 1rem; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { height: 62px; width: auto; display: block; }
.footer-col strong {
  display: block; color: var(--white);
  margin-bottom: .7rem; font-size: .88rem;
  text-transform: uppercase; letter-spacing: .09em;
}
.footer-col strong::after {
  content: ""; display: block;
  width: 34px; height: 3px; background: var(--yellow);
  border-radius: 2px; margin-top: .45rem;
}
.footer-col p { font-size: .92rem; line-height: 1.85; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .92rem; }
.footer-col a:hover { color: var(--yellow); }
.footer-col ul { display: flex; flex-direction: column; gap: .35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.13);
  padding: 1.1rem 1.5rem; text-align: center; font-size: .85rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* A three-row sticky header would eat too much of a phone screen */
  header { position: static; }
  /* Stack the header centred: wordmark, then nav, then the phone CTA */
  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .7rem;
    padding-top: .9rem;
    padding-bottom: .95rem;
  }
  .logo { order: 1; }
  /* Trailing letter-space would otherwise throw the centring off */
  .logo-text .l2 { margin-right: -.2em; }
  nav {
    order: 2; margin-left: 0; width: 100%;
    border-top: 1px solid var(--grey-light);
    padding-top: .7rem;
  }
  nav ul { justify-content: center; flex-wrap: wrap; gap: .3rem; }
  /* Comfortable touch targets — 44px is the accessible minimum */
  nav a {
    display: flex; align-items: center; min-height: 42px;
    padding: .3rem 1rem; font-size: .88rem;
  }
  .cta-phone {
    order: 3; margin-left: 0;
    font-size: .95rem; padding: .5rem 1.7rem;
    min-height: 44px;
  }
  .hero-overlay { padding: 3.5rem 0 5rem; }
  .swoosh svg { height: 45px; }
  /* Centred badge above the left-aligned hero copy */
  .hero-kicker { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
  /* Centre the company logo in the footer */
  .footer-logo { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; text-align: center; }
  .brand-mark img { max-width: 330px; }
}

@media (max-width: 560px) {
  /* Sides only — the padding shorthand here would reset the vertical
     padding set on .header-inner above, closing up the gap under the
     phone button. */
  .container { padding-left: 1.1rem; padding-right: 1.1rem; }
  .repair-list, .brands-list { columns: 1; }
  .promise-block { padding: 1.5rem; }
  .service-block, .contact-form-wrap, .referral-card { padding: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .circle-frame { width: 175px; height: 175px; }
  .referral-list { flex-direction: column; gap: .45rem; }
  .contact-form .btn { align-self: stretch; text-align: center; }
}

/* Very narrow phones — let the wordmark wrap rather than overflow */
@media (max-width: 380px) {
  .logo-text .l1 { white-space: normal; line-height: 1.05; }
  .cta-phone { font-size: .82rem; padding: .45rem .8rem; }
  .brand-mark img { max-width: 260px; }
}
