/* =========================
   Bryant Construction Group
   Base + Layout
   ========================= */

:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e5e7eb;

  --brand: #0B2A4A;
  --brand-2: #123B66;

  --card: #ffffff;
  --soft: #f1f5f9;

  --radius: 14px;
  --shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
}

*{ box-sizing:border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

a{ color: inherit; text-decoration:none; }
a:hover{ opacity: .92; }

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

/* =========================
   Buttons
   ========================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .06s ease, opacity .12s ease;
  user-select:none;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--brand);
  color: #fff;
}
.btn-ghost{
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary{
  background: #fff;
  border-color: var(--brand);
  color: var(--brand);
}
.btn-whatsapp{
  background: #25D366;
  color:#fff;
}
.btn-full{ width:100%; }

.btn-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 6px 0;
  color: var(--text);
  font-weight: 600;
}

/* =========================
   Header / Nav
   ========================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  gap:16px;
  padding: 14px 0;
  flex-wrap: wrap; /* mobile safety */
}

.brand{ display:flex; align-items:center; }
.brand-link{ display:flex; align-items:center; gap:10px; }
.logo{
  width: 44px;
  height: 44px;
  object-fit: contain;
}

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

.main-nav a{
  font-weight: 700;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
}
.main-nav a:hover{
  background: var(--soft);
}

/* Dropdown (IMPORTANT FIX: hide menu by default) */
.dropdown{
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
}

.dropbtn-link{
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 10px;
}
.dropbtn-link:hover{ background: var(--soft); }

.dropbtn{
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
  cursor:pointer;
}

/* Hide dropdown content until hover/focus */
.dropdown-content{
  display:none;
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.dropdown-content a{
  display:block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--text);
}
.dropdown-content a:hover{
  background: var(--soft);
}

/* Works on desktop hover AND mobile tap (focus-within) */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content{
  display:block;
}

.header-cta{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap: wrap;
}

/* =========================
   Hero
   ========================= */

.hero-logo-section{
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border-bottom: 1px solid var(--border);
}

.hero-logo-wrap{
  padding: 14px 0;
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-logo{
  width: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(2,6,23,.10));
}

.hero{
  padding: 34px 0 22px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items:start;
}

.hero-copy h1{
  font-size: clamp(32px, 3.2vw, 52px);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.lead{
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 8px;
}

/* Card / Form */
.hero-card .card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card-title{
  margin: 0 0 6px;
  font-size: 26px;
}
.card-sub{
  margin: 0 0 16px;
  color: var(--muted);
}

.form label{
  display:block;
  font-weight: 700;
  margin: 12px 0 8px;
}

.form input,
.form select,
.form textarea{
  width:100%;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  outline:none;
}

.form input:focus,
.form select:focus,
.form textarea:focus{
  border-color: rgba(11,42,74,.45);
  box-shadow: 0 0 0 4px rgba(11,42,74,.10);
}

/* =========================
   Sections + Divider
   ========================= */

.section{ padding: 34px 0; }
.section-alt{ background: #f8fafc; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head h2{
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.01em;
}
.section-head p{
  margin: 0;
  color: var(--muted);
}

.section-spaced{
  margin-bottom: 18px; /* FIX: stops text touching tiles */
}

.section-divider{
  border: none;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

/* =========================
   Grid / Tiles (services)
   ========================= */

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.tile{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 6px 14px rgba(2,6,23,.05);
}

.tile:hover{
  border-color: rgba(11,42,74,.28);
}

/* When tiles are links (service-grid) */
.service-grid .tile{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  text-align:center;
  min-height: 86px;
}

/* =========================
   Split layouts
   ========================= */

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* =========================
   Footer
   ========================= */

.site-footer{
  background: #0b1220;
  color: #e5e7eb;
  padding: 24px 0 14px;
}

.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-contact a{
  color:#e5e7eb;
  font-weight: 700;
  line-height: 1.8;
  text-decoration: none;
}

.footer-socials{
  display:flex;
  gap: 12px;
  margin-top: 12px;
}

/* SOCIAL ICON BUTTONS */
.footer-socials a{
  width: 44px;
  height: 44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: #0B2A4A;
  border: none;
  transition: background-color .2s ease, transform .2s ease;
}

.footer-socials a:hover{
  background: #123b63;
  transform: translateY(-2px);
}

/* SVG ICON FIX (THIS SOLVES BLANK ICONS) */
.footer-socials svg{
  width: 20px;
  height: 20px;
  display: block;
}

.footer-socials svg path,
.footer-socials svg circle{
  fill: #ffffff;
}

.footer-bottom{
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 12px;
  opacity: .92;
}

/* =========================
   Mobile fixes
   ========================= */

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split{ grid-template-columns: 1fr; }

  .header-inner{ gap: 10px; }
  .main-nav{ width: 100%; }
  .header-cta{ width: 100%; margin-left: 0; }
  .header-cta .btn{ flex: 1; }

  .dropdown-content{
    position: absolute;
    left: 0;
    right: auto;
  }
}

@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
  .main-nav a{ padding: 8px 8px; }
  .hero-actions .btn{ width: 100%; }
}
