/* =========================================================================
   GTDCC — Global Trade Development Chamber of Commerce
   Master stylesheet. Brand colors taken from the official logo.
   Author: build for gtdcc.com
   ========================================================================= */

/* ---------------------------------------------------------------
   1. Design tokens
--------------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #14296b;
  --navy-dark: #0e1d4f;
  --navy-light: #24408f;
  --green: #2e8540;
  --green-dark: #216530;
  --orange: #e8730c;
  --orange-dark: #cf6408;
  --red: #c0392b;

  /* Neutrals */
  --ink: #1a1a2e;
  --slate: #5a6472;
  --cloud: #f5f7fa;
  --border: #e2e6ec;
  --white: #ffffff;

  /* Typography */
  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 4px 14px rgba(20, 41, 107, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 41, 107, 0.12);
  --shadow-lg: 0 20px 50px rgba(20, 41, 107, 0.18);
  --transition: 0.25s ease;
  --header-h: 84px;
}

/* ---------------------------------------------------------------
   2. Reset & base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1rem; }

a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }

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

ul { margin: 0 0 1rem; padding-left: 1.2rem; }

/* Accessible focus */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------
   3. Layout helpers
--------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--cloud { background: var(--cloud); }
.section--navy { background: var(--navy); color: #dfe4f2; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 760px; }

/* Section heading */
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 2px;
  font-size: 0.8rem; font-weight: 700; color: var(--orange);
  font-family: var(--font-body); margin-bottom: 10px;
}
.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.title-accent { position: relative; padding-bottom: 18px; }
.title-accent::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 66px; height: 4px;
  background: var(--orange); border-radius: 2px;
}
.title-accent.center::after { left: 50%; transform: translateX(-50%); }

/* ---------------------------------------------------------------
   4. Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 15px 30px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: all var(--transition);
  line-height: 1; text-align: center;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-dark); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-white:hover { background: #fff; color: var(--navy); }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }

/* ---------------------------------------------------------------
   5. Header / navigation
--------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__emblem { width: 46px; height: 46px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.15rem; letter-spacing: .3px; }
.brand__sub { font-size: .62rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green); font-weight: 700; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: 10px 14px; color: var(--ink); font-weight: 600; font-size: .96rem;
  border-radius: var(--radius-sm); position: relative;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.nav-menu a:hover { color: var(--navy); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: none; background: var(--navy);
  border-radius: var(--radius-sm); cursor: pointer; padding: 12px;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: all var(--transition); }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------
   6. Hero
--------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(14,29,79,.94) 0%, rgba(20,41,107,.86) 55%, rgba(46,133,64,.82) 100%),
    radial-gradient(circle at 80% 20%, rgba(232,115,12,.35), transparent 45%),
    var(--navy);
}
.hero__inner { padding: 96px 0 104px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { font-size: 1.2rem; color: #dfe4f2; margin-bottom: 30px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__pattern {
  position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Page banner (interior pages) */
.page-banner {
  position: relative; color: #fff; text-align: center; padding: 78px 0 64px;
  background: linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, var(--navy-light));
}
.page-banner h1 { color: #fff; margin-bottom: 10px; }
.page-banner .breadcrumb { color: #b9c4e6; font-size: .92rem; }
.page-banner .breadcrumb a { color: #fff; }

/* ---------------------------------------------------------------
   7. Featured event ribbon
--------------------------------------------------------------- */
.event-ribbon { background: var(--orange); color: #fff; }
.event-ribbon .container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 22px; padding-bottom: 22px; }
.event-ribbon .tag { background: rgba(255,255,255,.2); padding: 6px 14px; border-radius: 50px; font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.event-ribbon strong { font-size: 1.1rem; }
.event-ribbon .spacer { flex: 1; }
.event-ribbon .btn { background: #fff; color: var(--orange-dark); border: none; }
.event-ribbon .btn:hover { background: var(--navy); color: #fff; }

/* ---------------------------------------------------------------
   8. Cards
--------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: #fff; margin-bottom: 20px;
}
.card__icon svg { width: 30px; height: 30px; }
.card--green .card__icon { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.card--orange .card__icon { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); margin-bottom: 0; }

/* Sector chips */
.sector {
  display: flex; gap: 16px; align-items: flex-start; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.sector__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--cloud); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.sector__icon svg { width: 26px; height: 26px; }
.sector h4 { margin: 0 0 4px; color: var(--navy); font-family: var(--font-body); font-weight: 700; }
.sector p { margin: 0; color: var(--slate); font-size: .92rem; }

/* ---------------------------------------------------------------
   9. Stats
--------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 20px; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; color: var(--orange); line-height: 1; }
.stat__label { margin-top: 8px; font-weight: 600; color: inherit; opacity: .92; }

/* ---------------------------------------------------------------
   10. Feature / split content
--------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.media-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--navy), var(--green)); min-height: 340px;
  display: grid; place-items: center; color: rgba(255,255,255,.85); text-align: center; padding: 30px;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ---------------------------------------------------------------
   11. CTA band
--------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-light) 60%, var(--green) 130%);
  color: #fff; text-align: center; border-radius: 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dfe4f2; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------
   12. Events / list items
--------------------------------------------------------------- */
.event-card { display: grid; grid-template-columns: 130px 1fr; gap: 26px; align-items: stretch; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition); }
.event-card:hover { box-shadow: var(--shadow-md); }
.event-card__date { background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; text-align: center; }
.event-card__date .d { font-size: 2rem; font-family: var(--font-head); font-weight: 700; line-height: 1; }
.event-card__date .m { text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; margin-top: 6px; }
.event-card__body { padding: 24px 28px; }
.event-card__body h3 { margin-bottom: 8px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--slate); font-size: .9rem; margin-bottom: 12px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.badge { display: inline-block; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 5px 12px; border-radius: 50px; }
.badge--orange { background: var(--orange); }
.badge--muted { background: var(--slate); }

/* ---------------------------------------------------------------
   13. Forms
--------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; color: var(--navy); font-size: .95rem; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,41,107,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .error-msg { color: var(--red); font-size: .85rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field.invalid .error-msg { display: block; }
.form-note { font-size: .88rem; color: var(--slate); }
.form-status { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 600; display: none; }
.form-status.success { display: block; background: #e8f6ec; color: var(--green-dark); border: 1px solid #b7e0c1; }
.form-status.error { display: block; background: #fdece9; color: var(--red); border: 1px solid #f3c6bf; }

/* ---------------------------------------------------------------
   14. Info / contact tiles
--------------------------------------------------------------- */
.info-tile { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.info-tile__icon { width: 50px; height: 50px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.info-tile h4 { margin: 0 0 4px; }
.info-tile p, .info-tile a { margin: 0; color: var(--slate); }

/* ---------------------------------------------------------------
   15. Footer
--------------------------------------------------------------- */
.site-footer { background: var(--navy-dark); color: #c3cbe4; padding-top: 68px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 1.05rem; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-about p { color: #a9b3d4; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .brand__name { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #c3cbe4; }
.footer-links a:hover { color: var(--orange); padding-left: 4px; }
.footer-contact li { list-style: none; display: flex; gap: 12px; margin-bottom: 14px; color: #c3cbe4; }
.footer-contact { padding: 0; margin: 0; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--orange); }
.newsletter input { width: 100%; padding: 13px 15px; border: none; border-radius: var(--radius-sm); margin-bottom: 12px; font-family: var(--font-body); font-size: .95rem; }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background var(--transition), transform var(--transition); }
.social a:hover { background: var(--orange); transform: translateY(-3px); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; font-size: .88rem; color: #9aa4c8; }
.footer-bottom a { color: #9aa4c8; }
.footer-bottom a:hover { color: #fff; }

/* ---------------------------------------------------------------
   16. Scroll-reveal animation
--------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------
   17. Responsive
--------------------------------------------------------------- */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }
  .section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 12px 24px 24px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity var(--transition), transform var(--transition); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 14px 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-menu a::after { display: none; }
  .nav-actions .btn { display: none; }
  .nav-menu .btn-mobile { display: inline-flex; margin-top: 14px; justify-content: center; }
}

@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2, .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .event-card__date { flex-direction: row; gap: 10px; padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
  .hero__inner { padding: 64px 0 72px; }
}

.btn-mobile { display: none; }

/* ---------------------------------------------------------------
   18. Success popup modal
--------------------------------------------------------------- */
.gtdcc-modal-overlay {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 22px; background: rgba(10, 20, 50, 0.55); opacity: 0; transition: opacity .25s ease;
}
.gtdcc-modal-overlay.open { opacity: 1; }
.gtdcc-modal {
  background: #fff; border-radius: 16px; max-width: 460px; width: 100%; padding: 42px 34px 34px;
  text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.4);
  transform: translateY(16px) scale(.97); transition: transform .25s ease;
}
.gtdcc-modal-overlay.open .gtdcc-modal { transform: none; }
.gtdcc-modal__icon {
  width: 82px; height: 82px; border-radius: 50%; background: #e8f6ec; color: var(--green);
  display: grid; place-items: center; margin: 0 auto 22px; animation: gtdccPop .4s ease;
}
@keyframes gtdccPop { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.gtdcc-modal h3 { color: var(--navy); margin-bottom: 10px; font-size: 1.6rem; }
.gtdcc-modal p { color: var(--slate); margin-bottom: 28px; font-size: 1.05rem; }
.gtdcc-modal .btn { min-width: 150px; justify-content: center; }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .gtdcc-modal__icon { animation: none; }
  .gtdcc-modal, .gtdcc-modal-overlay { transition: none; }
}
