/* =========================================
   GREENCOAST SHIP SUPPLY — Global Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
  --green-dark:   #0a2e1a;
  --green-deep:   #061a10;
  --green-mid:    #1a5c35;
  --green-light:  #2d8a52;
  --green-pale:   #e8f5ee;
  --gold:         #c9a84c;
  --gold-light:   #f0d080;
  --gold-dim:     rgba(201,168,76,0.2);
  --cream:        #f8f5ef;
  --cream-dark:   #ede9e0;
  --white:        #ffffff;
  --text-dark:    #0d1f12;
  --text-mid:     #3a5244;
  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;
  --max-w:        1280px;
  --section-pad:  7rem 5rem;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--text-dark); overflow-x: hidden; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ── NAV ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(10, 46, 26, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-dim);
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo-icon { display: none; }
.nav-logo-img { height: 64px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display); font-size: 1.3rem; color: var(--white);
  font-weight: 700; letter-spacing: 0.01em; display: block; line-height: 1.15;
}
.nav-logo-sub {
  font-family: var(--font-body); font-size: 0.6rem; color: rgba(255,255,255,0.55);
  letter-spacing: 0.28em; text-transform: uppercase; display: block;
  margin-top: 2px; font-weight: 400;
}
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.7); font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 400; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { background: var(--gold) !important; color: var(--green-dark) !important; padding: 0.5rem 1.4rem; border-radius: 2px; font-weight: 500 !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--gold-light) !important; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 24px; height: 1.5px; background: var(--gold); transition: all 0.3s; }
.nav-mobile-menu {
  display: none; position: fixed; top: 65px; left: 0; right: 0;
  background: var(--green-dark); border-bottom: 1px solid var(--gold-dim);
  padding: 1.5rem 2rem; flex-direction: column; gap: 1.2rem; z-index: 99;
}
.nav-mobile-menu a { color: rgba(255,255,255,0.75); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-mobile-menu a:hover { color: var(--gold); }
.nav-mobile-menu.open { display: flex; }

/* ── TICKER ──────────────────────────────── */
.ticker { background: var(--gold); padding: 0.72rem 0; overflow: hidden; white-space: nowrap; }
.ticker-inner {
  display: inline-block; animation: ticker 30s linear infinite;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-dark); font-weight: 500;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── PAGE HERO (inner pages) ─────────────── */
.page-hero {
  min-height: 38vh; background: var(--green-dark);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 7rem 5rem 4rem; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(201,168,76,0.03) 40px, rgba(201,168,76,0.03) 80px);
}
.page-hero-badge {
  display: inline-block; border: 1px solid var(--gold); color: var(--gold);
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.3rem 0.85rem; margin-bottom: 1.25rem; position: relative; z-index: 1;
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); font-weight: 700; line-height: 1.1; position: relative; z-index: 1; }
.page-hero h1 em { color: var(--gold); font-style: normal; }
.page-hero p { color: rgba(255,255,255,0.55); font-size: 1rem; font-weight: 300; max-width: 520px; margin-top: 1rem; position: relative; z-index: 1; }

/* ── SECTION UTILS ───────────────────────── */
.section { padding: var(--section-pad); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label { font-size: 0.63rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 0.6rem; font-weight: 500; }
.section-title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.5vw, 3rem); color: var(--text-dark); line-height: 1.15; font-weight: 700; margin-bottom: 1.25rem; }
.section-title span { color: var(--green-mid); }
.section-text { font-size: 1rem; color: var(--text-mid); line-height: 1.8; max-width: 560px; font-weight: 300; }

.section--dark { background: var(--green-dark); }
.section--dark .section-label { color: var(--gold); }
.section--dark .section-title { color: var(--white); }
.section--dark .section-title span { color: var(--gold); }
.section--dark .section-text { color: rgba(255,255,255,0.55); }

.section--mid { background: var(--green-mid); }
.section--mid .section-label { color: var(--gold); }
.section--mid .section-title { color: var(--white); }
.section--mid .section-title span { color: var(--gold-light); }
.section--mid .section-text { color: rgba(255,255,255,0.6); }

/* ── BUTTONS ─────────────────────────────── */
.btn { display: inline-block; padding: 0.85rem 2rem; border-radius: 2px; font-size: 0.8rem; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 500; transition: all 0.2s; cursor: pointer; font-family: var(--font-body); }
.btn-gold { background: var(--gold); color: var(--green-dark); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline-white { border: 1px solid rgba(255,255,255,0.3); color: var(--white); background: transparent; }
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-green { border: 1px solid var(--green-light); color: var(--green-mid); background: transparent; }
.btn-outline-green:hover { background: var(--green-pale); }

/* ── STAT CARDS ──────────────────────────── */
.stat-card { padding: 1.5rem; border: 1px solid rgba(45,138,82,0.2); border-left: 3px solid var(--green-light); }
.stat-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--green-mid); font-weight: 700; }
.stat-label { font-size: 0.73rem; color: var(--text-mid); letter-spacing: 0.07em; margin-top: 0.2rem; }

/* ── FOOTER ──────────────────────────────── */
footer { background: var(--green-dark); border-top: 1px solid var(--gold-dim); }
.footer-main {
  max-width: var(--max-w); margin: 0 auto;
  padding: 4rem 5rem 3rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem;
}
.footer-brand p { font-size: 0.87rem; color: rgba(255,255,255,0.4); line-height: 1.7; margin-top: 1rem; max-width: 260px; font-weight: 300; }
.footer-col h4 { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.87rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col address { font-style: normal; font-size: 0.87rem; color: rgba(255,255,255,0.45); line-height: 1.8; font-weight: 300; }
.footer-col address a { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.5rem 5rem; display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.25); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 5rem 3rem; }
  nav { padding: 1rem 2rem; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 3rem 2rem; }
  .footer-bottom { padding: 1.25rem 2rem; }
}
@media (max-width: 768px) {
  :root { --section-pad: 4rem 1.5rem; }
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-hero { padding: 6rem 1.5rem 3rem; }
  .footer-main { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
  .footer-bottom { padding: 1rem 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── COPY EMAIL ───────────────────────────── */
.copy-email {
  position: relative; cursor: pointer;
}
.copy-email::after {
  content: 'Copied!';
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--green-dark); color: var(--gold);
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 4px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.copy-email.copied::after {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
