/* ===== CUSTOM PROPERTIES ===== */
:root {
  --blue:         #0b29fb;
  --blue-dark:    #0920c8;
  --red:          #ff0321;
  --red-dark:     #cc0019;
  --white:        #ffffff;
  --off-white:    #f5f7ff;
  --text:         #1a1a1a;
  --text-muted:   #555;
  --shadow:       0 2px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.14);
  --radius:       8px;
  --radius-lg:    16px;
  --transition:   0.22s ease;
  --nav-h:        72px;
  --max-w:        1100px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* ===== UTILITY ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none; border: 2px solid transparent;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-red   { background: var(--red);  color: var(--white); border-color: var(--red); }
.btn-red:hover  { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-blue  { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue); }

.section-label {
  display: block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 16px;
}
.section-title--white { color: var(--white); }
.divider {
  width: 48px; height: 4px;
  background: var(--red); border-radius: 2px; margin-bottom: 44px;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* ===== NAVIGATION ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: var(--white);
  transition: box-shadow var(--transition);
}
.site-nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  height: 100%; display: flex;
  align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo img { height: 50px; width: auto; border-radius: 6px; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: 8px 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#nav-menu {
  display: none;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); padding: 20px 24px 28px;
  box-shadow: var(--shadow); flex-direction: column; gap: 20px;
}
#nav-menu.open { display: flex; }

.nav-links { display: flex; flex-direction: column; gap: 14px; }
.nav-links a {
  font-weight: 600; color: var(--text);
  transition: color var(--transition); font-size: 1.05rem;
}
.nav-links a:hover { color: var(--blue); }

.nav-calls { display: flex; flex-direction: column; gap: 10px; }
.nav-calls .btn { justify-content: center; font-size: 0.875rem; padding: 10px 18px; }

/* Desktop nav — override mobile styles above 900px */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  #nav-menu {
    display: flex !important; position: static; box-shadow: none;
    padding: 0; flex-direction: row; align-items: center;
    gap: 28px; background: transparent;
  }
  .nav-links { flex-direction: row; gap: 24px; }
  .nav-calls { flex-direction: row; gap: 10px; }
  .nav-calls .btn { padding: 10px 18px; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(rgba(0,0,0,0.58), rgba(0,0,0,0.58)),
    url('../media/plumber-bathroom-hero.jpg')
    center / cover no-repeat;
  padding: calc(var(--nav-h) + 64px) 24px 72px;
  text-align: center; color: var(--white);
}
.hero-content { max-width: 780px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: var(--red); color: var(--white);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 6px 18px; border-radius: 100px; margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 900; line-height: 1.08; margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-sub { font-size: 1.1rem; opacity: 0.9; margin-bottom: 40px; line-height: 1.7; }
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.hero-ctas .btn { font-size: 1rem; padding: 14px 28px; }

/* ===== SERVICES ===== */
.services { padding: 96px 0; background: var(--white); }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.service-card {
  background: var(--off-white); border-radius: var(--radius-lg);
  padding: 36px 24px; text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
  border: 1px solid transparent;
}
.service-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-5px);
  border-color: rgba(11,41,251,0.08);
}
.service-card .icon {
  width: 60px; height: 60px; background: var(--blue); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
}
.service-card .icon svg {
  width: 28px; height: 28px; fill: none; stroke: var(--white);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--blue); }
.service-card p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ===== WHY US ===== */
.why-us { padding: 96px 0; background: var(--blue); }
.why-us-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trust-card { text-align: center; color: var(--white); }
.trust-card .icon {
  width: 68px; height: 68px; background: rgba(255,255,255,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.trust-card .icon svg {
  width: 32px; height: 32px; fill: none; stroke: var(--white);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.trust-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.trust-card p  { font-size: 0.9rem; opacity: 0.85; }

/* ===== INSTAGRAM ===== */
.instagram { padding: 96px 0; background: var(--off-white); text-align: center; }
.instagram-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  max-width: 660px; margin: 0 auto 32px;
}
.ig-tile {
  aspect-ratio: 1; background: #c5cef7; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--transition);
}
.ig-tile:hover { opacity: 0.8; }
.ig-tile svg {
  width: 36px; height: 36px; fill: none;
  stroke: rgba(11,41,251,0.4); stroke-width: 1.5;
}
.ig-follow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 700; font-size: 1.05rem;
  transition: opacity var(--transition);
}
.ig-follow:hover { opacity: 0.7; }
.ig-follow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ===== CONTACT ===== */
.contact { padding: 96px 0; background: var(--white); }
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start;
}
.contact-info .section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; }
.contact-phones { display: flex; flex-direction: column; gap: 16px; }
.phone-item { display: flex; align-items: flex-start; gap: 14px; }
.phone-item .dot {
  width: 10px; height: 10px; background: var(--red);
  border-radius: 50%; flex-shrink: 0; margin-top: 6px;
}
.phone-item a { font-weight: 700; font-size: 1.1rem; transition: color var(--transition); }
.phone-item a:hover { color: var(--blue); }
.phone-item span { font-size: 0.85rem; color: var(--text-muted); display: block; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; }
.form-group label span[aria-hidden] { color: var(--red); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid #dde1f0; border-radius: var(--radius);
  background: var(--off-white); color: var(--text);
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-group textarea { height: 130px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.form-submit {
  width: 100%; padding: 15px; background: var(--red); color: var(--white);
  font-weight: 700; font-size: 1.05rem; border: none;
  border-radius: var(--radius); cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 4px;
}
.form-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.form-submit:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

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

.form-error-notice {
  color: var(--red-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 14px;
  text-align: center;
  padding: 10px 16px;
  background: #fff0f0;
  border-radius: var(--radius);
  border: 1px solid rgba(204,0,25,0.2);
}

.form-success {
  text-align: center; padding: 56px 24px;
}
.form-success svg {
  width: 56px; height: 56px; stroke: #22c55e; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  margin: 0 auto 20px;
}
.form-success h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.form-success p  { color: var(--text-muted); font-size: 1.05rem; }

/* ===== FOOTER ===== */
.site-footer { background: #0f1520; color: rgba(255,255,255,0.72); padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px; margin-bottom: 52px;
}
.footer-brand img { height: 58px; width: auto; border-radius: 6px; margin-bottom: 18px; }
.footer-brand p  { font-size: 0.9rem; line-height: 1.75; }

.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--white); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col li a { font-size: 0.9rem; transition: color var(--transition); }
.footer-col li a:hover { color: var(--white); }

.social-links { display: flex; gap: 12px; margin-top: 22px; }
.social-link {
  width: 40px; height: 40px; background: rgba(255,255,255,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.social-link:hover { background: var(--blue); }
.social-link svg { width: 18px; height: 18px; fill: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.85rem;
}
.footer-bottom a:hover { color: var(--white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-us-grid    { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap   { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .services     { padding: 64px 0; }
  .why-us       { padding: 64px 0; }
  .instagram    { padding: 64px 0; }
  .contact      { padding: 64px 0; }
  .site-footer  { padding: 48px 0 24px; }

  .services-grid  { grid-template-columns: 1fr; }
  .why-us-grid    { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-bottom  { flex-direction: column; text-align: center; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 300px; justify-content: center; }
}
