/* ===================================
   SDPI – Steel Detailing Professionals Index
   Brand: Teal Engineering
   =================================== */

:root {
  --teal: #149E98;
  --dark-teal: #002D2B;
  --cyan: #00E5DC;
  --white: #FFFFFF;
  --off-white: #F4FAFA;
  --light-teal: #E6F7F6;
  --mid-teal: #0D7B76;
  --text-dark: #0A1F1E;
  --text-muted: #4A7674;
  --border: #C8E8E6;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow: 0 4px 24px rgba(0, 45, 43, 0.10);
  --shadow-lg: 0 12px 48px rgba(0, 45, 43, 0.18);
  --radius: 8px;
  --radius-lg: 16px;
  --nav-h: 72px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    /*color: var(--text-dark);*/
    color: #2e8d88;
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1654px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    color: #08736e;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { color: var(--text-muted); margin-bottom: 1rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.02em; border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s ease; text-transform: uppercase;
  white-space: nowrap;
}
.btn-lg { padding: 15px 32px; font-size: 0.9rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--mid-teal); border-color: var(--mid-teal); transform: translateY(-1px); }
.btn-teal { background: var(--dark-teal); color: var(--white); border-color: var(--dark-teal); }
.btn-teal:hover { background: var(--mid-teal); border-color: var(--mid-teal); transform: translateY(-1px); }
.btn-cyan { background: var(--cyan); color: var(--dark-teal); border-color: var(--cyan); }
.btn-cyan:hover { background: #00c9c2; border-color: #00c9c2; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #b1bfbe; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-block; font-family: var(--font-head); font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); background: var(--light-teal); padding: 4px 12px;
  border-radius: 100px; margin-bottom: 16px;
}
.section-title { margin-bottom: 16px; }
.section-sub { color: var(--text-muted); max-width: 600px; margin-bottom: 40px; display: inline-block; }
.section-title.center, .section-sub.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ===== PAGE SYSTEM ===== */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: var(--dark-teal);
  border-bottom: 1px solid rgba(0,229,220,0.15);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.25); }
.header-inner {
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.logo-icon {
  font-size: 1.4rem; color: var(--cyan);
  display: flex; align-items: center;
}
.logo-text {
  font-family: var(--font-head); font-weight: 900; font-size: 1.3rem;
  color: var(--white); letter-spacing: -0.02em;
}
.logo-sub {
  font-size: 0.65rem; color: rgba(255,255,255,0.5); font-weight: 500;
  display: none;
}
@media (min-width: 1100px) { .logo-sub { display: block; } }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav .nav-link {
  padding: 8px 14px; border-radius: var(--radius);
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: rgba(255,255,255,0.75); transition: all 0.2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--cyan); }
.header-ctas { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--dark-teal); z-index: 999; padding: 20px 24px 32px;
  border-bottom: 1px solid rgba(0,229,220,0.15);
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  padding: 12px 16px; font-family: var(--font-head); font-weight: 600;
  font-size: 0.875rem; text-transform: uppercase; color: rgba(255,255,255,0.75);
  border-radius: var(--radius); transition: all 0.2s;
}
.mobile-menu .nav-link:hover { color: var(--cyan); }
.mobile-ctas { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: var(--nav-h);
  background: var(--dark-teal);
}
.hero-bg {
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(20,158,152,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(0,229,220,0.12) 0%, transparent 60%),
    linear-gradient(135deg, #002D2B 0%, #001A19 100%);
}
/* Grid texture */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(0,229,220,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,220,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  max-width: 760px;
  padding: 80px 24px;
}
.hero-badge {
  display: inline-flex; align-items: center;
  gap: 6px; background: rgba(0,229,220,0.15);
  border: 1px solid rgba(0,229,220,0.3);
  color: var(--cyan); padding: 6px 14px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero-title {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    font-family: sans-serif;
}
.hero-title span { color: var(--cyan); }
.hero-sub { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--cyan); }
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.05em; }


.hero-scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6); font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.1em; z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(0,229,220,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ===== VIDEO SECTION ===== */
.video-section {
  padding: 80px 0; background: var(--off-white);
  text-align: center;
}
.video-wrapper {
  position: relative; padding-bottom: 56.25%;
  height: 0; overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
  max-width: 900px; margin: 0 auto;
}
.video-wrapper iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ===== WHAT SECTION ===== */
.what-section { padding: 100px 0; background: var(--white); }
.what-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.what-text p { margin-bottom: 16px; }
.what-cards {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.info-card {
  padding: 24px; background: var(--off-white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: all 0.3s; display: flex; gap: 16px; align-items: flex-start;
}
.info-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateX(4px); }
.card-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.info-card h4 { margin-bottom: 6px; }
.info-card p { margin: 0; font-size: 0.9rem; }

/* ===== WHY SECTION ===== */
.why-section { padding: 100px 0; background: var(--dark-teal); position: relative; overflow: hidden; }
.why-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(0,229,220,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,220,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.why-section .section-label { background: rgba(0,229,220,0.15); color: var(--cyan); }
.why-section .section-title { color: var(--white); }
.why-section .section-sub { color: rgba(255,255,255,0.8); }
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; position: relative; z-index: 1;
}
.why-item {
  padding: 28px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,229,220,0.12);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.why-item:hover { background: rgba(0,229,220,0.08); border-color: rgba(0,229,220,0.3); }
.why-num {
  font-family: var(--font-head); font-size: 2rem; font-weight: 900;
  color: rgba(0,229,220,0.6); margin-bottom: 12px; line-height: 1;
}
.why-item h4 { color: var(--white); margin-bottom: 8px; }
.why-item p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin: 0; }

/* ===== SPLIT SECTION ===== */
.split-section { display: grid; grid-template-columns: 1fr 1fr; }
.split-panel { padding: 80px 64px; }
.split-left { background: var(--teal); }
.split-right { background: var(--mid-teal); }
.split-inner { max-width: 480px; }
.split-icon { font-size: 2rem; margin-bottom: 16px; }
.split-panel h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 16px; }
.split-panel p { color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.split-list { margin-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.split-list li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,0.9); font-size: 0.9rem; }
.split-list li::before { content: '→'; color: var(--cyan); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ===== USERS SECTION ===== */
.users-section { padding: 100px 0; background: var(--off-white); }
.users-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.user-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  text-align: center; transition: all 0.3s;
}
.user-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-4px); }
.user-icon { font-size: 2rem; margin-bottom: 12px; }
.user-card h4 { margin-bottom: 8px; }
.user-card p { font-size: 0.875rem; margin: 0; }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0; background: var(--dark-teal);
  background-image: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(20,158,152,0.3) 0%, transparent 70%);
  text-align: center;
}
.cta-inner h2 { color: var(--white); margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--dark-teal);
  padding: calc(var(--nav-h) + 60px) 0 60px;
  border-bottom: 1px solid rgba(0,229,220,0.15);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(0,229,220,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,220,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-label { background: rgba(0,229,220,0.15); color: var(--cyan); }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0; }

/* ===== CONTENT SECTION ===== */
.content-section { padding: 80px 0; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.content-block { margin-bottom: 0; }
.content-block h2 { margin-bottom: 16px; }
.content-block p { margin-bottom: 12px; }

/* Mission */
.mission-points { display: flex; flex-direction: column; gap: 20px; margin: 20px 0; }
.mission-item { display: flex; gap: 16px; align-items: flex-start; }
.m-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.mission-item h4 { margin-bottom: 4px; }
.mission-item p { margin: 0; font-size: 0.9rem; }

/* ===== INDEX PAGE ===== */
.index-search-section { padding: 60px 0 80px; }
.search-bar-wrapper {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 32px;
}
.search-bar { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.search-field { flex: 1; min-width: 160px; }
.search-field label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); margin-bottom: 6px; }
.search-field select, .search-field input {
  width: 100%; padding: 10px 36px 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--text-dark);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23149E98' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  transition: border-color 0.2s;
  appearance: none; -webkit-appearance: none;
}
.search-field select option {
  background: #ffffff;
  color: #0A1F1E;
}
.search-field select:focus, .search-field input:focus {
  outline: none; border-color: var(--teal);
}
.search-btn { flex-shrink: 0; }
.results-count { font-family: var(--font-head); font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; font-weight: 600; }
.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.listing-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; transition: all 0.3s;
  position: relative;
}
.listing-card:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-3px); }
.listing-badge {
  font-family: var(--font-head); font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal); background: var(--light-teal);
  border: 1px solid var(--border);
  display: inline-block; padding: 3px 10px; border-radius: 100px; margin-bottom: 14px;
}
.listing-card h3 { margin-bottom: 4px; font-size: 1.1rem; }
.listing-location { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.listing-desc { font-size: 0.875rem; margin-bottom: 16px; }
.listing-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.listing-tags span {
  background: var(--light-teal); color: var(--teal);
  padding: 3px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 600;
}
.index-cta-bar {
  background: var(--dark-teal); border-radius: var(--radius-lg);
  padding: 36px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.index-cta-bar p { color: rgba(255,255,255,0.9); margin: 0; }

/* ===== MEMBERSHIP ===== */
.membership-overview { margin-bottom: 48px; }
.membership-overview h2 { margin-bottom: 12px; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px; }
.benefit-block {
  padding: 28px 22px; background: var(--off-white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: all 0.3s; text-align: center;
}
.benefit-block:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.benefit-icon { font-size: 1.8rem; margin-bottom: 12px; }
.benefit-block h4 { margin-bottom: 8px; }
.benefit-block p { font-size: 0.875rem; margin: 0; }
.criteria-section { margin-bottom: 60px; }
.criteria-section h2 { margin-bottom: 16px; }
.criteria-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.criteria-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--light-teal); border-radius: var(--radius); border: 1px solid var(--border); }
.criteria-item span { color: var(--teal); font-weight: 700; font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.criteria-item p { margin: 0; font-size: 0.9rem; color: var(--text-dark); }
.process-section { margin-bottom: 60px; }
.process-section h2 { margin-bottom: 32px; }
.process-steps { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.process-step { flex: 1; min-width: 160px; text-align: center; padding: 24px 16px; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step-num { font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: var(--teal); margin-bottom: 8px; line-height: 1; }
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 0.875rem; margin: 0; }
.process-arrow { font-size: 1.5rem; color: var(--teal); align-self: center; flex-shrink: 0; }
.apply-cta-block {
  text-align: center; padding: 64px 40px;
  background: var(--dark-teal); border-radius: var(--radius-lg);
}
.apply-cta-block h2 { color: var(--white); margin-bottom: 12px; }
.apply-cta-block p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }

/* ===== STANDARDS ===== */
.standards-intro { margin-bottom: 48px; }
.standards-intro h2 { margin-bottom: 12px; }
.standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.standard-block {
  padding: 32px 28px; background: var(--off-white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.std-icon { font-size: 1.8rem; margin-bottom: 16px; }
.standard-block h3 { margin-bottom: 16px; }
.standard-block p { font-size: 0.9rem; margin-bottom: 12px; }
.std-list { padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.std-list li { font-size: 0.875rem; color: var(--text-muted); padding-left: 16px; position: relative; }
.std-list li::before { content: '—'; position: absolute; left: 0; color: var(--teal); }

/* ===== RESOURCES ===== */
.resources-tabs { display: flex; gap: 4px; margin-bottom: 36px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.res-tab {
  padding: 10px 20px; background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all 0.2s;
}
.res-tab.active, .res-tab:hover { color: var(--teal); border-bottom-color: var(--teal); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.25s ease; }
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.article-card {
  padding: 28px; background: var(--off-white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.article-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.article-tag { font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); margin-bottom: 12px; }
.article-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.article-card p { font-size: 0.875rem; margin-bottom: 16px; }
.article-link { color: var(--teal); font-weight: 600; font-size: 0.875rem; transition: color 0.2s; }
.article-link:hover { color: var(--mid-teal); }
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card {
  padding: 32px 28px; text-align: center; background: var(--off-white);
  border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all 0.3s;
}
.guide-card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.guide-icon { font-size: 2rem; margin-bottom: 14px; }
.guide-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.guide-card p { font-size: 0.875rem; margin-bottom: 20px; }
.news-grid { display: flex; flex-direction: column; gap: 24px; }
.news-item { padding: 28px; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-lg); border-left: 4px solid var(--teal); }
.news-date { font-family: var(--font-head); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; letter-spacing: 0.08em; }
.news-item h3 { margin-bottom: 8px; }
.news-item p { font-size: 0.9rem; margin: 0; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; }
.contact-form-wrapper h2 { margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dark); }
.form-field input, .form-field textarea {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; transition: border-color 0.2s; background: var(--white);
  color: var(--text-dark);
}
.form-field select {
  padding: 12px 36px 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; transition: border-color 0.2s;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23149E98' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text-dark);
  appearance: none; -webkit-appearance: none;
}
.form-field select option {
  background: #ffffff;
  color: #0A1F1E;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal); background: var(--white);
}
.form-field textarea { resize: vertical; }
.form-success { display: none; text-align: center; padding: 40px; background: var(--light-teal); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.form-success.visible { display: block; }
.success-icon { font-size: 2.5rem; margin-bottom: 12px; color: var(--teal); }
.form-success h3 { margin-bottom: 8px; }
.contact-info h2 { margin-bottom: 24px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.cd-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-detail a { color: var(--teal); font-weight: 500; }
.contact-faq h3 { margin-bottom: 20px; }
.faq-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border: none; padding: 0; }
.faq-item h4 { font-size: 0.95rem; margin-bottom: 6px; }
.faq-item p { font-size: 0.875rem; margin: 0; }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark-teal); padding: 64px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.footer-social { margin-top: 20px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
  font-weight: 700; font-size: 0.875rem; transition: all 0.2s;
}
.footer-social a:hover { background: var(--teal); color: var(--white); }
.footer-nav-col h5 { color: var(--white); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; font-weight: 700; }
.footer-nav-col a { display: block; color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-nav-col a:hover { color: var(--cyan); }
.footer-bottom { padding: 20px 0; }
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.8rem; text-align: center; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .users-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .standards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-ctas { display: none; }
  .hamburger { display: flex; }
  .what-grid { grid-template-columns: 1fr; gap: 48px; }
  .split-section { grid-template-columns: 1fr; }
  .split-panel { padding: 48px 24px; }
  .content-grid { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); align-self: center; }
  .articles-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .users-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .search-bar { flex-direction: column; }
  .index-cta-bar { flex-direction: column; text-align: center; }
  .hero-stats { gap: 20px; }
}

@media (max-width: 480px) {
  .users-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

/* ===== EXPANDED LISTING CARD STYLES ===== */
.listing-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.listing-trading-name { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
.listing-bim-badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em; padding: 4px 8px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; text-transform: uppercase; }
.bim-3 { background: rgba(0,212,180,0.15); color: var(--teal); border: 1px solid rgba(0,212,180,0.4); }
.bim-2 { background: rgba(59,130,246,0.1); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.bim-1 { background: rgba(168,85,247,0.1); color: #c084fc; border: 1px solid rgba(168,85,247,0.3); }
.bim-none { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

.listing-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.listing-meta-item { display: flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 6px; padding: 6px 10px; }
.meta-icon { font-size: 0.9rem; }
.meta-label { font-size: 0.7rem; color: var(--text-muted); flex: 1; }
.meta-value { font-size: 0.78rem; font-weight: 600; color: var(--text); }

.listing-section { margin-bottom: 12px; }
.listing-section-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 6px; }

.tag-specialism { background: rgba(0,212,180,0.08) !important; color: var(--teal) !important; border: 1px solid rgba(0,212,180,0.25) !important; }
.tag-software { background: rgba(255,255,255,0.05) !important; color: var(--text-muted) !important; border: 1px solid var(--border) !important; }
.tag-drawing { background: rgba(59,130,246,0.08) !important; color: #93c5fd !important; border: 1px solid rgba(59,130,246,0.2) !important; }

.listing-credentials { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.cred-badge { font-size: 0.65rem; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.cred-green { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.cred-grey { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.cred-teal { background: rgba(0,212,180,0.12); color: var(--teal); border: 1px solid rgba(0,212,180,0.3); }

.listing-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }
.listing-tags-small span { font-size: 0.65rem !important; padding: 3px 8px !important; }

/* Wider cards for expanded content */
.listings-grid { grid-template-columns: repeat(2, 1fr) !important; }
@media (max-width: 900px) { .listings-grid { grid-template-columns: 1fr !important; } }
