/* ============================================
   Platform Plumbing Limited — Stylesheet
   Mobile-first, 375px canonical
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2744;
  --navy-light: #243557;
  --blue: #2d5f8a;
  --copper: #c4875e;
  --copper-light: #d9a77e;
  --warm-white: #f7f4ef;
  --cream: #ede8e0;
  --text: #2a2a2a;
  --text-light: #5a5a5a;
  --white: #ffffff;
  --radius: 4px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--copper-light); }

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: 2rem; margin-bottom: 0.5em; }
h2 { font-size: 1.6rem; margin-bottom: 0.5em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 39, 68, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 10px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-logo span {
  color: var(--copper);
}

/* Desktop nav — hidden on mobile */
.nav-links {
  display: none;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--copper-light); }

.nav-phone {
  display: none;
  color: var(--copper);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 999;
  padding: 80px 30px 30px;
  flex-direction: column;
  gap: 0;
}

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

.mobile-menu a {
  display: block;
  color: var(--white);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu a:hover { color: var(--copper); }

.mobile-menu .mobile-phone {
  margin-top: auto;
  padding-top: 30px;
}

.mobile-menu .mobile-phone a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--copper);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 16px 28px;
  border-radius: var(--radius);
  border: none;
  text-align: center;
  justify-content: center;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 39, 68, 0.15) 0%,
    rgba(26, 39, 68, 0.4) 40%,
    rgba(26, 39, 68, 0.92) 58%,
    var(--navy) 70%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px 50px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  font-size: 2.1rem;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 .accent { color: var(--copper); }

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--copper);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  min-height: 52px;
  text-align: center;
}

.btn-primary:hover { background: var(--copper-light); color: var(--white); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 32px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 52px;
  text-align: center;
}

.btn-secondary:hover { border-color: var(--copper); color: var(--copper); }

/* --- Sections --- */
.section {
  padding: 60px 0;
}

.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--warm { background: var(--warm-white); }

.section-header {
  margin-bottom: 40px;
}

.section-header .eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
}

.section-header h2 {
  max-width: 600px;
}

.section-header p {
  margin-top: 12px;
  color: var(--text-light);
  max-width: 550px;
}

.section--navy .section-header p { color: rgba(255,255,255,0.7); }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: 6px;
  border-left: 3px solid var(--copper);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Image Grid --- */
.image-text-block {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.image-text-block img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.image-text-block .text-content h2 {
  margin-bottom: 16px;
}

.image-text-block .text-content p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.image-text-block .text-content p:last-child { margin-bottom: 0; }

/* --- Why Us / Features --- */
.features-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--copper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-text h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-text p {
  color: var(--text-light);
  font-size: 0.93rem;
}

/* --- CTA Band --- */
.cta-band {
  padding: 50px 0;
  background: var(--navy);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  font-size: 1rem;
}

.cta-band .btn-primary { font-size: 1.1rem; padding: 18px 36px; }

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-detail .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--copper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail .icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
}

.contact-detail h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin-bottom: 2px;
}

.contact-detail p, .contact-detail a {
  font-size: 1rem;
  color: var(--text);
}

.contact-detail a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
}

/* --- Contact Form --- */
.contact-form {
  background: var(--warm-white);
  padding: 30px 24px;
  border-radius: 6px;
}

.contact-form h3 {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #d4d0c8;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--copper);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  background: var(--copper);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  min-height: 52px;
}

.form-submit:hover { background: var(--copper-light); }

.form-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 120px 0 50px;
  background: var(--navy);
  color: var(--white);
}

.page-header .eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.2rem;
  max-width: 600px;
}

.page-header p {
  color: rgba(255,255,255,0.75);
  margin-top: 14px;
  max-width: 550px;
  font-size: 1.05rem;
}

/* --- Services Detail (inner page) --- */
.service-detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid #e8e4dc;
}

.service-detail:last-child { border-bottom: none; }

.service-detail img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.service-detail .detail-text h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-detail .detail-text p {
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.7;
}

.service-detail .detail-text ul {
  list-style: none;
  padding: 0;
}

.service-detail .detail-text ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--text-light);
  font-size: 0.95rem;
}

.service-detail .detail-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 2px;
  background: var(--copper);
}

/* --- About specifics --- */
.about-intro {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-intro img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 20px;
}

.value-card {
  padding: 24px;
  background: var(--white);
  border-radius: 6px;
  border-top: 3px solid var(--copper);
}

.value-card h3 {
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
  display: inline-block;
  padding: 8px 0;
  min-height: 44px;
  line-height: 1.6;
}

.footer-col a:hover { color: var(--copper); }

.footer-col ul {
  list-style: none;
}

.footer-col ul li { margin-bottom: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  padding: 10px 0;
  min-height: 44px;
  display: inline-block;
}
.footer-bottom a:hover { color: var(--copper); }

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

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* --- Gallery row --- */
.gallery-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gallery-row img {
  width: 100%;
  border-radius: 6px;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* ============================================
   Tablet — 768px+
   ============================================ */
@media (min-width: 768px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }

  .section { padding: 80px 0; }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-list {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .image-text-block {
    flex-direction: row;
    align-items: center;
    gap: 50px;
  }

  .image-text-block img {
    width: 50%;
    flex-shrink: 0;
  }

  .image-text-block.reverse { flex-direction: row-reverse; }

  .service-detail {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }

  .service-detail img {
    width: 40%;
    flex-shrink: 0;
  }

  .service-detail.reverse { flex-direction: row-reverse; }

  .about-intro {
    flex-direction: row;
    align-items: flex-start;
    gap: 50px;
  }

  .about-intro img {
    width: 40%;
    flex-shrink: 0;
    aspect-ratio: 3/4;
  }

  .about-values {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .gallery-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-ctas {
    flex-direction: row;
  }
}

/* ============================================
   Desktop — 1024px+
   ============================================ */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }

  .nav-links {
    display: flex;
  }

  .nav-phone { display: block; }

  .hero h1 { font-size: 3.2rem; }

  .hero-content { padding-bottom: 80px; }

  .hero-image { height: 65%; }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(26, 39, 68, 0.1) 0%,
      rgba(26, 39, 68, 0.3) 40%,
      rgba(26, 39, 68, 0.88) 60%,
      var(--navy) 72%
    );
  }

  .services-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .page-header h1 { font-size: 2.8rem; }

  .contact-form { padding: 40px 36px; }

  .gallery-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ============================================
   Large desktop — 1440px+
   ============================================ */
@media (min-width: 1440px) {
  .container { padding: 0 40px; }
  .hero h1 { font-size: 3.6rem; }
}
