/* ============================================
   Peak Home Solutions — Contractor Demo
   Palette: Navy, Orange, White
============================================ */

:root {
  --navy: #0f1f3d;
  --navy-mid: #1a3260;
  --navy-light: #243f78;
  --orange: #e8610a;
  --orange-light: #f07030;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-100: #eef0f4;
  --gray-300: #cdd2dc;
  --gray-500: #7a8499;
  --gray-700: #3d4559;
  --text: #1a1f2e;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(15,31,61,0.10);
  --shadow-lg: 0 12px 48px rgba(15,31,61,0.16);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

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

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.15); color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-full { width: 100%; justify-content: center; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); border-bottom: 1px solid var(--navy-mid);
  padding: 0 24px;
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}
.nav-logo {
  font-size: 20px; font-weight: 800; color: var(--white);
  text-decoration: none; letter-spacing: -0.5px; margin-right: auto;
}
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }

/* HERO */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1e3a6e 100%);
  min-height: 620px;
  display: flex; align-items: center;
  padding: 80px 24px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-overlay { display: none; }
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge {
  display: inline-block;
  background: rgba(232,97,10,0.2); color: var(--orange-light);
  border: 1px solid rgba(232,97,10,0.3);
  padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.3px;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 68px); font-weight: 800;
  color: var(--white); line-height: 1.05; margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 32px; max-width: 520px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.12); }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--white); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* SECTION HEADERS */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--gray-500); max-width: 560px; margin: 0 auto; }

/* SERVICES */
.services { padding: 96px 0; background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.service-card {
  background: var(--off-white); border-radius: 14px;
  padding: 32px 28px; border: 1.5px solid var(--gray-100);
  transition: all 0.25s;
}
.service-card:hover { border-color: var(--orange); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-icon { font-size: 36px; margin-bottom: 16px; }
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; line-height: 1.6; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.service-card ul li {
  font-size: 13px; color: var(--gray-700);
  padding-left: 16px; position: relative;
}
.service-card ul li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--orange); font-size: 11px;
}

/* WHY US */
.why-us { padding: 96px 0; background: var(--navy); }
.why-us .section-label { color: var(--orange); }
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-text h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--white); margin-bottom: 16px; letter-spacing: -0.5px; }
.why-text p { color: rgba(255,255,255,0.65); font-size: 16px; margin-bottom: 32px; }
.why-points { display: flex; flex-direction: column; gap: 24px; }
.why-point { display: flex; gap: 16px; align-items: flex-start; }
.why-check {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: white; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.why-point strong { display: block; color: var(--white); font-size: 15px; margin-bottom: 4px; }
.why-point p { color: rgba(255,255,255,0.55); font-size: 13px; margin: 0; }
.why-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 28px 20px; text-align: center;
}
.why-card.accent { background: var(--orange); border-color: var(--orange); }
.why-card-num { font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.why-card-label { font-size: 12px; color: rgba(255,255,255,0.65); }

/* GALLERY */
.gallery { padding: 96px 0; background: var(--off-white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 16px;
}
.gallery-item {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  border-radius: 12px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  transition: transform 0.25s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,31,61,0.7) 0%, transparent 60%);
}
.gallery-label {
  position: relative; z-index: 1;
  padding: 12px 16px; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* CONTACT */
.contact { padding: 96px 0; background: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-text .section-label { color: var(--orange); }
.contact-text h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }
.contact-text p { color: var(--gray-500); font-size: 16px; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.contact-item a { color: var(--orange); text-decoration: none; font-weight: 600; }
.contact-form {
  background: var(--off-white); border-radius: 16px;
  padding: 36px 32px; border: 1.5px solid var(--gray-100);
}
.contact-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px; border-radius: 8px;
  border: 1.5px solid var(--gray-300); font-size: 14px;
  font-family: inherit; background: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--orange); }
.form-group textarea { height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* FOOTER */
.footer { background: var(--navy); padding: 32px 24px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-logo { font-size: 20px; font-weight: 800; color: var(--white); }
.footer-logo span { color: var(--orange); }
.footer p { color: rgba(255,255,255,0.45); font-size: 13px; }
.footer-demo { margin-top: 4px; font-size: 12px; }
.footer-demo a { color: var(--orange); text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 60px 24px; }
  .hero-stats { gap: 24px; }
  .why-inner { grid-template-columns: 1fr; }
  .why-visual { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 2; }
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
