/* ============================================================
   YorFix brand stylesheet
   Palette: deep navy + steel grey base, vivid orange accent.
   Fonts: Sora (headings) + Inter (body), loaded in index.html.
   ============================================================ */

:root {
  --navy: #0f1b2d;        /* primary brand navy */
  --navy-2: #16273e;      /* raised navy panels */
  --navy-3: #1e3350;      /* lighter navy for hovers */
  --steel: #5a6d84;       /* steel grey, secondary text */
  --ink: #182435;         /* near-navy body text on light */
  --line: #e4e9f0;        /* hairline borders */
  --bg: #f5f7fa;          /* page background */
  --card: #ffffff;
  --orange: #ff6a1a;      /* the YorFix accent */
  --orange-2: #e85a0d;    /* hover/darker orange */
  --yellow: #ffc42e;      /* stars and small highlights */
  --green: #1fa864;       /* success states */
  --red: #d9414c;         /* error states */
  --radius: 18px;
  --pill: 999px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 18px 50px rgba(15, 27, 45, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

section { padding: 72px 0; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; color: var(--navy); }
.section-sub { color: var(--steel); max-width: 640px; margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--pill);
  padding: 14px 28px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 24px rgba(255, 106, 26, 0.35); }
.btn-primary:hover { background: var(--orange-2); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.45); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Emergency banner ---------- */
.emergency {
  background: var(--navy);
  color: #d7deea;
  font-size: 0.88rem;
  text-align: center;
  padding: 9px 16px;
}
.emergency strong { color: var(--yellow); font-weight: 700; }
.emergency a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { border-bottom: 1px solid var(--line); box-shadow: 0 4px 20px rgba(15, 27, 45, 0.06); }
.header-inner { display: flex; align-items: center; gap: 28px; padding: 14px 0; }

.logo { font-size: 1.5rem; font-weight: 800; color: var(--navy); text-decoration: none; }
.logo span { color: var(--orange); }
.logo-tag { display: block; font-family: "Inter", sans-serif; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }

.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); opacity: 0.85; }
.main-nav a:hover { color: var(--orange); opacity: 1; }

.header-cta { display: flex; align-items: center; gap: 12px; }
.phone-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; color: var(--navy); text-decoration: none;
  padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--pill);
}
.phone-chip:hover { border-color: var(--orange); color: var(--orange); }
.phone-chip svg { width: 16px; height: 16px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
  padding: 0;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15, 27, 45, 0.92) 20%, rgba(15, 27, 45, 0.62) 55%, rgba(15, 27, 45, 0.35) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 110px 0 130px; max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--pill); padding: 7px 16px;
  font-size: 0.82rem; font-weight: 600; margin-bottom: 24px;
}
.hero-badge .star { color: var(--yellow); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p.sub { font-size: clamp(1rem, 2vw, 1.2rem); color: #ccd6e4; margin-bottom: 34px; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-dots { position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, 0.35); transition: 0.2s;
}
.hero-dots button.active { background: var(--orange); transform: scale(1.25); }

/* ---------- Trust strip ---------- */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0; }
.trust-items { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; color: var(--navy); }
.trust-item svg { width: 26px; height: 26px; color: var(--orange); flex: none; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 42px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(255, 106, 26, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; color: var(--navy); }
.service-card p { color: var(--steel); font-size: 0.94rem; flex: 1; }
.service-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-weight: 800; color: var(--navy); }
.price small { font-weight: 600; color: var(--steel); font-size: 0.78rem; }

/* ---------- Areas ---------- */
.areas { background: var(--navy); color: #fff; }
.areas .section-title { color: #fff; }
.areas .section-sub { color: #a9b7c9; }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 40px; }
.area-card {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 22px;
}
.area-card svg { width: 22px; height: 22px; color: var(--orange); margin-bottom: 10px; }
.area-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.area-card p { font-size: 0.85rem; color: #a9b7c9; }
.areas-note { margin-top: 26px; font-size: 0.92rem; color: #a9b7c9; }
.areas-note a { color: var(--yellow); }

/* ---------- Trust / badges section ---------- */
.badges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 40px; }
.badge-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center;
}
.badge-card svg { width: 38px; height: 38px; color: var(--orange); margin: 0 auto 14px; }
.badge-card h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 6px; }
.badge-card p { font-size: 0.88rem; color: var(--steel); }

.client-logos { margin-top: 56px; text-align: center; }
.client-logos h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin-bottom: 24px; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; align-items: center; }
.client-logo {
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.05rem;
  color: #9aa8ba; opacity: 0.85; white-space: nowrap;
}

/* ---------- Reviews ---------- */
.reviews { background: #fff; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--navy); color: #fff;
  border-radius: var(--pill); padding: 10px 22px; margin-top: 18px;
  font-weight: 700;
}
.rating-badge .stars { color: var(--yellow); letter-spacing: 2px; }
.carousel { position: relative; margin-top: 44px; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.review-card {
  flex: 0 0 100%;
  padding: 8px;
}
.review-inner {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; max-width: 720px; margin: 0 auto;
}
.review-stars { color: var(--yellow); font-size: 1.1rem; letter-spacing: 3px; margin-bottom: 14px; }
.review-text { font-size: 1.08rem; color: var(--ink); margin-bottom: 18px; }
.review-who { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: "Sora", sans-serif;
}
.review-name { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.review-loc { font-size: 0.82rem; color: var(--steel); }
.carousel-nav { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 26px; }
.carousel-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); transition: 0.15s;
}
.carousel-arrow:hover { border-color: var(--orange); color: var(--orange); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.carousel-dots button.active { background: var(--orange); }

/* ---------- Booking ---------- */
.booking { background: var(--bg); }
.booking-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 44px; margin-top: 40px; align-items: start; }
.booking-side { position: sticky; top: 100px; }
.booking-side ul { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.booking-side li { display: flex; gap: 12px; align-items: flex-start; color: var(--steel); font-size: 0.95rem; }
.booking-side li svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.82rem; font-weight: 700; color: var(--navy); }
.form-field label .req { color: var(--orange); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: "Inter", sans-serif; font-size: 0.95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: #fff; width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.15);
}
.form-field textarea { resize: vertical; min-height: 104px; }
.radio-row { display: flex; gap: 12px; }
.radio-pill { flex: 1; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: block; text-align: center; padding: 12px; border: 1.5px solid var(--line);
  border-radius: 12px; font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: 0.15s;
}
.radio-pill input:checked + span { border-color: var(--orange); background: rgba(255, 106, 26, 0.08); color: var(--orange-2); }
.form-msg { margin-top: 14px; font-size: 0.92rem; font-weight: 600; display: none; }
.form-msg.error { display: block; color: var(--red); }
.form-msg.ok { display: block; color: var(--green); }
.hp-field { position: absolute; left: -5000px; opacity: 0; height: 0; overflow: hidden; }

.confirm-card { text-align: center; padding: 30px 10px; }
.confirm-card .tick {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(31, 168, 100, 0.12);
  color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.confirm-card .tick svg { width: 36px; height: 36px; }
.confirm-card h3 { color: var(--navy); font-size: 1.4rem; margin-bottom: 10px; }
.confirm-card p { color: var(--steel); max-width: 420px; margin: 0 auto 8px; }
.confirm-ref { display: inline-block; margin: 14px 0 22px; background: var(--bg); border: 1px dashed var(--steel); border-radius: 10px; padding: 8px 18px; font-weight: 800; color: var(--navy); letter-spacing: 0.05em; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: "Inter", sans-serif; font-size: 1rem; font-weight: 700; color: var(--navy);
  padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { transition: transform 0.2s; color: var(--orange); flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--steel); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact { background: #fff; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 40px; align-items: start; }
.contact-methods { display: grid; gap: 14px; margin-top: 24px; }
.method {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  text-decoration: none; transition: 0.15s;
}
.method:hover { border-color: var(--orange); transform: translateX(4px); }
.method-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: rgba(255, 106, 26, 0.1); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.method-icon svg { width: 22px; height: 22px; }
.method-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); }
.method-value { font-weight: 700; color: var(--navy); font-size: 0.98rem; }
.hours { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.hours h4 { font-size: 0.9rem; color: var(--navy); margin-bottom: 10px; }
.hours table { width: 100%; font-size: 0.9rem; color: var(--steel); border-collapse: collapse; }
.hours td { padding: 4px 0; }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9b7c9; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; }
.footer-blurb { font-size: 0.9rem; margin: 14px 0 20px; max-width: 300px; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: #cdd7e4; transition: 0.15s;
}
.social-row a:hover { background: var(--orange); color: #fff; }
.social-row svg { width: 17px; height: 17px; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; font-size: 0.9rem; }
.footer-grid ul a { text-decoration: none; }
.footer-grid ul a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.82rem;
}

/* ---------- Floating book button (mobile) ---------- */
.float-book {
  display: none;
  position: fixed; bottom: 18px; left: 16px; right: 16px; z-index: 70;
  box-shadow: 0 12px 34px rgba(232, 90, 13, 0.45);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .booking-layout, .contact-layout { grid-template-columns: 1fr; }
  .booking-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 54px 0; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 10px 20px 18px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--bg); }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .phone-chip .phone-num { display: none; }
  .phone-chip { padding: 10px 12px; }
  .hero { min-height: 560px; }
  .hero-content { padding: 80px 0 110px; }
  .form-grid { grid-template-columns: 1fr; }
  .float-book { display: flex; }
  body { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .carousel-track { transition: none; }
}

/* ---------- Admin page ---------- */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-top { background: var(--navy); color: #fff; padding: 18px 0; }
.admin-top .wrap { display: flex; align-items: center; gap: 18px; }
.admin-top .logo { color: #fff; font-size: 1.2rem; }
.admin-top .spacer { flex: 1; }
.admin-main { padding: 34px 0 80px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat-card .num { font-family: "Sora", sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.stat-card .lbl { font-size: 0.8rem; font-weight: 600; color: var(--steel); text-transform: uppercase; letter-spacing: 0.06em; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.admin-tabs button {
  border: 1.5px solid var(--line); background: #fff; border-radius: var(--pill);
  padding: 9px 20px; font-weight: 700; font-size: 0.9rem; cursor: pointer; color: var(--steel);
}
.admin-tabs button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.admin-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 900px; }
.admin-table th {
  text-align: left; padding: 13px 16px; background: var(--bg);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--steel);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.admin-table td { padding: 13px 16px; border-bottom: 1px solid var(--bg); vertical-align: top; }
.admin-table tr:hover td { background: #fbfcfe; }
.status-select { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 0.84rem; font-weight: 600; }
.status-new { color: var(--orange-2); }
.status-contacted { color: #2563ab; }
.status-scheduled { color: #7c3aed; }
.status-done { color: var(--green); }
.status-cancelled { color: var(--steel); }
.row-del { background: none; border: 0; color: var(--red); cursor: pointer; font-size: 0.84rem; font-weight: 600; }
.admin-login { max-width: 420px; margin: 80px auto; }
.admin-empty { padding: 44px; text-align: center; color: var(--steel); }
.pill-type { display: inline-block; font-size: 0.72rem; font-weight: 700; border-radius: var(--pill); padding: 3px 10px; }
.pill-domestic { background: rgba(31, 168, 100, 0.12); color: var(--green); }
.pill-commercial { background: rgba(37, 99, 171, 0.12); color: #2563ab; }
