/* ==========================================================================
   components.css  —  shared across every page: navbar, footer, floating
   contact buttons, generic card. Page-specific styling lives in its own file.
   ========================================================================== */

/* --- Header / Navbar --------------------------------------------------
   Full-width bar: logo + wordmark left, nav right, CTA far right.
   A thin gradient rule sits along the very top edge.
   ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
.site-header::before {                 /* gold accent rule along the top */
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--green-700), var(--gold) 42%, var(--gold-soft) 62%, var(--green-700));
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 34px -22px rgba(15, 61, 36, .5);
  border-bottom-color: var(--gold-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .6rem 0;
  transition: padding .3s ease;
}
.scrolled .nav { padding: .35rem 0; }

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.nav__logo img {
  height: 52px; width: 52px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 1px var(--gold-soft), 0 8px 18px -10px rgba(15, 61, 36, .55);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav__logo:hover img { transform: rotate(-8deg) scale(1.06); }
.nav__brand { display: flex; flex-direction: column; line-height: 1.08; }
.nav__brand b {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -.01em;
  color: var(--green-900);
}
.nav__brand span {
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 560px) { .nav__logo img { height: 44px; width: 44px; } .nav__brand b { font-size: 1rem; } }
@media (max-width: 380px) { .nav__brand { display: none; } }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
  margin-right: .5rem;
}
.nav__links > li { position: relative; }
.nav__links a {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: .45rem 0;
  position: relative;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -1px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--green-600), var(--gold));
  transform: translateX(-50%);
  transition: width .28s cubic-bezier(.2,.7,.2,1);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--green-800); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }

.nav__cta {
  flex-shrink: 0;
  box-shadow: 0 10px 24px -12px rgba(20, 83, 45, .6);
}
.nav__cta:hover { box-shadow: 0 14px 28px -12px rgba(183, 144, 47, .6); }

/* --- Navbar dropdown (Services / Products) --- */
.nav__item--dropdown { position: relative; }
.nav__item--dropdown > a { display: inline-flex; align-items: center; gap: .3rem; }
.nav__item--dropdown::after {            /* invisible bridge so the menu doesn't drop on hover */
  content: "";
  position: absolute;
  top: 100%; left: -1rem; right: -1rem;
  height: 16px;
}
.nav__caret {
  width: 12px; height: 12px;
  transition: transform .25s ease;
}
.nav__item--dropdown:hover .nav__caret,
.nav__item--dropdown:focus-within .nav__caret { transform: rotate(180deg); }

.nav__submenu {
  position: absolute;
  top: 100%;
  left: -.6rem;
  min-width: 224px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .45rem;
  display: grid;
  gap: .05rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 30;
  max-height: 76vh;
  overflow-y: auto;
}
.nav__submenu::before {                 /* little pointer up to the parent link */
  content: "";
  position: absolute;
  top: -6px; left: 1.4rem;
  width: 10px; height: 10px;
  background: #fff;
  border-left: 1px solid var(--gold);
  border-top: 1px solid var(--gold);
  transform: rotate(45deg);
}
.nav__item--dropdown:hover .nav__submenu,
.nav__item--dropdown:focus-within .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(7px);
}
.nav__submenu a {
  display: block;
  padding: .55rem .75rem;
  border-radius: 7px;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--ink-soft);
}
.nav__submenu a::after { display: none; }
.nav__submenu a:hover {
  background: var(--green-050);
  color: var(--green-800);
  padding-left: 1rem;
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--green-800);
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { width: 20px; height: 20px; }

/* Mobile nav */
@media (max-width: 1200px) {
  .nav__links {
    position: absolute;
    top: calc(100% + .6rem);
    left: 0; right: 0;
    margin-right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: .6rem;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
  }
  .nav { position: relative; }
  .nav.open .nav__links { transform: scaleY(1); opacity: 1; }
  .nav__links a { padding: .7rem .8rem; border-radius: 8px; }
  .nav__links a:hover { background: var(--green-050); }
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }

  /* dropdown becomes a static, always-open indented list on mobile */
  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--gold-soft);
    border-radius: 0;
    padding: 0 0 .3rem .6rem;
    margin-left: .8rem;
    min-width: 0;
  }
  .nav__submenu::before { display: none; }
  .nav__item--dropdown::after { display: none; }
  .nav__submenu a { padding: .5rem .8rem; font-size: .85rem; color: var(--ink-soft); }
  .nav__submenu a:hover { padding-left: .8rem; }
  .nav__caret { display: none; }
}

/* --- Floating contact buttons ------------------------------------- */
.floating-contact {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.floating-contact a {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
  animation: float-y 3.5s ease-in-out infinite;
}
.floating-contact a:nth-child(2) { animation-delay: .6s; }
.floating-contact a:hover { transform: scale(1.12); }
.floating-contact .fc-whatsapp { background: #25d366; }
.floating-contact .fc-call { background: var(--green-700); }
.floating-contact svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .floating-contact { left: 12px; bottom: 14px; gap: .5rem; }
  .floating-contact a { width: 42px; height: 42px; animation: none; }
  .floating-contact svg { width: 19px; height: 19px; }
}

/* --- Footer ------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, #123f27, var(--green-900));
  color: #cfe3d6;
  padding-top: clamp(3rem, 7vw, 5rem);
  border-top: 4px solid var(--gold);
}
.site-footer a { color: #cfe3d6; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__brand img {
  height: 92px; width: 92px;
  object-fit: cover;
  border-radius: 50%;
  background: #f5f2e6;
  margin-bottom: 1.1rem;
}
.footer__brand p { color: #a9c6b4; font-size: .9rem; }

.footer__col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer__col ul { display: grid; gap: .6rem; font-size: .9rem; }

.footer__contact li { display: flex; gap: .6rem; font-size: .9rem; margin-bottom: .7rem; color: #a9c6b4; }
.footer__contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .2rem; }

.footer__social { display: flex; gap: .7rem; margin-top: 1rem; }
.footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.footer__social a:hover { background: var(--green-600); }
.footer__social svg { width: 17px; height: 17px; }

.footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.3rem;
  font-size: .82rem;
  color: #9fbcac;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem 1.4rem;
  text-align: center;
}
.footer__bar-links { display: inline-flex; gap: 1.1rem; }
.footer__bar-links a { color: #cfe3d6; }
.footer__bar-links a:hover { color: #fff; text-decoration: underline; }
.footer__bar-credit { color: #7fa593; }
.footer__bar-credit strong { color: var(--gold-soft); font-weight: 600; }
@media (max-width: 640px) {
  .footer__bar { gap: .45rem; padding-block: 1.1rem; font-size: .78rem; }
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer__brand img { height: 74px; width: 74px; }
  .footer__col h4 { font-size: 1rem; }
  .site-footer { padding-top: 2.5rem; }
}

/* ---------- Contact form: honeypot + result note ------------------------ */
/* Hidden spam-trap field — kept out of view and out of the tab order. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-note { font-size: .85rem; margin-top: .8rem; min-height: 1.2em; }
.form-note.ok { color: var(--green-700); font-weight: 500; }
.form-note.error { color: #b3261e; font-weight: 500; }

/* --- Generic card (used by several pages) ------------------------ */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 1.2rem 1.3rem 1.4rem; }

/* --- Inner-page hero (About / Services / Products / Contact) ---- */
.page-hero {
  background: linear-gradient(rgba(15,61,36,.72), rgba(15,61,36,.82)), var(--green-800);
  color: #fff;
  text-align: left;
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-bottom: 4px solid var(--gold);
}
.page-hero .container { max-width: 900px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.85); margin-top: .8rem; }
.page-hero__crumbs { margin-top: 1rem; font-size: .85rem; color: rgba(255,255,255,.7); }
.page-hero__crumbs a:hover { color: #fff; }

/* --- Image banner + breadcrumb bar (About / Products / Product) ---- */
.about-banner {
  position: relative;
  height: clamp(200px, 26vw, 300px);
  overflow: hidden;
  border-bottom: 4px solid var(--gold);
}
.about-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: zoom-slow 16s ease-in-out infinite alternate;
}
.breadcrumb {
  background: var(--gold-050);
  border-bottom: 1px solid var(--gold-soft);
  text-align: center;
  padding: .95rem 0;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--green-800);
  text-transform: uppercase;
}
.breadcrumb a { color: var(--gold); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
