/* Kay Waterproofing - Main Stylesheet */
:root {
  --navy: #0f2350;
  --navy-dark: #091736;
  --navy-light: #1a3675;
  --accent: #c9a55a;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f4;
  --gray-200: #d9dde4;
  --gray-400: #8c93a3;
  --gray-600: #51596b;
  --gray-800: #2a2f3a;
  --white: #ffffff;
  --max-width: 1140px;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(15, 35, 80, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-light); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.topbar {
  background: var(--navy-dark);
  color: var(--gray-100);
  font-size: .85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--gray-100); }
.topbar a:hover { color: var(--white); }

/* Header / Nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.brand-tag { font-size: .75rem; color: var(--gray-600); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  margin: 4px 0;
}
.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--navy);
  font-weight: 500;
  border-radius: var(--radius);
}
.main-nav a:hover { background: var(--gray-100); text-decoration: none; }
.main-nav a.active { background: var(--navy); color: var(--white); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--gray-100); color: var(--navy); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(rgba(9, 23, 54, .78), rgba(9, 23, 54, .65)), url('../images/hero-waterproofing.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 80px 0 80px;
}
.hero h1 { color: var(--white); font-size: 2.6rem; max-width: 720px; }
.hero p.lead { font-size: 1.15rem; max-width: 640px; color: var(--gray-100); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 50px;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: var(--gray-100); margin: 0; max-width: 720px; }

/* Section base */
section { padding: 60px 0; }
section.alt { background: var(--gray-50); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-title h2 { font-size: 1.9rem; }
.section-title p { color: var(--gray-600); }

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; color: var(--navy); }
.card p { color: var(--gray-600); margin-bottom: 0; }

.service-card img {
  border-radius: var(--radius);
  margin-bottom: 14px;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Why us */
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
}
.why-list li {
  position: relative;
  padding-left: 30px;
  color: var(--gray-800);
}
.why-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  background: var(--navy);
  clip-path: polygon(15% 50%, 0 65%, 40% 100%, 100% 20%, 85% 5%, 40% 70%);
}

/* Service area */
.area-box {
  background: var(--white);
  border-left: 4px solid var(--navy);
  padding: 24px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.area-box h2 { margin-top: 0; }

/* Service detail (services page) */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 60px;
}
.service-block:last-child { margin-bottom: 0; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-block img {
  border-radius: var(--radius);
  width: 100%;
  height: 320px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.service-block h2 { font-size: 1.5rem; margin-top: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.info-block {
  background: var(--gray-50);
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.info-block h2 { margin-top: 0; font-size: 1.3rem; }
.info-list { list-style: none; padding: 0; margin: 0 0 1em; }
.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}
.info-list li:last-child { border-bottom: none; }
.info-list .label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray-600);
  letter-spacing: .5px;
  margin-bottom: 2px;
}
.info-list .value { color: var(--gray-800); }

/* Form */
form .field { margin-bottom: 16px; }
form label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
form input, form textarea, form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 35, 80, .1);
}
form textarea { resize: vertical; min-height: 130px; }
.form-status { margin-top: 12px; font-size: .9rem; }
.form-status.success { color: #1b6b3a; }

.map-wrap {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* CTA strip */
.cta-strip {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
}
.cta-strip h2 { color: var(--white); margin-bottom: 8px; }
.cta-strip p { color: var(--gray-100); margin-bottom: 22px; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: var(--gray-100);
  padding: 40px 0 20px;
  font-size: .92rem;
}
.site-footer h4 { color: var(--white); margin-bottom: 12px; font-size: 1rem; }
.site-footer a { color: var(--gray-100); }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.copyright {
  text-align: center;
  padding-top: 18px;
  font-size: .85rem;
  color: var(--gray-200);
}

/* Responsive */
@media (max-width: 880px) {
  h1 { font-size: 1.8rem; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 18px; }
  .service-block img { height: 220px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    padding: 10px 20px 16px;
    gap: 0;
  }
  .main-nav a {
    padding: 12px 14px;
    border-bottom: 1px solid var(--gray-100);
  }
}
