/* ============================================================
   FGR GENERAL CONTRACTOR — Main Stylesheet
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1a2233;
  background: #fff;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ---------- Variables ---------- */
:root {
  --navy:   #0d1f3c;
  --blue:   #1a4080;
  --accent: #2e7dea;
  --gold:   #c9a84c;
  --light:  #f4f7fb;
  --muted:  #6b7a99;
  --white:  #ffffff;
  --border: #dde3ef;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(13,31,60,.10);
  --trans:  .25s ease;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; color: #3a4a66; }

/* ---------- Layout ---------- */
.container   { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section     { padding: 5rem 0; }
.section--alt { background: var(--light); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--trans), color var(--trans), border-color var(--trans), box-shadow var(--trans);
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: #1a5ec8; box-shadow: 0 6px 20px rgba(46,125,234,.35); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--white); }

/* ---------- Navigation ---------- */
.navbar { position: sticky; top: 0; z-index: 1000; background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.navbar__brand { display: flex; flex-direction: column; }
.navbar__brand-name { font-size: 1.15rem; font-weight: 800; color: var(--white); letter-spacing: .04em; line-height: 1.1; }
.navbar__brand-tag  { font-size: .65rem; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
.navbar__nav { display: flex; align-items: center; gap: 2rem; }
.navbar__link {
  font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.82);
  transition: color var(--trans); position: relative; padding-bottom: 2px;
}
.navbar__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold); transition: width var(--trans);
}
.navbar__link:hover, .navbar__link.active { color: var(--white); }
.navbar__link:hover::after, .navbar__link.active::after { width: 100%; }
.navbar__cta { margin-left: .5rem; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: space-between;
  width: 26px; height: 18px; cursor: pointer; background: none; border: none; padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--white); border-radius: 2px; transition: transform var(--trans), opacity var(--trans); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white); padding: 7rem 0 6rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .6;
  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='%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/svg%3E") repeat;
}
.hero__inner { position: relative; max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.4);
  color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: .35rem .9rem; border-radius: 50px; margin-bottom: 1.5rem;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero__sub { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 620px; margin-bottom: 2.5rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 3rem; margin-top: 4rem; flex-wrap: wrap; }
.hero__stat-num   { font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero__stat-label { font-size: .8rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }

/* ---------- Section Header ---------- */
.section-header { margin-bottom: 3rem; }
.section-header .eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { color: var(--muted); max-width: 600px; }

/* ---------- Service Cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: box-shadow var(--trans), transform var(--trans);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card__icon {
  width: 52px; height: 52px; background: var(--light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem;
}
.service-card h3 { margin-bottom: .5rem; color: var(--navy); }
.service-card p  { margin-bottom: 0; font-size: .92rem; }

/* ---------- About Strip ---------- */
.about-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-strip__img-wrap {
  background: linear-gradient(135deg, var(--blue), var(--accent));
  border-radius: 12px; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: rgba(255,255,255,.25);
}
.about-strip__list { margin: 1.25rem 0 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.about-strip__list li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; color: #3a4a66; }
.about-strip__list li::before {
  content: ''; flex-shrink: 0; width: 18px; height: 18px;
  background: var(--accent); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}

/* ---------- Industry Tags ---------- */
.industry-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.industry-tag {
  font-size: .78rem; font-weight: 500; color: var(--blue);
  background: rgba(26,64,128,.08); border: 1px solid rgba(26,64,128,.15);
  padding: .35rem .85rem; border-radius: 50px;
}

/* ---------- CTA Banner ---------- */
.cta-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: var(--white); padding: 5rem 0; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.75); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-banner__actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; }
.contact-info h3 { margin-bottom: 1.25rem; }
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-item__icon { width: 42px; height: 42px; background: var(--light); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-item__label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .2rem; }
.contact-item__val   { font-weight: 600; color: var(--navy); font-size: .95rem; }
.contact-item__val a:hover { color: var(--accent); }

/* ---------- Contact Form ---------- */
.contact-form { background: var(--light); padding: 2.5rem; border-radius: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .7rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .93rem; font-family: inherit;
  color: var(--navy); background: var(--white); outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,125,234,.12); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 4rem 0 1.5rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 2rem;
}
.footer__brand-name { font-size: 1.05rem; font-weight: 800; color: var(--white); letter-spacing: .04em; margin-bottom: .25rem; }
.footer__brand-tag  { font-size: .65rem; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__desc { font-size: .875rem; line-height: 1.7; margin-bottom: 0; }
.footer__col-title { font-size: .78rem; font-weight: 700; color: var(--white); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a { font-size: .875rem; transition: color var(--trans); }
.footer__links a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .8rem; }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { transition: color var(--trans); }
.footer__legal a:hover { color: var(--white); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 5rem 0 4rem; color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 0; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 1.25rem; }
.breadcrumb a { color: rgba(255,255,255,.55); transition: color var(--trans); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--gold); }

/* ---------- Legal Pages ---------- */
.legal-content { max-width: 820px; margin: 0 auto; padding: 4rem 1.5rem; }
.legal-content h2 { margin-top: 2.5rem; margin-bottom: .75rem; font-size: 1.3rem; }
.legal-content h3 { margin-top: 1.75rem; margin-bottom: .5rem; font-size: 1.05rem; color: var(--blue); }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { margin-bottom: .4rem; color: #3a4a66; font-size: .95rem; }
.legal-meta { font-size: .82rem; color: var(--muted); margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about-strip  { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .navbar__nav { display: none; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); padding: 1rem 1.5rem 1.5rem; }
  .navbar__nav.open { display: flex; }
  .navbar__link { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.08); width: 100%; }
  .navbar__link::after { display: none; }
  .navbar__cta { margin-left: 0; margin-top: .5rem; }
  .nav-toggle { display: flex; }
  .navbar { position: relative; }
  .hero { padding: 4rem 0 3rem; }
  .hero__stats { gap: 1.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
}