/* Arianna Pump - Water Damage Restoration
   Brooklyn, NY
   Color palette: white, navy, gray, muted blue
*/

:root {
  --navy: #0f2447;
  --navy-dark: #091933;
  --muted-blue: #5ba8d9;
  --muted-blue-dark: #3d8fc4;
  --gray-50: #f7f9fc;
  --gray-100: #eef2f7;
  --gray-200: #dde4ee;
  --gray-400: #8a96a8;
  --gray-600: #54627a;
  --gray-800: #2a3447;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 36, 71, 0.08);
  --shadow-md: 0 4px 14px rgba(15, 36, 71, 0.12);
  --radius: 6px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    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(--muted-blue-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--navy);
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1rem; color: var(--gray-600); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top bar */
.topbar {
  background: var(--navy-dark);
  color: var(--gray-100);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar a {
  color: var(--gray-100);
}

.topbar a:hover {
  color: var(--muted-blue);
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.logo:hover { color: var(--navy); }

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-blue);
  font-size: 1.2rem;
}

/* Nav */
.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  color: var(--gray-800);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover, .nav a.active {
  color: var(--navy);
  border-bottom-color: var(--muted-blue);
}

.nav-cta {
  background: var(--muted-blue);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: var(--radius);
  border: none !important;
}

.nav-cta:hover {
  background: var(--muted-blue-dark);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--muted-blue);
  color: var(--white);
  border-color: var(--muted-blue);
}

.btn-primary:hover {
  background: var(--muted-blue-dark);
  border-color: var(--muted-blue-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(rgba(15, 36, 71, 0.78), rgba(15, 36, 71, 0.78)),
    url("../images/hero-water-restoration.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  max-width: 820px;
  margin: 0 auto 1.25rem;
}

.hero p {
  color: var(--gray-100);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page header (non-home) */
.page-header {
  background: linear-gradient(rgba(15, 36, 71, 0.85), rgba(15, 36, 71, 0.85)),
    url("../images/water-cleanup.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--gray-100);
  margin: 0;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-light { background: var(--gray-50); }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  max-width: 640px;
  margin: 0 auto;
}

/* Grids */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card h3 {
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  color: var(--muted-blue-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.card-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-image .card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

/* Two-col content */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Why us */
.why-list {
  list-style: none;
  margin-top: 1rem;
}

.why-list li {
  padding: 0.6rem 0 0.6rem 1.75rem;
  position: relative;
  color: var(--gray-600);
}

.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.55rem;
  color: var(--muted-blue-dark);
  font-weight: 700;
}

/* Service area */
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.area-tag {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Contact block (CTA strip) */
.cta-strip {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
}

.cta-strip h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-strip p {
  color: var(--gray-100);
  margin-bottom: 1.75rem;
}

.cta-strip .btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.cta-strip .btn-primary:hover {
  background: var(--muted-blue);
  color: var(--white);
  border-color: var(--muted-blue);
}

/* Contact info grid */
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.info-item {
  background: var(--white);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.info-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.info-item p, .info-item a {
  color: var(--gray-600);
  margin: 0;
  font-size: 0.95rem;
}

/* Form */
.contact-form {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

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

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-800);
  transition: border-color 0.2s;
}

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

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

.form-message {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-message.success {
  background: #e8f4ec;
  color: #1f6b3d;
  border: 1px solid #c5e3d0;
  display: block;
}

/* Map */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  margin-top: 2rem;
}

.map-wrap iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: var(--gray-100);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-footer p, .site-footer a, .site-footer li {
  color: var(--gray-200);
  font-size: 0.92rem;
  line-height: 1.8;
}

.site-footer a:hover { color: var(--muted-blue); }

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-400);
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--gray-200);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
  .nav-toggle { display: block; }
  .site-header .header-inner { position: relative; }

  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  section { padding: 3rem 0; }
  .topbar .container { justify-content: center; text-align: center; }
}
