/* ============================================
   JSB Property Maintenance — Main Stylesheet
   ============================================ */

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

:root {
  --navy:    #0a1628;
  --blue:    #1a3a6b;
  --accent:  #2b9ed4;
  --light-blue: #e8f4fb;
  --white:   #ffffff;
  --gray-50: #f8fafc;
  --gray-100:#f1f5f9;
  --gray-200:#e2e8f0;
  --gray-500:#64748b;
  --gray-700:#334155;
  --gray-900:#0f172a;
  --text:    #1e293b;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', Arial, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #1e85b8;
  border-color: #1e85b8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43,158,212,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; font-size: 1.05rem; padding: 16px; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 12px 0;
}
.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 8px 0;
}
.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nav-logo {
  flex-shrink: 0;
  min-width: 0;
}
.nav-logo img {
  height: 130px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-links a {
  color: var(--white);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}
.nav-links .nav-cta:hover {
  background: #1e85b8;
  color: var(--white);
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.82) 0%, rgba(26,58,107,0.70) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  color: var(--white);
  max-width: 720px;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  line-height: 1.1;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.hero-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-features i { color: var(--accent); font-size: 1rem; }

/* ── SECTION COMMON ── */
section { padding: 90px 0; }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header.light h2,
.section-header.light p { color: var(--white); }
.section-header.light .section-label { color: var(--accent); }
.section-label {
  display: inline-block;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0 auto;
}

/* ── SERVICES ── */
.services { background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card.featured {
  border: 2px solid var(--accent);
}
.service-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--accent);
  color: var(--white);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}
.service-icon {
  padding: 24px 24px 0;
  font-size: 2rem;
  color: var(--accent);
}
.service-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-top: 16px;
  border-radius: 8px;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-img-placeholder {
  width: 100%;
  height: 200px;
  background: var(--light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 16px;
}
.service-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--navy);
  padding: 20px 24px 8px;
}
.service-card p {
  font-size: 0.93rem;
  color: var(--gray-500);
  padding: 0 24px;
  line-height: 1.65;
}
.service-list {
  padding: 16px 24px 24px;
  margin-top: auto;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.service-list i { color: var(--accent); font-size: 0.8rem; }

/* ── WHY US ── */
.why-us {
  background: var(--navy);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: background 0.3s, transform 0.3s;
}
.why-card:hover {
  background: rgba(43,158,212,0.15);
  transform: translateY(-4px);
}
.why-icon {
  width: 64px; height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--white);
}
.why-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.why-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

/* ── GALLERY ── */
.gallery { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item.large {
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  min-height: 220px;
}
.gallery-item.large img { min-height: 460px; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── ESTIMATE FORM ── */
.estimate {
  background: var(--gray-50);
}
.estimate-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.estimate-info .section-label { margin-bottom: 10px; }
.estimate-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
}
.estimate-info > p {
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 36px;
}
.contact-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-icon {
  width: 48px; height: 48px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
a.contact-item:hover .contact-icon {
  background: var(--accent);
  color: var(--white);
}
.contact-item strong {
  display: block;
  font-size: 0.85rem;
  font-family: 'Oswald', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
}
.contact-item span {
  font-size: 0.95rem;
  color: var(--gray-500);
}

/* Form styles */
.estimate-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,158,212,0.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; }

/* File upload */
.file-upload-area {
  position: relative;
  border: 2px dashed var(--gray-200);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-upload-area:hover,
.file-upload-area.drag-over {
  border-color: var(--accent);
  background: var(--light-blue);
}
.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.file-upload-label i {
  font-size: 2rem;
  color: var(--accent);
}
.file-upload-label span {
  font-size: 0.95rem;
  color: var(--gray-700);
  font-weight: 500;
}
.file-upload-label small {
  font-size: 0.8rem;
  color: var(--gray-500);
}
.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  justify-content: center;
}
.file-thumb {
  width: 70px; height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--accent);
}

/* Form status */
#formStatus { margin-top: 14px; text-align: center; font-size: 0.95rem; }
#formStatus.success { color: #16a34a; }
#formStatus.error { color: #dc2626; }

/* ── FOOTER ── */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}
.footer-social {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--accent); color: var(--white); }
.footer-col h4 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-col i { color: var(--accent); font-size: 0.85rem; width: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .estimate-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-features { flex-direction: column; gap: 10px; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item.large { grid-row: span 1; }
  .gallery-item img, .gallery-item.large img { min-height: 240px; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .estimate-form-wrap { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: span 1; }
}

@media (max-width: 480px) {
  .hero-content { padding: 100px 20px 60px; }
  .nav-logo img { height: 100px; }
  .container { padding: 0 16px; }
}
