/* =========================================================
   Sea and Shore Trade Services — Global Stylesheet
   Brand: #6FBE46 (bright green) · #416A32 (dark green)
   ========================================================= */

:root {
  --green: #6FBE46;
  --green-dark: #416A32;
  --green-deep: #33531f;
  --green-soft: #eef6e8;
  --green-mist: #f6faf2;
  --ink: #16220f;
  --ink-soft: #47553f;
  --muted: #7a8574;
  --line: #e7ece1;
  --white: #ffffff;
  --bg: #ffffff;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --shadow-sm: 0 2px 10px rgba(22, 34, 15, 0.05);
  --shadow-md: 0 18px 50px -20px rgba(22, 34, 15, 0.28);

  --font-head: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--ink-soft); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--green);
  vertical-align: middle;
  margin-right: 0.7rem;
  transform: translateY(-3px);
}
.text-center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.7rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
              color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(65, 106, 50, 0.9);
}
.btn-primary:hover { background: var(--green); transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(111, 190, 70, 0.7); }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); transform: translateY(-3px); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(22, 34, 15, 0.06);
  padding: 0.7rem 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 42px; width: auto; transition: height 0.4s var(--ease); }
.site-header.scrolled .nav-logo img { height: 36px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--green-dark); }
.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(9rem, 18vh, 13rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(111,190,70,0.16), transparent 60%),
    radial-gradient(50% 50% at 8% 90%, rgba(65,106,50,0.10), transparent 60%),
    var(--green-mist);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--green-dark); }
.hero .lead { margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.hero-orb {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--green), var(--green-dark), var(--green-deep), var(--green));
  filter: blur(2px);
  opacity: 0.14;
  animation: spin 26s linear infinite;
}
.hero-ring {
  position: absolute; inset: 0;
  border: 1.5px dashed rgba(65,106,50,0.25);
  border-radius: 50%;
  animation: spin 60s linear infinite reverse;
}
.hero-mark {
  position: relative;
  width: 58%;
  filter: drop-shadow(0 30px 50px rgba(65,106,50,0.25));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.stat .num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.03em;
}
.stat .label { font-size: 0.92rem; color: var(--muted); margin-top: 0.2rem; }

/* ---------- Section heading ---------- */
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.8rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 1rem; }

/* ---------- Offerings grid (home) ---------- */
.offerings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.offer {
  position: relative;
  padding: 2.2rem 2rem 2.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}
.offer::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.offer:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-md); }
.offer:hover::before { transform: scaleX(1); }
.offer-index {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.1em;
}
.offer h3 { margin: 0.9rem 0 0.7rem; }
.offer p { font-size: 0.98rem; }
.offer .more {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.3rem;
  font-family: var(--font-head);
  font-weight: 600; font-size: 0.9rem;
  color: var(--green-dark);
}
.offer .more .arrow { transition: transform 0.35s var(--ease); }
.offer:hover .more .arrow { transform: translateX(4px); }

/* ---------- Split feature (home) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split-visual {
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius);
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(111,190,70,0.25), transparent 60%),
    linear-gradient(160deg, var(--green-dark), var(--green-deep));
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.split-visual img { width: 46%; opacity: 0.95; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25)); }
.split-visual .glow {
  position: absolute; width: 120%; height: 120%;
  background: radial-gradient(circle, rgba(111,190,70,0.35), transparent 55%);
  animation: pulse 7s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.15); opacity: 0.9; } }
.check-list { margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--ink-soft); }
.check-list svg { flex: none; margin-top: 3px; }

/* ---------- Products page ---------- */
.product {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}
.product:nth-child(even) .product-media { order: 2; }
.product-media {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--green-soft), #fff);
  border: 1px solid var(--line);
}
.product-media .pm-mark { width: 42%; opacity: 0.9; transition: transform 0.6s var(--ease); }
.product:hover .product-media .pm-mark { transform: scale(1.05) rotate(-3deg); }
.product-media.dark { background: linear-gradient(160deg, var(--green-dark), var(--green-deep)); }
.product-media.dark .pm-mark { filter: brightness(0) invert(1); opacity: 0.92; }
.product-num {
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.9rem; color: var(--green); letter-spacing: 0.12em;
}
.product h2 { margin: 0.7rem 0 0.4rem; }
.product .sub { font-family: var(--font-head); color: var(--green-dark); font-weight: 500; margin-bottom: 1.2rem; font-size: 1.02rem; }
.product p + p { margin-top: 1rem; }
.metrics { display: flex; flex-wrap: wrap; gap: 1.8rem 2.6rem; margin: 1.6rem 0; }
.metric .m-num { font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--green-dark); letter-spacing: -0.02em; }
.metric .m-label { font-size: 0.85rem; color: var(--muted); }
.product .visit {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  color: var(--green-dark);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
  padding-bottom: 2px;
}
.product .visit:hover { border-color: var(--green); gap: 0.8rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(8.5rem, 16vh, 11rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(55% 60% at 85% 0%, rgba(111,190,70,0.14), transparent 60%),
    var(--green-mist);
  text-align: center;
}
.page-hero .lead { margin: 1.2rem auto 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.form-field { position: relative; margin-bottom: 1.6rem; }
.form-field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.85rem; font-weight: 500;
  color: var(--ink-soft); margin-bottom: 0.5rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--ink);
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(111,190,70,0.14);
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.form-success {
  display: none;
  align-items: center; gap: 0.7rem;
  margin-top: 1.2rem; padding: 0.9rem 1.1rem;
  background: var(--green-soft);
  border-radius: 10px;
  color: var(--green-deep);
  font-family: var(--font-head); font-weight: 500; font-size: 0.95rem;
  animation: fadeUp 0.5s var(--ease);
}
.form-success.show { display: flex; }

.contact-info { display: grid; gap: 1.8rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-item .ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--green-soft);
  display: grid; place-items: center;
  color: var(--green-dark);
}
.info-item h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.info-item p, .info-item a { font-size: 0.98rem; color: var(--ink-soft); }
.info-item a:hover { color: var(--green-dark); }
.map-embed {
  margin-top: 2.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}
.map-embed iframe { width: 100%; height: 300px; border: 0; filter: grayscale(0.2) contrast(1.02); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  background: linear-gradient(150deg, var(--green-dark), var(--green-deep));
  color: #fff;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 90% at 80% 10%, rgba(111,190,70,0.35), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); margin: 1rem auto 2rem; max-width: 52ch; }
.cta-band .btn-primary { background: #fff; color: var(--green-dark); }
.cta-band .btn-primary:hover { background: var(--green); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.75);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 54px; margin-bottom: 1.2rem; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.95rem; max-width: 34ch; }
.footer-col h4 {
  color: #fff; font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a, .footer-col p { color: rgba(255,255,255,0.72); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.8rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}
.footer-bottom a:hover { color: var(--green); }

/* ---------- Scroll reveal (only hide when JS is active) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* Page load fade — opacity only so <body> never becomes a containing block
   for position:fixed elements (that would break the sticky header & mobile menu). */
.page-fade { animation: pageIn 0.6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; order: -1; }
  .offerings { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-visual { max-width: 480px; }
  .product, .product:nth-child(even) .product-media { grid-template-columns: 1fr; }
  .product:nth-child(even) .product-media { order: 0; }
  .product-media { max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    padding: 2rem 2.2rem;
    background: #fff;
    box-shadow: -10px 0 40px rgba(22,34,15,0.12);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.3rem; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-cta { display: none; }
  .offerings { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
