/* HAND-E Handy Man Services — shared styles */

:root {
  --blue: #3d74c6;
  --blue-dark: #2c5aa0;
  --red: #d3222a;
  --ink: #1c1c1c;
  --grey: #5c6570;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(28, 40, 60, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: var(--blue); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 10px rgba(28, 40, 60, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.brand .brand-main {
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--blue);
}

.brand .brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
}

.site-nav a:hover { background: var(--bg-soft); color: var(--blue-dark); }

.site-nav a.active { background: var(--blue); color: #fff; }

.site-nav a.nav-cta {
  background: var(--red);
  color: #fff;
}

.site-nav a.nav-cta:hover { background: #b31b22; color: #fff; }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 900px 500px at 85% 20%, rgba(61, 116, 198, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-soft) 0%, #ffffff 100%);
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 8px;
  font-weight: 800;
}

.hero h1 .accent { color: var(--blue); font-style: italic; }

.hero .tagline {
  font-size: 1.15rem;
  color: var(--grey);
  margin: 0 0 28px;
}

.hero-logo img {
  max-height: 400px;
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(28, 40, 60, 0.14);
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(28, 40, 60, 0.18); }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(211, 34, 42, 0.30); }
.btn-primary:hover { background: #b31b22; }

.btn-secondary { background: #fff; color: var(--blue-dark); border-color: var(--blue); }
.btn-secondary:hover { background: var(--bg-soft); }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-soft); }

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 6px;
}

.section-title .accent { color: var(--blue); font-style: italic; }

.section-intro { color: var(--grey); margin: 0 0 34px; max-width: 640px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  border-top: 4px solid var(--blue);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(28, 40, 60, 0.16);
}

.card.red { border-top-color: var(--red); }

.card h3 { margin: 0 0 8px; font-size: 1.1rem; }

.card p { margin: 0; color: var(--grey); font-size: 0.95rem; }

.card .icon { font-size: 1.8rem; margin-bottom: 10px; }

/* Work gallery */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.work-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.work-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(28, 40, 60, 0.16);
}

.work-item { position: relative; }

.work-gallery {
  display: flex;
  aspect-ratio: 4 / 3;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: #e3e9f2;
}

.work-gallery::-webkit-scrollbar { display: none; }

.work-gallery img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}

.photo-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(20, 24, 30, 0.62);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  pointer-events: none;
}

.work-item .work-caption { padding: 16px 18px; }

.work-item h3 { margin: 0 0 4px; font-size: 1.02rem; }

.work-item p { margin: 0; color: var(--grey); font-size: 0.9rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-details p { margin: 0 0 14px; }

.contact-details .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}

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

form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ccd5e0;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(61, 116, 198, 0.15);
}

form button {
  border: none;
  cursor: pointer;
}

/* Strip banner */
.strip {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 34px 20px;
}

.strip h2 { margin: 0 0 6px; font-size: 1.4rem; font-weight: 800; font-style: italic; }

.strip p { margin: 0 0 18px; opacity: 0.9; }

.strip .btn-primary { background: var(--red); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cdd3da;
  padding: 30px 0;
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-brand { font-weight: 800; font-style: italic; color: #fff; font-size: 1.05rem; }
.footer-brand .red { color: #ff6b6b; }

/* Responsive */
@media (max-width: 780px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-logo { order: -1; }
  .hero-logo img { max-height: 300px; }
  .nav-bar { flex-direction: column; align-items: flex-start; }
}
