/* ================================================
   Pawtucket Kitchen Remodel — Stylesheet
   ================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1f2937;
  line-height: 1.7;
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* --- Header & Nav --- */
header {
  background: #1a3a5c;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 1rem;
}
.nav-logo a {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.nav-menu > li > a {
  color: #e2e8f0;
  font-size: 0.875rem;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  display: block;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-menu > li > a:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a3a5c;
  border-top: 2px solid #2563eb;
  min-width: 230px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s, color 0.15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Phone in nav */
.nav-phone a {
  background: #2563eb;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}
.nav-phone a:hover { background: #1d4ed8; text-decoration: none; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; text-decoration: none; color: #fff; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-secondary:hover { border-color: #fff; text-decoration: none; color: #fff; }

/* --- Hero (homepage) --- */
.hero {
  background: linear-gradient(135deg, #1a3a5c 0%, #0c2340 100%);
  color: #fff;
  padding: 5rem 0;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  max-width: 780px;
}
.hero .hero-sub {
  font-size: 1.125rem;
  color: #93c5fd;
  margin-bottom: 1.25rem;
  max-width: 600px;
}
.hero .hero-body {
  font-size: 1rem;
  color: #e2e8f0;
  max-width: 700px;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.cta-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- Page Hero (interior pages) --- */
.page-hero {
  background: linear-gradient(135deg, #1a3a5c 0%, #0c2340 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  max-width: 780px;
}
.page-hero .sub {
  font-size: 1.1rem;
  color: #93c5fd;
  max-width: 640px;
}

/* --- Typography --- */
h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: #1a3a5c;
  line-height: 1.3;
  margin-bottom: 0.875rem;
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}
p { margin-bottom: 1rem; color: #374151; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.1rem; color: #374151; margin-bottom: 1.5rem; }

/* --- Sections --- */
section { padding: 4rem 0; }
.section-alt { background: #f8fafc; }
.section-dark { background: #1a3a5c; color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark p { color: #e2e8f0; }

/* --- Content body (interior pages) --- */
.content-body { padding: 3.5rem 0; }
.content-body h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.content-body h2:first-child { margin-top: 0; }
.content-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.content-body ul li { margin-bottom: 0.4rem; color: #374151; }
.content-body p strong { color: #1a3a5c; }
.content-body .section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2563eb;
  margin-bottom: 0.25rem;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.service-card:hover { border-color: #2563eb; box-shadow: 0 4px 16px rgba(37,99,235,0.1); }
.service-card h3 { color: #1a3a5c; font-size: 1rem; }
.service-card p { font-size: 0.9rem; margin-bottom: 0.75rem; }
.service-card a { font-size: 0.875rem; font-weight: 600; }

/* --- Reasons (3 reasons) --- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.reason-card {
  padding: 1.5rem;
  background: #fff;
  border-left: 4px solid #2563eb;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.reason-card h3 { color: #1a3a5c; font-size: 1rem; }

/* --- Service Areas List --- */
.areas-list { margin-top: 1.5rem; }
.area-item { padding: 1.5rem 0; border-bottom: 1px solid #e5e7eb; }
.area-item:last-child { border-bottom: none; }
.area-item h3 { color: #1a3a5c; margin-bottom: 0.3rem; }
.area-item p { margin-bottom: 0.5rem; font-size: 0.925rem; }
.area-item a { font-weight: 600; font-size: 0.875rem; }

/* --- CTA Section --- */
.cta-section {
  background: #1a3a5c;
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-section p { color: #93c5fd; max-width: 540px; margin: 0 auto 1.5rem; }
.phone-cta {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}
.phone-cta:hover { color: #93c5fd; text-decoration: none; }

/* --- Forms --- */
.form-section { padding: 3.5rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 0.75rem; }
.contact-phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a3a5c;
  text-decoration: none;
  display: block;
  margin-bottom: 1.25rem;
}
.contact-phone:hover { color: #2563eb; text-decoration: none; }
.contact-detail { font-size: 0.875rem; color: #6b7280; margin-bottom: 0.35rem; }

.form-group { margin-bottom: 0.875rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.925rem;
  color: #1f2937;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.btn-submit {
  background: #2563eb;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
  margin-top: 0.25rem;
}
.btn-submit:hover { background: #1d4ed8; }

/* Inline form (bottom of service pages) */
.inline-form-wrap { background: #f8fafc; padding: 3rem 0; }
.inline-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 2rem;
  max-width: 580px;
  margin: 0 auto;
}
.inline-form h3 { color: #1a3a5c; margin-bottom: 1.25rem; font-size: 1.25rem; }

/* --- Location page specifics --- */
.location-body { padding: 3.5rem 0; }
.location-services {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.location-services h3 { color: #1a3a5c; margin-bottom: 0.75rem; }
.location-services ul { list-style: disc; padding-left: 1.25rem; }
.location-services ul li { margin-bottom: 0.35rem; font-size: 0.925rem; color: #374151; }

/* --- Footer --- */
footer { background: #0c2340; color: #94a3b8; padding: 3rem 0 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.footer-col p { font-size: 0.85rem; line-height: 1.6; color: #94a3b8; margin-bottom: 0; }
.footer-brand-phone { color: #e2e8f0; font-weight: 700; font-size: 0.95rem; display: block; margin-top: 0.6rem; text-decoration: none; }
.footer-brand-phone:hover { color: #fff; text-decoration: none; }
.footer-col ul li { margin-bottom: 0.35rem; }
.footer-col ul li a { color: #94a3b8; font-size: 0.85rem; text-decoration: none; transition: color 0.15s; }
.footer-col ul li a:hover { color: #e2e8f0; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.footer-bottom a { color: #64748b; text-decoration: none; }
.footer-bottom a:hover { color: #94a3b8; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-phone { display: none; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #1a3a5c;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    gap: 0;
    justify-content: flex-start;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 0.75rem 1.25rem; font-size: 0.95rem; }
  .has-dropdown .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border-top: none;
    background: rgba(0,0,0,0.18);
    padding-left: 0.5rem;
    min-width: auto;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown li a { padding: 0.55rem 1.5rem; }
  .hero { padding: 3rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .cta-group { flex-direction: column; }
  .cta-group .btn { text-align: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .reasons-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
