/* ── ASSOCARBONIO – Shared Stylesheet ── */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a3260;
  --blue:   #2a5298;
  --mid:    #3762a0;
  --steel:  #7096c0;
  --light:  #b8d0e8;
  --pale:   #e8f0f8;
  --white:  #ffffff;
  --gray:   #f4f6f9;
  --text:   #0d1e3a;
  --muted:  #4a6080;
  --rule:   rgba(26,50,96,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 72px;
}

.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}

.nav-logo img { height: 44px; width: auto; object-fit: contain; }

.nav-logo-text { display: flex; flex-direction: column; }

.nav-logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 700;
  letter-spacing: 2px; color: var(--navy);
  line-height: 1;
}

.nav-logo-sub {
  font-size: 9px; font-weight: 400;
  letter-spacing: 1.5px; color: var(--muted);
  text-transform: uppercase; line-height: 1;
  margin-top: 3px;
}

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--navy); }

.nav-cta {
  background: var(--navy); color: var(--white) !important;
  padding: 10px 22px; border-radius: 2px;
}

.nav-cta:hover { background: var(--blue) !important; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  margin-top: 72px;
  background: var(--navy);
  padding: 72px 80px 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(to right, transparent, rgba(42,82,152,0.3));
  pointer-events: none;
}

.page-hero-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--steel); margin-bottom: 18px;
}

.page-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(40px, 5vw, 64px); font-weight: 700;
  color: var(--white); line-height: 1.05;
  letter-spacing: 1px; margin-bottom: 16px;
  max-width: 700px;
}

.page-hero-title span { color: var(--light); }

.page-hero-body {
  font-size: 16px; font-weight: 300;
  color: rgba(255,255,255,0.7);
  max-width: 560px; line-height: 1.8;
}

/* ── SECTIONS ── */
.section { padding: 96px 80px; }
.section-alt { background: var(--gray); }

.section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--steel); margin-bottom: 16px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 44px; font-weight: 700;
  color: var(--navy); line-height: 1.1;
  margin-bottom: 20px; letter-spacing: 0.5px;
}

.section-rule {
  width: 48px; height: 3px;
  background: var(--steel); margin-bottom: 32px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--navy); color: var(--white);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 32px; border-radius: 2px;
  text-decoration: none;
  transition: background .2s;
}

.btn-primary:hover { background: var(--blue); }

.btn-outline-dark {
  display: inline-block;
  border: 1.5px solid var(--navy); color: var(--navy);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 13px 32px; border-radius: 2px;
  text-decoration: none; margin-left: 16px;
  transition: background .2s;
}

.btn-outline-dark:hover { background: var(--pale); }

/* ── PILLARS / CARDS ── */
.pillars {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.pillar {
  background: var(--white);
  padding: 28px 24px;
  border-top: 3px solid transparent;
  transition: border-color .2s;
}

.pillar:hover { border-color: var(--steel); }

.pillar-icon {
  width: 36px; height: 36px;
  background: var(--pale); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

.pillar-title {
  font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--navy); margin-bottom: 8px;
}

.pillar-body { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── NEWS CARDS ── */
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 48px;
}

.news-card {
  background: var(--white);
  padding: 32px 28px;
  border-top: 3px solid var(--rule);
  transition: border-color .2s;
  cursor: pointer;
}

.news-card:hover { border-color: var(--navy); }

.news-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
  background: var(--pale); color: var(--navy);
  margin-bottom: 14px;
}

.news-date {
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--steel); margin-bottom: 10px;
}

.news-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--navy); line-height: 1.2;
  margin-bottom: 12px;
}

.news-excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; }

.news-link {
  display: inline-block; margin-top: 20px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
}

.news-link::after { content: ' →'; }

/* ── CONTACT CARDS ── */
.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.contact-card-link, .contact-card-info {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--white); padding: 32px 28px;
  border-top: 3px solid transparent;
  text-decoration: none; color: inherit;
  transition: border-color .2s;
}

.contact-card-link:hover { border-color: var(--steel); }

.contact-card-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--pale); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

.contact-card-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--steel); margin-bottom: 6px;
}

.contact-card-value {
  font-size: 15px; font-weight: 500;
  color: var(--text); margin-bottom: 8px;
  word-break: break-all;
}

.contact-card-action { font-size: 12px; color: var(--steel); font-weight: 600; }
.contact-card-link:hover .contact-card-action { color: var(--navy); }

/* ── MEMBERSHIP CARDS ── */
.membership-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; margin-top: 48px;
}

.membership-card {
  background: var(--white); padding: 40px 36px;
  border-left: 4px solid var(--rule);
  transition: border-color .25s;
}

.membership-card:hover { border-color: var(--navy); }

.membership-card.featured {
  background: var(--navy); border-left-color: var(--steel);
  grid-column: 1; grid-row: 1 / 3;
  display: flex; flex-direction: column; justify-content: space-between;
}

.card-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px;
  background: var(--pale); color: var(--navy);
  margin-bottom: 20px;
}

.featured .card-badge { background: rgba(255,255,255,0.15); color: var(--light); }

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px; font-weight: 700;
  color: var(--navy); margin-bottom: 14px;
}

.featured .card-title { color: var(--white); }

.card-body { font-size: 15px; color: var(--muted); line-height: 1.75; }
.featured .card-body { color: rgba(255,255,255,0.7); }

.card-list { list-style: none; margin-top: 20px; }

.card-list li {
  font-size: 14px; color: var(--muted);
  padding: 8px 0; border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; gap: 10px;
}

.featured .card-list li {
  color: rgba(255,255,255,0.75);
  border-bottom-color: rgba(255,255,255,0.1);
}

.card-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--steel); flex-shrink: 0;
}

.card-cta {
  display: inline-block; margin-top: 32px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); text-decoration: none;
  padding: 13px 28px; border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 2px; transition: background .2s;
}

.card-cta:hover { background: rgba(255,255,255,0.1); }

/* ── FORM ── */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 40px;
}

.form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted);
}

.form-input, .form-select, .form-textarea {
  font-family: 'Barlow', sans-serif;
  font-size: 15px; color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: 2px; padding: 12px 16px;
  transition: border-color .2s;
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--steel); }

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

.form-submit {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 15px 36px; border-radius: 2px;
  border: none; cursor: pointer;
  transition: background .2s;
}

.form-submit:hover { background: var(--blue); }

/* ── DOCUMENT LIST ── */
.doc-list { display: flex; flex-direction: column; gap: 2px; margin-top: 40px; }

.doc-item {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); padding: 24px 28px;
  border-left: 4px solid var(--rule);
  text-decoration: none; color: inherit;
  transition: border-color .2s;
}

.doc-item:hover { border-color: var(--navy); }

.doc-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--pale); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
}

.doc-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--navy); flex: 1;
}

.doc-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }

.doc-badge {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
  background: var(--pale); color: var(--muted);
}

.doc-item:hover .doc-badge { background: var(--pale); color: var(--navy); }

/* ── FOOTER ── */
footer {
  background: var(--text);
  padding: 56px 80px 32px;
}

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 700;
  letter-spacing: 2px; color: var(--white); margin-bottom: 6px;
}

.footer-brand-sub {
  font-size: 10px; color: rgba(255,255,255,0.35);
  letter-spacing: 1.5px; text-transform: uppercase;
  line-height: 1.6; max-width: 220px; margin-bottom: 20px;
}

.footer-desc {
  font-size: 13px; color: rgba(255,255,255,0.45);
  line-height: 1.8; max-width: 260px;
}

.footer-col-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 20px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 14px; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color .2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 12px; color: rgba(255,255,255,0.3);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-hero-eyebrow { animation: fadeUp .5s ease both; }
.page-hero-title   { animation: fadeUp .5s ease .08s both; }
.page-hero-body    { animation: fadeUp .5s ease .18s both; }

/* ── RESPONSIVE: TABLET ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .section { padding: 64px 40px; }
  .page-hero { padding: 56px 40px 48px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .membership-grid { grid-template-columns: 1fr; }
  .membership-card.featured { grid-column: auto; grid-row: auto; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE: MOBILE ── */
@media (max-width: 600px) {
  nav { padding: 0 20px; height: 60px; }
  .nav-links { display: none; }
  .nav-logo-sub { display: none; }

  .nav-hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    cursor: pointer; padding: 8px; background: none; border: none;
  }
  .nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--navy); border-radius: 2px;
    transition: transform .3s, opacity .3s;
  }
  .nav-mobile-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-mobile-open .nav-hamburger span:nth-child(2) { opacity: 0; }
  .nav-mobile-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-mobile-menu {
    display: none; position: fixed; top: 60px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    padding: 20px 24px; flex-direction: column; gap: 0; z-index: 99;
  }
  .nav-mobile-menu.open { display: flex; }
  .nav-mobile-menu a {
    display: block; padding: 14px 0;
    font-size: 14px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--muted); text-decoration: none;
    border-bottom: 1px solid var(--rule);
  }
  .nav-mobile-menu a:last-child { border-bottom: none; color: var(--navy); }

  .page-hero { margin-top: 60px; padding: 48px 24px 40px; }
  .section { padding: 48px 24px; }
  .section-title { font-size: 32px; }
  .news-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  footer { padding: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 20px 24px; }
  .btn-outline-dark { margin-left: 0; margin-top: 12px; display: block; text-align: center; }
}

/* Desktop: hamburger hidden */
@media (min-width: 601px) {
  .nav-hamburger { display: none; }
}
