/* ==========================================================================
   Persis Plumbing Ltd. — modern, responsive stylesheet
   ========================================================================== */

:root {
  --navy: #16306b;
  --blue: #1d6fb8;
  --blue-dark: #155a96;
  --light-blue: #e8f1f8;
  --sky: #cedcea;
  --red: #d62828;
  --green: #2f8f3e;
  --ink: #1f2733;
  --muted: #5b6675;
  --line: #d9e2ec;
  --bg: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(22, 48, 107, 0.10);
  --shadow-sm: 0 2px 8px rgba(22, 48, 107, 0.08);
  --max: 1100px;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1.1em;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.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;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Top contact bar
   ========================================================================== */
.topbar {
  background: var(--navy);
  color: #eaf2fb;
  font-size: 0.9rem;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  align-items: center;
  justify-content: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: center;
}

.topbar a {
  color: #eaf2fb;
  font-weight: 600;
}

.topbar strong {
  color: #ffd24d;
}

/* ==========================================================================
   Header / branding
   ========================================================================== */
.site-header {
  background: linear-gradient(180deg, #d7e6f4 0%, #eef5fb 100%);
  border-bottom: 3px solid var(--blue);
}

.brand-banner {
  display: block;
  max-width: 750px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.brand-banner img {
  margin: 0 auto;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 0.25rem;
  cursor: pointer;
}

.nav-toggle .bars {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
}

.nav-toggle .bars::before {
  top: -7px;
}

.nav-toggle .bars::after {
  top: 7px;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-menu a {
  display: block;
  color: #eaf2fb;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1rem 1.1rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background: var(--blue-dark);
  text-decoration: none;
}

.nav-menu a[aria-current="page"] {
  background: var(--blue);
  border-bottom-color: #ffd24d;
  color: #fff;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 2.5rem 0;
}

.hero h1 {
  color: #fff;
}

.hero p {
  font-size: 1.1rem;
  color: #e6f0fa;
  max-width: 60ch;
}

.hero .cta-row {
  margin-top: 0.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-call {
  background: var(--red);
  color: #fff;
}

.btn-call:hover {
  background: #b91c1c;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

/* ==========================================================================
   Main content
   ========================================================================== */
main {
  display: block;
}

.section {
  padding: 2.5rem 0;
}

.section--alt {
  background: var(--light-blue);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.media-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

figure {
  margin: 0;
}

figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.4rem;
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-top: 0;
}

.card .icon {
  font-size: 1.6rem;
  line-height: 1;
}

/* Service lists */
.service-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.service-block h2 {
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-blue);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem 1.5rem;
}

.service-list li {
  position: relative;
  padding-left: 1.6rem;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* Guarantee badge */
.guarantee-hero {
  text-align: center;
}

.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
  margin: 0 auto 1.5rem;
}

.badge .pct {
  font-size: 2.4rem;
  line-height: 1;
}

.badge .lbl {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.phone-big {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 800;
  color: var(--red);
  display: inline-block;
  margin: 0.25rem 0 0.75rem;
}

.phone-big a {
  color: inherit;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-list strong {
  color: var(--navy);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: #c8d6ea;
  padding: 2rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.05rem;
}

.site-footer a {
  color: #cfe0f4;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #9fb6d4;
}

/* ==========================================================================
   Responsive — mobile navigation
   ========================================================================== */
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--navy);
  }

  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-menu a {
    padding: 0.95rem 0.5rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-menu a[aria-current="page"] {
    border-bottom: 0;
    border-left-color: #ffd24d;
  }
}

@media (min-width: 761px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex !important;
  }
}

/* Two-column content on larger screens */
@media (min-width: 720px) {
  .content-grid.two-col {
    grid-template-columns: 1.4fr 1fr;
  }

  .contact-wrap.two-col {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
