/* EC Builder Supply - Shared Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2a4a;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --gold: #c9a84c;
  --gray: #f5f6f8;
  --text: #222;
  --muted: #6b7280;
  --white: #ffffff;
  --border: #e5e7eb;
  --max-w: 1200px;
}

body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.7; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }

/* HEADER / NAV */
header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-size: 1.3rem; font-weight: 700; letter-spacing: .5px; }
.logo span { color: var(--gold); }
.logo-icon { width: 38px; height: 38px; background: var(--gold); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; color: var(--navy); }

nav ul { list-style: none; display: flex; gap: 4px; }
nav ul li a {
  color: rgba(255,255,255,.85); padding: 8px 14px; border-radius: 4px;
  font-size: .95rem; font-weight: 500; transition: background .2s, color .2s;
}
nav ul li a:hover, nav ul li a.active { background: rgba(255,255,255,.12); color: var(--white); }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 60%, #2563eb 100%);
  color: var(--white); padding: 90px 24px 80px; text-align: center;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 18px; letter-spacing: -.5px; }
.hero p { font-size: 1.1rem; max-width: 640px; margin: 0 auto 32px; opacity: .88; }
.btn {
  display: inline-block; padding: 13px 32px; border-radius: 6px;
  font-weight: 600; font-size: 1rem; transition: all .2s; cursor: pointer; border: none;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #b8912f; color: var(--navy); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.6); color: var(--white); margin-left: 12px; }
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* SECTION */
.section { padding: 72px 24px; }
.section-gray { background: var(--gray); }
.container { max-width: var(--max-w); margin: 0 auto; }
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 600px; margin-bottom: 48px; }

/* FEATURE CARDS */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.feature-card {
  background: var(--white); border-radius: 10px; padding: 32px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07); border-top: 4px solid var(--blue);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.feature-card .icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: .95rem; }

/* CHECKLIST */
.checklist { list-style: none; }
.checklist li { padding: 8px 0; font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.checklist li::before { content: '\2713'; color: var(--blue); font-weight: 700; font-size: 1.1rem; }

/* KEY FEATURES BOX */
.key-features-box {
  background: var(--navy); color: var(--white);
  border-radius: 12px; padding: 40px 48px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start;
}
.key-features-box h2 { font-size: 1.5rem; margin-bottom: 20px; color: var(--gold); }
.key-features-box .checklist li { color: rgba(255,255,255,.9); }
.key-features-box .checklist li::before { color: var(--gold); }

/* MEMBERSHIP BANNER */
.membership-banner {
  background: linear-gradient(90deg, var(--gold) 0%, #b8912f 100%);
  color: var(--navy); text-align: center; padding: 28px 24px;
  font-size: 1.1rem; font-weight: 700; letter-spacing: .3px;
}

/* PRODUCTS PAGE */
.products-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
@media(max-width:768px){ .products-layout { grid-template-columns: 1fr; } }
.products-sidebar { background: var(--navy); border-radius: 10px; padding: 20px 0; height: fit-content; position: sticky; top: 80px; }
.products-sidebar h3 { color: var(--gold); padding: 0 20px 16px; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 8px; }
.products-sidebar ul { list-style: none; }
.products-sidebar ul li a { display: block; padding: 9px 20px; color: rgba(255,255,255,.8); font-size: .9rem; transition: background .15s, color .15s; }
.products-sidebar ul li a:hover { background: rgba(255,255,255,.08); color: var(--white); padding-left: 26px; }

.product-category { margin-bottom: 48px; scroll-margin-top: 90px; }
.product-category h2 { font-size: 1.4rem; font-weight: 700; color: var(--navy); border-bottom: 3px solid var(--blue); padding-bottom: 8px; margin-bottom: 20px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.product-tag {
  background: var(--gray); border: 1px solid var(--border);
  padding: 7px 16px; border-radius: 20px; font-size: .9rem; color: var(--text);
  transition: background .15s, border-color .15s;
}
.product-tag:hover { background: var(--blue); color: var(--white); border-color: var(--blue); cursor: default; }

/* PROJECTS PAGE - NEW LAYOUT */
.project-card {
  background: var(--white); border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(15,29,51,.08); margin-bottom: 64px;
  scroll-margin-top: 90px;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 420px;
  transition: transform .25s, box-shadow .25s;
}
.project-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(15,29,51,.14); }
.project-card.reverse { grid-template-columns: 1fr 1fr; }
.project-card.reverse .project-image { order: 2; }
.project-card.reverse .project-card-inner { order: 1; }

@media (max-width: 880px) {
  .project-card, .project-card.reverse { grid-template-columns: 1fr; }
  .project-card.reverse .project-image { order: 1; }
  .project-card.reverse .project-card-inner { order: 2; }
}

.project-image {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 60%, var(--blue) 100%);
  display: flex; align-items: center; justify-content: center;
  min-height: 320px; overflow: hidden;
}
.project-image::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .55;
}
.project-image::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to top, rgba(15,29,51,.5), transparent);
}
.project-image .ph-content {
  position: relative; z-index: 2; text-align: center; padding: 24px;
  color: var(--white);
}
.project-image .ph-initials {
  display: inline-flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; border-radius: 16px;
  background: rgba(201,168,76,.18); border: 2px solid var(--gold);
  font-size: 2rem; font-weight: 800; color: var(--gold);
  margin-bottom: 18px; letter-spacing: 1px;
}
.project-image .ph-title {
  font-size: 1.1rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; opacity: .92;
}
.project-image .ph-sub {
  font-size: .78rem; margin-top: 8px; opacity: .65;
  letter-spacing: 1px; text-transform: uppercase;
}

.project-card-inner { padding: 44px 44px; display: flex; flex-direction: column; justify-content: center; }
.project-card h2 { font-size: 1.65rem; font-weight: 800; color: var(--navy); margin-bottom: 18px; letter-spacing: .3px; }
.project-card p { color: var(--text); margin-bottom: 12px; line-height: 1.75; font-size: .95rem; }
.project-card p:last-of-type { margin-bottom: 0; }
.project-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,.1); color: var(--blue);
  padding: 6px 14px; border-radius: 16px; font-size: .78rem;
  font-weight: 600; margin-bottom: 14px; letter-spacing: .3px;
}
.project-tag::before { content: '\1F4CD'; font-size: .85rem; }

.project-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px; margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--border);
}
.project-fact {
  background: var(--gray); border-radius: 8px; padding: 12px 14px;
}
.project-fact .pf-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin-bottom: 4px; font-weight: 600;
}
.project-fact .pf-value {
  font-size: .95rem; font-weight: 700; color: var(--navy);
}

.projects-nav {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px;
  padding: 18px; background: var(--gray); border-radius: 12px;
  justify-content: center;
}
.projects-nav a {
  padding: 9px 18px; border-radius: 20px; font-size: .9rem; font-weight: 600;
  background: var(--white); color: var(--navy); border: 1px solid var(--border);
  transition: all .15s;
}
.projects-nav a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-1px); }

@media (max-width: 768px) {
  .project-card-inner { padding: 28px 24px; }
  .project-image { min-height: 220px; }
  .project-image .ph-initials { width: 64px; height: 64px; font-size: 1.5rem; }
}

/* ABOUT PAGE */
.team-card {
  background: var(--white); border-radius: 12px; padding: 40px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08); display: flex; gap: 36px; align-items: flex-start;
}
@media(max-width:640px){ .team-card { flex-direction: column; } }
.team-avatar {
  width: 120px; height: 120px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: var(--white); font-weight: 700;
}
.team-info h2 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.team-info .role { color: var(--gold); font-weight: 600; font-size: 1rem; margin-bottom: 20px; }
.team-info p { color: var(--muted); margin-bottom: 14px; line-height: 1.8; }

/* CONTACT PAGE */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media(max-width:768px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info { background: var(--navy); border-radius: 12px; padding: 40px; color: var(--white); }
.contact-info h2 { font-size: 1.4rem; color: var(--gold); margin-bottom: 8px; }
.contact-info p { opacity: .85; margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-item .ci-icon { width: 44px; height: 44px; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-item .ci-label { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; opacity: .6; margin-bottom: 4px; }
.contact-item .ci-value { font-weight: 600; font-size: 1rem; }

.contact-form { background: var(--gray); border-radius: 12px; padding: 40px; }
.contact-form h2 { font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.contact-form p { color: var(--muted); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: .95rem; background: var(--white);
  transition: border-color .15s; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { min-height: 130px; resize: vertical; }
.btn-blue { background: var(--blue); color: var(--white); width: 100%; padding: 13px; font-size: 1rem; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; transition: background .2s; }
.btn-blue:hover { background: #1d4ed8; }

/* FOOTER */
footer { background: #0f1d33; color: rgba(255,255,255,.7); padding: 56px 24px 28px; }
.footer-grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media(max-width:900px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:580px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color .15s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col address { font-style: normal; font-size: .9rem; line-height: 1.8; }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: .85rem; transition: background .15s; }
.social-links a:hover { background: var(--blue); color: var(--white); }

/* PAGE HERO */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%); color: var(--white); padding: 56px 24px; }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.page-hero p { opacity: .8; max-width: 540px; }
.breadcrumb { font-size: .85rem; opacity: .6; margin-bottom: 12px; }
.breadcrumb a { color: var(--gold); }

@media(max-width:768px){
  .nav-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px; }
  nav ul { gap: 2px; flex-wrap: wrap; }
  nav ul li a { padding: 6px 10px; font-size: .85rem; }
  .section { padding: 48px 16px; }
  .project-card-inner { padding: 24px 20px; }
  .team-card { padding: 24px; }
  .contact-info, .contact-form { padding: 28px; }
  .key-features-box { padding: 28px 24px; }
}

/* HOME - HERO POLISH */
.hero {
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .6; pointer-events: none;
}
.hero > * { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,.18); border: 1px solid rgba(201,168,76,.45);
  color: var(--gold); padding: 7px 18px; border-radius: 20px;
  font-size: .78rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 22px;
}
.hero-badge::before { content: '\2605'; color: var(--gold); }

/* HOME - STATS ROW */
.stats-section {
  background: var(--white); padding: 0 24px;
  margin-top: -50px; position: relative; z-index: 5;
}
.stats-grid {
  max-width: var(--max-w); margin: 0 auto;
  background: var(--white); border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15,29,51,.12);
  display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  padding: 32px 24px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-card:last-child { border-right: none; }
@media (max-width: 768px) {
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(1), .stat-card:nth-child(2) { border-bottom: 1px solid var(--border); }
}
.stat-icon {
  width: 52px; height: 52px; margin: 0 auto 14px;
  background: rgba(37,99,235,.1); color: var(--blue);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem;
}
.stat-number {
  font-size: 2rem; font-weight: 800; color: var(--navy);
  line-height: 1.1; margin-bottom: 6px;
}
.stat-label {
  font-size: .82rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}

/* HOME - FEATURED PROJECTS */
.featured-projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 880px) { .featured-projects-grid { grid-template-columns: 1fr; } }
.featured-project {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,29,51,.08); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none; color: inherit;
}
.featured-project:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15,29,51,.16); }
.fp-image {
  height: 200px; position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 60%, var(--blue) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.fp-image::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .6;
}
.fp-image .fp-initials {
  position: relative; z-index: 2;
  width: 64px; height: 64px; border-radius: 12px;
  background: rgba(201,168,76,.18); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: var(--gold);
}
.fp-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.fp-location {
  font-size: .75rem; color: var(--blue); text-transform: uppercase;
  letter-spacing: 1.2px; font-weight: 700; margin-bottom: 8px;
}
.fp-title {
  font-size: 1.25rem; font-weight: 800; color: var(--navy);
  margin-bottom: 10px;
}
.fp-desc {
  font-size: .92rem; color: var(--muted); line-height: 1.6;
  margin-bottom: 16px; flex: 1;
}
.fp-link {
  font-size: .85rem; font-weight: 600; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.fp-link::after { content: '\2192'; transition: transform .2s; }
.featured-project:hover .fp-link::after { transform: translateX(4px); }

.section-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; gap: 24px; flex-wrap: wrap;
}
.section-header-row .section-title { margin-bottom: 8px; }
.section-header-row .section-sub { margin-bottom: 0; }
.btn-view-all {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: 1.5px solid var(--navy); border-radius: 8px;
  color: var(--navy); font-weight: 600; font-size: .92rem;
  transition: all .2s; white-space: nowrap;
}
.btn-view-all:hover { background: var(--navy); color: var(--white); }
.btn-view-all::after { content: '\2192'; transition: transform .2s; }
.btn-view-all:hover::after { transform: translateX(4px); }

/* HOME - CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 60%, var(--blue) 100%);
  color: var(--white); padding: 80px 24px;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .6; pointer-events: none;
}
.cta-inner {
  max-width: 780px; margin: 0 auto; text-align: center;
  position: relative; z-index: 2;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  margin-bottom: 16px; letter-spacing: -.3px;
}
.cta-inner p {
  font-size: 1.05rem; opacity: .85; margin-bottom: 32px;
  max-width: 580px; margin-left: auto; margin-right: auto;
}
.cta-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
