/* =========================
   J Montréal Roofing
   Main stylesheet (css/style.css)
   ========================= */

/* ---- Reset / base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #111827;
  background: #f6f7fb;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
}

/* ---- Utilities ---- */
.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.muted {
  color: rgba(17, 24, 39, 0.72);
}

.full {
  width: 100%;
}

.section {
  padding: 28px 0;
}

.section-title {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 14px;
}

/* ---- Header ---- */
.site-header {
  background: #0f1b2d;
  color: #ffffff;
  padding: 16px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand-text h1 {
  font-size: 1.05rem;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.2px;
}

.brand-text p {
  margin: 4px 0 0;
  font-size: 0.92rem;
  opacity: 0.85;
}

.logo {
  max-height: 70px;   /* change to 55px if you want smaller */
  width: auto;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  padding: 6px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav a.active {
  background: rgba(255, 255, 255, 0.14);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition: transform 0.06s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* ---- Hero ---- */
.hero {
  padding: 26px 0 10px;
}

.hero-copy {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

.hero-title {
  font-size: clamp(1.6rem, 3.1vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 10px;
}

.hero-subtitle {
  margin: 0 0 16px;
  color: rgba(17, 24, 39, 0.78);
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.18);
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-media {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  padding: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* ---- Grids ---- */
.grid {
  display: grid;
  gap: 14px;
}

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

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

/* ---- Cards ---- */
.card {
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.card p {
  margin: 0;
  color: rgba(17, 24, 39, 0.74);
}

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  padding: 14px;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 900;
  margin: 0;
}

.stat-label {
  margin: 4px 0 0;
  color: rgba(17, 24, 39, 0.72);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---- Page title ---- */
.page-title {
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 6px 0 8px;
}

/* ---- Services cards ---- */
.service-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.service-card li {
  margin: 6px 0;
  color: rgba(17, 24, 39, 0.78);
}

/* ---- Contact ---- */
.contact-lines p {
  margin: 8px 0;
}

.contact-lines a {
  font-weight: 800;
}

.section-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Forms ---- */
.form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.form label {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: inline-block;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  background: #fff;
  font: inherit;
}

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 3px solid rgba(59, 130, 246, 0.35);
  border-color: rgba(59, 130, 246, 0.55);
}

/* ---- Footer ---- */
.site-footer {
  padding: 18px 0 28px;
  margin-top: 18px;
  color: rgba(17, 24, 39, 0.7);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
  padding-top: 14px;
}

/* ---- WhatsApp floating button ---- */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
}

.wa-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.28);
}

.wa-text {
  font-weight: 900;
  color: rgba(17, 24, 39, 0.82);
  white-space: nowrap;
}

.whatsapp-float:hover {
  filter: brightness(1.03);
}

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

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .brand {
    min-width: auto;
  }
  .logo {
    max-height: 58px;
  }
  .wa-text {
    display: none; /* keep icon only on small screens */
  }
}
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links img {
  width: 22px;
  height: 22px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-links img:hover {
  opacity: 1;
  transform: scale(1.1);
}
