/* =========================================================
   YPJ PLANTATIONS SDN. BHD.
   Main Stylesheet
   ========================================================= */


/* =========================================================
   1. ROOT / DESIGN TOKENS
   ========================================================= */

:root{
  --forest-deep:#123524;
  --forest:#1d5137;
  --forest-light:#3d7253;

  --gold:#b99552;
  --gold-light:#d2b87c;

  --paper:#ffffff;
  --off-white:#f8f7f2;
  --beige:#eee9dd;

  --ink:#17201a;
  --ink-soft:#667068;

  --line:rgba(18,53,36,0.13);

  --shadow:
    0 18px 50px rgba(18,53,36,0.10);

  --shadow-soft:
    0 10px 30px rgba(18,53,36,0.08);

  --radius:8px;

  --container:1240px;

  --transition:0.25s ease;
}


/* =========================================================
   2. RESET
   ========================================================= */

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

html{
  scroll-behavior:smooth;
  scroll-padding-top:100px;
}

body{
  font-family:'IBM Plex Sans',sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.65;
  overflow-x:hidden;
}

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

a{
  text-decoration:none;
  color:inherit;
}

button,
input,
textarea,
select{
  font:inherit;
}

button,
a{
  -webkit-tap-highlight-color:transparent;
}

button{
  cursor:pointer;
}

ul{
  list-style:none;
}


/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:4px;
}

@media (prefers-reduced-motion:reduce){

  html{
    scroll-behavior:auto;
  }

  *,
  *::before,
  *::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
}


/* =========================================================
   4. GLOBAL LAYOUT
   ========================================================= */

.container{
  width:min(calc(100% - 48px),var(--container));
  margin-inline:auto;
}

section{
  position:relative;
}

main{
  overflow:hidden;
}

h1,
h2,
h3{
  font-family:'Fraunces',serif;
  color:var(--forest-deep);
  font-weight:500;
  line-height:1.08;
}

h1{
  font-size:clamp(3rem,6vw,6rem);
}

h2{
  font-size:clamp(2.2rem,4vw,4.2rem);
}

h3{
  font-size:clamp(1.35rem,2vw,1.85rem);
}

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

.eyebrow,
.hero-eyebrow{
  display:inline-block;
  font-size:0.76rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.15em;
  color:var(--gold);
}


/* =========================================================
   5. BUTTONS
   ========================================================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.55rem;

  min-height:46px;

  padding:0.75rem 1.35rem;

  border:1px solid transparent;
  border-radius:4px;

  font-size:0.88rem;
  font-weight:600;

  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.btn:hover{
  transform:translateY(-2px);
}

.btn-primary{
  background:var(--gold);
  color:var(--forest-deep);
}

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

.btn-dark{
  background:var(--forest-deep);
  color:#fff;
}

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

.btn-outline{
  color:#fff;
  border-color:rgba(255,255,255,0.6);
  background:rgba(255,255,255,0.06);
  backdrop-filter:blur(6px);
}

.btn-outline:hover{
  background:#fff;
  color:var(--forest-deep);
  border-color:#fff;
}

.btn-gold{
  background:var(--gold);
  color:var(--forest-deep);
}

.btn-gold:hover{
  background:var(--gold-light);
}


/* =========================================================
   6. HEADER / NAVBAR
   ========================================================= */

.site-header{
  position:sticky;
  top:0;

  z-index:100;

  background:rgba(251,250,246,0.95);

  backdrop-filter:
    saturate(140%)
    blur(10px);

  border-bottom:1px solid var(--line);
}

.nav-row{
  display:flex;
  align-items:center;
  justify-content:space-between;

  min-height:84px;

  gap:1.25rem;
}


/* Brand */

.brand{
  display:flex;
  align-items:center;

  gap:0.8rem;

  flex-shrink:0;
}

.brand-logo{
  width:50px;
  height:50px;

  object-fit:contain;

  flex-shrink:0;
}

.brand-text{
  line-height:1.2;
}

.brand-text strong{
  display:block;

  font-family:'Fraunces',serif;
  font-size:1.08rem;
  font-weight:600;

  color:var(--forest-deep);
}

.brand-text span{
  display:block;

  margin-top:2px;

  font-size:0.7rem;

  color:var(--ink-soft);

  letter-spacing:0.03em;
}


/* Desktop nav */

.primary-nav{
  display:flex;
  align-items:center;
}

.primary-nav > ul{
  display:flex;
  align-items:center;

  gap:clamp(0.8rem,1.6vw,1.8rem);
}

.nav-item{
  position:relative;
}

.nav-link{
  position:relative;

  display:flex;
  align-items:center;

  gap:0.35rem;

  padding:0.65rem 0;

  border:0;
  background:none;

  color:var(--ink);

  font-size:0.88rem;
  font-weight:500;

  white-space:nowrap;
}

.nav-link::after{
  content:'';

  position:absolute;

  left:0;
  right:0;
  bottom:0;

  height:2px;

  background:var(--gold);

  transform:scaleX(0);
  transform-origin:left;

  transition:transform var(--transition);
}

.nav-link:hover::after,
.nav-item.open .nav-link::after{
  transform:scaleX(1);
}


/* Caret */

.caret{
  width:7px;
  height:7px;

  border-right:1.5px solid var(--ink-soft);
  border-bottom:1.5px solid var(--ink-soft);

  transform:rotate(45deg);

  margin-top:-3px;

  transition:
    transform var(--transition),
    margin var(--transition);
}

.nav-item.open .caret{
  transform:rotate(-135deg);
  margin-top:3px;
}


/* Dropdown */

.dropdown{
  position:absolute;

  top:calc(100% + 14px);
  left:50%;

  min-width:290px;

  transform:
    translateX(-50%)
    translateY(-8px);

  background:var(--paper);

  border:1px solid var(--line);
  border-radius:var(--radius);

  box-shadow:var(--shadow);

  padding:0.6rem;

  opacity:0;
  visibility:hidden;

  transition:
    opacity var(--transition),
    transform var(--transition),
    visibility var(--transition);
}

.nav-item.open .dropdown{
  opacity:1;
  visibility:visible;

  transform:
    translateX(-50%)
    translateY(0);
}

.dropdown a{
  display:block;

  padding:0.8rem 0.9rem;

  border-radius:5px;

  font-size:0.88rem;

  color:var(--ink-soft);

  transition:
    background var(--transition),
    color var(--transition);
}

.dropdown a:hover{
  color:var(--forest-deep);
  background:var(--beige);
}


/* Right nav */

.nav-right{
  display:flex;
  align-items:center;

  gap:0.8rem;

  flex-shrink:0;
}


/* Language */

.lang-switch{
  display:flex;
  align-items:center;

  overflow:hidden;

  border:1px solid var(--line);
  border-radius:30px;

  background:#fff;
}

.lang-switch button{
  border:0;

  background:none;

  padding:0.38rem 0.7rem;

  color:var(--ink-soft);

  font-size:0.75rem;
  font-weight:600;
}

.lang-switch button.active{
  background:var(--forest-deep);
  color:#fff;
}

.nav-complaint-btn{
  padding-inline:1.1rem;
}


/* Hamburger */

.hamburger{
  display:none;

  width:44px;
  height:44px;

  border:0;
  border-radius:5px;

  background:transparent;

  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:5px;
}

.hamburger span{
  display:block;

  width:24px;
  height:2px;

  background:var(--forest-deep);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1){
  transform:translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2){
  opacity:0;
}

.hamburger[aria-expanded="true"] span:nth-child(3){
  transform:translateY(-7px) rotate(-45deg);
}


/* =========================================================
   7. MOBILE NAVIGATION
   ========================================================= */

.mobile-nav{
  display:none;
}


/* Mobile / Tablet navigation */
@media (max-width:1100px){

  .mobile-nav{
    display:block;

    position:fixed;

    top:84px;
    left:0;

    width:100%;
    height:calc(100dvh - 84px);

    background:#ffffff;

    z-index:9999;

    padding:1.5rem 24px 3rem;

    overflow-y:auto;
    overflow-x:hidden;

    opacity:0;
    visibility:hidden;
    pointer-events:none;

    transform:translateY(-12px);

    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease;
  }


  /* Menu OPEN */
  .mobile-nav.open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;

    transform:translateY(0);
  }


  /* Main menu */
  .mobile-nav > ul{
    display:flex !important;
    flex-direction:column;

    width:100%;

    margin:0;
    padding:0;
  }


  .mobile-nav > ul > li{
    display:block;

    width:100%;

    border-bottom:1px solid var(--line);
  }


  /* Links + dropdown buttons */
  .mobile-top-link{
    width:100%;
    min-height:58px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:1rem 0.25rem;

    border:0;

    background:transparent;

    color:var(--forest-deep);

    font-family:'Fraunces',serif;
    font-size:1.1rem;
    font-weight:500;

    text-align:left;

    opacity:1;
    visibility:visible;
  }


  a.mobile-top-link{
    color:var(--forest-deep);
  }


  /* About / Operations submenus */
  .mobile-sub{
    width:100%;

    max-height:0;

    overflow:hidden;

    padding:0 0.4rem;

    opacity:0;

    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      padding 0.35s ease;
  }


  .mobile-sub.open{
    max-height:600px;

    padding-bottom:0.8rem;

    opacity:1;
  }


  .mobile-sub a{
    display:flex;
    align-items:center;

    width:100%;
    min-height:46px;

    padding:0.65rem;

    color:var(--ink-soft);

    font-size:0.9rem;

    border-radius:4px;
  }


  .mobile-sub a:hover{
    color:var(--forest-deep);

    background:var(--off-white);
  }


  /* Arrow */
  .mobile-caret{
    width:9px;
    height:9px;

    flex-shrink:0;

    margin-right:5px;

    border-right:2px solid var(--ink-soft);
    border-bottom:2px solid var(--ink-soft);

    transform:rotate(45deg);

    transition:transform 0.25s ease;
  }


  .mobile-top-link[aria-expanded="true"] .mobile-caret{
    transform:rotate(-135deg);
  }


  /* Complaint button */
  .mobile-nav-footer{
    width:100%;

    margin-top:1.5rem;
  }


  .mobile-nav-footer .btn{
    width:100%;
  }

}


/* Navbar becomes 72px on smaller phones */
@media (max-width:700px){

  .mobile-nav{
    top:72px;

    height:calc(100dvh - 72px);

    padding:
      1.2rem
      18px
      2.5rem;
  }

}


/* =========================================================
   8. HERO
   ========================================================= */

.hero{
  position:relative;

  min-height:calc(100vh - 84px);

  display:flex;
  align-items:center;

  overflow:hidden;

  background:var(--forest-deep);
}


/* Hero background image */

.hero-bg{
  position:absolute;
  inset:0;

  z-index:0;
}

.hero-bg img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;

  object-fit:cover;
  object-position:center;
  opacity:0;
  transition:opacity 1.2s ease-in-out;
}

.hero-bg img.is-active{
  opacity:1;
}

.hero-dots{
  position:absolute;
  bottom:8px;
  left:50%;
  transform:translateX(-50%);
  z-index:3;
  display:flex;
  align-items:center;
}

.hero-dots[hidden]{
  display:none;
}

.hero-dot{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  cursor:pointer;
}

.hero-dot::before{
  content:'';
  width:8px;
  height:8px;
  border:1px solid rgba(255,255,255,0.85);
  border-radius:50%;
  background:rgba(255,255,255,0.25);
  transition:background 0.25s ease, transform 0.25s ease;
}

.hero-dot.is-active::before{
  background:var(--gold-light);
  border-color:var(--gold-light);
  transform:scale(1.25);
}

.hero-dot:focus-visible{
  outline:2px solid var(--gold-light);
  outline-offset:-4px;
}

@media (prefers-reduced-motion:reduce){
  .hero .hero-bg img,
  .hero .hero-dot::before{
    transition:none;
  }

  .hero .hero-eyebrow,
  .hero .hero-content h1,
  .hero .hero-content .lede,
  .hero .hero-ctas{
    animation:none !important;
    opacity:1;
    transform:none;
  }
}


/* Dark overlay */

.hero-bg::after{
  content:'';

  position:absolute;
  inset:0;

  background:
    linear-gradient(
      180deg,
      rgba(7,27,17,0.28) 0%,
      rgba(7,27,17,0.42) 50%,
      rgba(7,27,17,0.68) 100%
    );
}


/* Hero content area */

.hero-inner{
  position:relative;

  z-index:2;

  width:100%;

  display:flex;
  justify-content:center;
  align-items:center;

  padding-top:80px;
  padding-bottom:80px;
}


/* Center all hero text */

.hero-content{
  width:100%;
  max-width:1000px;

  margin:0 auto;

  text-align:center;

  display:flex;
  flex-direction:column;
  align-items:center;
}


/* Small gold text */

.hero-eyebrow{
  margin-bottom:1.2rem;

  color:var(--gold-light);

  text-align:center;
}


/* Main title */

.hero h1{
  max-width:950px;

  margin:0 auto 1.5rem;

  color:#fff;

  text-align:center;

  font-size:clamp(3.5rem,6.5vw,6.5rem);

  line-height:0.98;

  text-wrap:balance;
}


/* Description */

.hero .lede{
  max-width:780px;

  margin:0 auto;

  color:rgba(255,255,255,0.88);

  font-size:clamp(1rem,1.4vw,1.2rem);

  line-height:1.7;

  text-align:center;
}


/* Buttons */

.hero-ctas{
  display:flex;
  align-items:center;
  justify-content:center;

  flex-wrap:wrap;

  gap:0.9rem;

  margin-top:2rem;
}


/* =========================================================
   9. SECTION HEADING
   ========================================================= */

.section-head{
  max-width:780px;

  margin-bottom:3rem;
}

.section-head .eyebrow{
  margin-bottom:0.8rem;
}

.section-head h2{
  margin-bottom:1rem;
}

.section-head p{
  max-width:700px;

  font-size:1rem;
}


/* =========================================================
   10. WHAT WE DO / ABOUT
   ========================================================= */

.about{
  padding:120px 0;

  background:var(--off-white);
}

.about-grid{
  display:grid;

  grid-template-columns:
    minmax(0,1fr)
    minmax(0,1fr);

  gap:clamp(3rem,7vw,7rem);

  align-items:center;
}

.about-media{
  position:relative;

  min-height:620px;

  overflow:hidden;

  background:var(--beige);
}

.about-media img{
  width:100%;
  height:100%;

  position:absolute;

  inset:0;

  object-fit:cover;
}

.caption-tag{
  position:absolute;

  left:24px;
  bottom:24px;

  z-index:2;

  padding:0.75rem 1rem;

  background:rgba(255,255,255,0.94);

  color:var(--forest-deep);

  font-family:'Fraunces',serif;
  font-size:1rem;
  font-weight:600;

  box-shadow:var(--shadow-soft);
}

.about-copy .eyebrow{
  margin-bottom:0.85rem;
}

.about-copy h2{
  margin-bottom:1.7rem;
}

.about-copy .body{
  margin-bottom:1.1rem;

  font-size:0.98rem;
}

.about-copy .highlight{
  color:var(--forest-deep);

  font-weight:600;
}

.about-copy .btn{
  margin-top:1rem;
}


/* =========================================================
   11. OPERATIONS
   ========================================================= */

.operations{
  padding:120px 0;

  background:#fff;
}

.ops-grid{
  display:grid;

  grid-template-columns:repeat(3,1fr);

  gap:1.2rem;
}

.ops-card{
  position:relative;

  min-height:390px;

  display:flex;
  align-items:flex-end;

  overflow:hidden;

  padding:2rem;

  background:
    linear-gradient(
      160deg,
      var(--forest) 0%,
      var(--forest-deep) 100%
    );

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.ops-card:nth-child(2){
  min-height:460px;
}

.ops-card:hover{
  transform:translateY(-8px);

  box-shadow:var(--shadow);
}

.ops-card::before{
  content:'';

  position:absolute;

  inset:0;

  background:
    linear-gradient(
      180deg,
      transparent 20%,
      rgba(4,24,14,0.78) 100%
    );

  z-index:1;
}

.ops-card::after{
  content:'';

  position:absolute;

  width:180px;
  height:180px;

  border:1px solid rgba(185,149,82,0.35);

  border-radius:50%;

  top:-60px;
  right:-60px;
}

.ops-body{
  position:relative;

  z-index:2;
}

.ops-num{
  display:inline-block;

  margin-bottom:0.8rem;

  color:var(--gold-light);

  font-size:0.78rem;
  font-weight:600;

  letter-spacing:0.12em;
  text-transform:uppercase;
}

.ops-card h3{
  margin-bottom:1rem;

  color:#fff;
}

.ops-card p{
  color:rgba(255,255,255,0.72);

  margin-bottom:1rem;
}

.ops-link{
  display:inline-flex;
  align-items:center;

  margin-top:0.4rem;

  color:var(--gold);

  font-size:0.86rem;
  font-weight:600;

  transition:
    color var(--transition),
    transform var(--transition);
}

.ops-card:hover .ops-link,
.leader-card:hover .ops-link,
.news-card:hover .ops-link{
  color:var(--gold-light);

  transform:translateX(4px);
}


/* =========================================================
   12. SUSTAINABILITY
   ========================================================= */

.sustainability{
  padding:120px 0;

  background:var(--forest-deep);

  color:#fff;

  overflow:hidden;
}

.sustainability::before{
  content:'';

  position:absolute;

  width:550px;
  height:550px;

  border:1px solid rgba(185,149,82,0.15);

  border-radius:50%;

  left:-250px;
  bottom:-300px;
}

.sustain-grid{
  display:grid;

  grid-template-columns:
    minmax(0,0.95fr)
    minmax(0,1.05fr);

  gap:clamp(3rem,7vw,7rem);

  align-items:center;
}

.sustain-copy{
  position:relative;

  z-index:2;
}

.sustain-copy .eyebrow{
  color:var(--gold-light);

  margin-bottom:0.8rem;
}

.sustain-copy h2{
  color:#fff;

  margin-bottom:1.5rem;
}

.sustain-copy p{
  max-width:620px;

  color:rgba(255,255,255,0.74);

  margin-bottom:1rem;
}

.sustain-copy .btn{
  margin-top:1.25rem;
}

.sustain-media{
  position:relative;

  min-height:560px;

  background:
    linear-gradient(
      145deg,
      rgba(185,149,82,0.3),
      rgba(255,255,255,0.05)
    );

  overflow:hidden;
}

.sustain-media img{
  width:100%;
  height:100%;

  position:absolute;

  inset:0;

  object-fit:cover;
}


/* =========================================================
   13. LEADERSHIP / CORPORATE
   ========================================================= */

.leadership{
  padding:120px 0;

  background:var(--off-white);
}

.leader-grid{
  display:grid;

  grid-template-columns:repeat(3,1fr);

  gap:1rem;
}

.leader-card{
  min-height:260px;

  display:flex;
  flex-direction:column;
  justify-content:flex-end;

  padding:2rem;

  background:#fff;

  border-top:3px solid var(--gold);

  box-shadow:0 5px 20px rgba(18,53,36,0.04);

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.leader-card:hover{
  transform:translateY(-6px);

  box-shadow:var(--shadow-soft);
}

.leader-card h3{
  margin-bottom:1rem;
}

.leader-card p{
  margin-bottom:1rem;
}


/* =========================================================
   14. NEWS
   ========================================================= */

.news{
  padding:120px 0;

  background:#fff;
}

.news-head-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;

  gap:2rem;

  margin-bottom:3rem;
}

.news-head-row .section-head{
  margin-bottom:0;
}

.news-grid{
  display:grid;

  grid-template-columns:repeat(3,1fr);

  gap:1.4rem;
}

.news-card{
  display:flex;
  flex-direction:column;

  min-width:0;

  border-bottom:1px solid var(--line);

  padding-bottom:1.8rem;
}

.news-media{
  position:relative;

  width:100%;
  aspect-ratio:16 / 10;

  overflow:hidden;

  margin-bottom:1.25rem;

  background:
    linear-gradient(
      135deg,
      var(--beige),
      #d7ded8
    );
}

.news-media img{
  width:100%;
  height:100%;

  object-fit:cover;

  transition:transform 0.45s ease;
}

.news-card:hover .news-media img{
  transform:scale(1.04);
}

.news-meta{
  margin-bottom:0.55rem;

  color:var(--gold);

  font-size:0.78rem;
  font-weight:600;

  text-transform:uppercase;
  letter-spacing:0.07em;
}

.news-card h3{
  font-size:1.35rem;

  line-height:1.3;

  margin-bottom:1rem;
}

.news-card p{
  margin-bottom:1rem;
}


/* =========================================================
   15. CTA BAND
   ========================================================= */

.cta-band{
  padding:80px 0;

  background:
    linear-gradient(
      135deg,
      var(--forest) 0%,
      var(--forest-deep) 100%
    );
}

.cta-band-inner{
  display:flex;

  align-items:center;
  justify-content:space-between;

  gap:2.5rem;
}

.cta-band h2{
  max-width:700px;

  color:#fff;

  font-size:clamp(2rem,3vw,3.2rem);
}

.cta-links{
  display:flex;

  flex-wrap:wrap;

  gap:0.75rem;

  justify-content:flex-end;
}


/* =========================================================
   16. FOOTER
   ========================================================= */

.site-footer{
  --footer-text:#f8f7f2;
  --footer-muted:#c2cec5;
  --footer-line:rgba(210,184,124,0.28);
  padding-top:clamp(48px,6vw,88px);
  border-top:3px solid var(--gold);
  background:var(--forest-deep);
  color:var(--footer-text);
}

.footer-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,0.8fr);
  gap:clamp(24px,3vw,48px);
  padding-bottom:64px;
}

.footer-grid > *{
  min-width:0;
}

.footer-brand-link{
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:20px;
  max-width:100%;
}

.footer-logo-frame{
  display:grid;
  place-items:center;
  width:88px;
  height:88px;
  padding:12px;
  border-radius:var(--radius);
  background:var(--footer-text);
}

.footer-logo-frame img{
  width:100%;
  height:auto;
}

.footer-company-name{
  font-family:'Fraunces',serif;
  font-size:1.5rem;
  font-weight:500;
  line-height:1.3;
}

.footer-company-name span{
  display:block;
  margin-top:6px;
  font-family:'IBM Plex Sans',sans-serif;
  font-size:0.875rem;
  font-weight:400;
  letter-spacing:0.06em;
}

.footer-brand p{
  max-width:34ch;
  margin-top:24px;
  color:var(--footer-muted);
  font-size:0.9375rem;
  line-height:1.8;
}

.footer-col h2{
  margin:0 0 20px;
  color:var(--gold-light);
  font-family:'Fraunces',serif;
  font-size:1.125rem;
  font-weight:500;
  line-height:1.4;
}

.footer-col ul{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.footer-col a{
  display:flex;
  align-items:center;
  min-height:44px;
  width:fit-content;
  max-width:100%;
  padding:8px 0;
  color:var(--footer-muted);
  font-size:0.9375rem;
  line-height:1.5;
  overflow-wrap:anywhere;
  text-decoration:underline;
  text-decoration-color:transparent;
  text-underline-offset:5px;
  text-decoration-thickness:1px;
  transition:color var(--transition),text-decoration-color var(--transition);
}

.footer-col a:hover,
.footer-col a:focus-visible{
  color:var(--gold-light);
  text-decoration-color:currentColor;
}

.site-footer a:focus-visible{
  outline:2px solid var(--gold-light);
  outline-offset:5px;
  border-radius:2px;
}

.footer-bottom{
  display:flex;
  align-items:center;
  min-height:88px;
  padding:24px 72px 24px 0;
  border-top:1px solid var(--footer-line);
  color:var(--footer-muted);
  font-size:0.8125rem;
}

@media (prefers-reduced-motion:reduce){
  .site-footer a{
    transition:none;
  }
}


/* =========================================================
   17. SCROLL REVEAL
   ========================================================= */

.reveal{
  opacity:0;

  transform:translateY(28px);

  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.in{
  opacity:1;

  transform:translateY(0);
}


/* =========================================================
   18. BACK TO TOP
   ========================================================= */

.to-top{
  position:fixed;

  right:24px;
  bottom:24px;

  width:46px;
  height:46px;

  display:flex;
  align-items:center;
  justify-content:center;

  border:1px solid rgba(255,255,255,0.15);
  border-radius:50%;

  background:var(--forest-deep);

  color:#fff;

  font-size:1rem;

  box-shadow:var(--shadow-soft);

  z-index:90;

  opacity:0;
  visibility:hidden;

  transform:translateY(10px);

  transition:
    opacity var(--transition),
    visibility var(--transition),
    transform var(--transition),
    background var(--transition);
}

.to-top.show{
  opacity:1;
  visibility:visible;

  transform:translateY(0);
}

.to-top:hover{
  background:var(--gold);

  color:var(--forest-deep);
}


/* =========================================================
   19. TABLET
   ========================================================= */

@media (max-width:1100px){

  .primary-nav{
    display:none;
  }

  .hamburger{
    display:flex;
  }

  .mobile-nav{
    display:block;
  }


  .about-grid,
  .sustain-grid{
    gap:3.5rem;
  }


  .ops-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .ops-card:nth-child(2){
    min-height:390px;
  }

  .ops-card:nth-child(3){
    grid-column:1 / -1;

    min-height:330px;
  }


  .leader-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .leader-card:nth-child(3){
    grid-column:1 / -1;
  }


  .news-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .news-card:nth-child(3){
    grid-column:1 / -1;

    max-width:600px;
  }


  .footer-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .footer-brand{
    grid-column:1 / -1;
  }

  .footer-brand p{
    max-width:60ch;
  }

}


/* =========================================================
   20. MOBILE / SMALL TABLET
   ========================================================= */

@media (max-width:800px){

  .container{
    width:min(calc(100% - 36px),var(--container));
  }


  .hero{
    min-height:760px;
  }

  .hero-inner{
    padding-top:70px;
    padding-bottom:70px;
  }   

  .hero-bg::after{
    background:
      linear-gradient(
        180deg,
        rgba(7,27,17,0.35) 0%,
        rgba(7,27,17,0.48) 45%,
        rgba(7,27,17,0.90) 100%
      );
  }


  .about,
  .operations,
  .sustainability,
  .leadership,
  .news{
    padding:90px 0;
  }


  .about-grid,
  .sustain-grid{
    grid-template-columns:1fr;

    gap:2.5rem;
  }

  .about-media{
    min-height:auto;

    aspect-ratio:4 / 3;
  }

  .sustain-media{
    min-height:auto;

    aspect-ratio:4 / 3;
  }


  .news-head-row{
    display:block;
  }


  .cta-band-inner{
    flex-direction:column;

    align-items:flex-start;
  }

  .cta-links{
    justify-content:flex-start;
  }


  .footer-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

}


/* =========================================================
   21. MOBILE
   ========================================================= */

@media (max-width:700px){

  .nav-row{
    min-height:72px;
  }

  .brand-logo{
    width:42px;
    height:42px;
  }

  .brand-text strong{
    font-size:0.95rem;
  }

  .brand-text span{
    font-size:0.65rem;
  }

  .nav-complaint-btn{
    display:none;
  }

  .mobile-nav{
    inset:72px 0 0 0;
  }


  .hero{
    min-height:calc(100svh - 72px);
  }

  .hero-inner{
    padding-top:60px;
    padding-bottom:60px;
  }

  .hero h1{
    font-size:clamp(2.8rem,13vw,4.5rem);
  }

  .hero .lede{
    font-size:0.98rem;
  }

  .hero-ctas{
    align-items:stretch;

    flex-direction:column;
  }

  .hero-ctas .btn{
    width:100%;
  }


  .ops-grid,
  .leader-grid,
  .news-grid{
    grid-template-columns:1fr;
  }

  .ops-card,
  .ops-card:nth-child(2),
  .ops-card:nth-child(3){
    grid-column:auto;

    min-height:330px;
  }

  .leader-card:nth-child(3){
    grid-column:auto;
  }

  .news-card:nth-child(3){
    grid-column:auto;

    max-width:none;
  }


  .cta-links{
    width:100%;

    flex-direction:column;
  }

  .cta-links .btn{
    width:100%;
  }


  .footer-grid{
    grid-template-columns:1fr;

    gap:2rem;
  }

  .footer-col{
    padding-top:24px;
    border-top:1px solid var(--footer-line);
  }

  .footer-col h2{
    margin-bottom:12px;
  }

  .footer-bottom{
    padding-block:24px;
  }

}


/* =========================================================
   22. SMALL MOBILE
   ========================================================= */

@media (max-width:480px){

  .container{
    width:min(calc(100% - 28px),var(--container));
  }


  h2{
    font-size:2.15rem;
  }


  .brand-text{
    display:none;
  }


  .nav-right{
    gap:0.5rem;
  }


  .lang-switch button{
    padding:0.35rem 0.55rem;
  }


  .hero-inner{
    padding-bottom:50px;
  }


  .about,
  .operations,
  .sustainability,
  .leadership,
  .news{
    padding:72px 0;
  }


  .about-media{
    aspect-ratio:1 / 1;
  }


  .caption-tag{
    left:14px;
    bottom:14px;

    padding:0.6rem 0.8rem;

    font-size:0.9rem;
  }


  .ops-card{
    padding:1.5rem;

    min-height:300px;
  }


  .leader-card{
    min-height:220px;

    padding:1.5rem;
  }


  .cta-band{
    padding:65px 0;
  }


  .to-top{
    right:16px;
    bottom:16px;

    width:42px;
    height:42px;
  }

}


/* =========================================================
   TWO-CARD OPERATIONS LAYOUT
   ========================================================= */

.ops-grid-two{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.ops-grid-two .ops-card,
.ops-grid-two .ops-card:nth-child(2){
  min-height:420px;
}


/* =========================================================
   TWO-CARD OPERATIONS — MOBILE
   ========================================================= */

@media (max-width:700px){

  .ops-grid-two{
    grid-template-columns:1fr;
  }

  .ops-grid-two .ops-card,
  .ops-grid-two .ops-card:nth-child(2){
    min-height:360px;
  }

}


/* =========================================================
   OPERATIONS — DESKTOP CENTERED LAYOUT
   Mobile layout remains unchanged
   ========================================================= */

@media (min-width:701px){

  /* Make the whole section more compact */
  .operations{
    padding:85px 0 95px;
  }


  /* Center heading + description */
  .operations .section-head{
    max-width:950px;

    margin:0 auto 3.5rem;

    text-align:center;
  }


  .operations .section-head .eyebrow{
    display:block;

    margin-bottom:0.8rem;

    text-align:center;
  }


  .operations .section-head h2{
    margin-bottom:1.25rem;

    text-align:center;
  }


  .operations .section-head p{
    max-width:850px;

    margin:0 auto;

    text-align:center;

    line-height:1.75;
  }


  /* Center the two cards */
  .ops-grid-two{
    width:100%;

    max-width:1000px;

    margin:0 auto;

    grid-template-columns:repeat(2, minmax(0, 1fr));

    gap:2rem;

    align-items:stretch;
  }


  /* Make both cards same size */
  .ops-grid-two .ops-card,
  .ops-grid-two .ops-card:nth-child(2){
    min-height:390px;

    padding:2.2rem;

    border-radius:8px;

    box-shadow:
      0 12px 30px
      rgba(18,53,36,0.10);
  }


  /* Keep content positioned nicely */
  .ops-grid-two .ops-body{
    width:100%;

    display:flex;
    flex-direction:column;

    justify-content:flex-end;
  }


  .ops-grid-two .ops-num{
    margin-bottom:0.9rem;
  }


  .ops-grid-two .ops-card h3{
    margin-bottom:1rem;

    font-size:clamp(1.6rem,2vw,2rem);

    line-height:1.15;
  }


  .ops-grid-two .ops-card p{
    margin-bottom:1.1rem;

    font-size:0.94rem;

    line-height:1.65;
  }


  .ops-grid-two .ops-link{
    margin-top:auto;

    padding-top:0.7rem;
  }

/* =========================================================
   HOMEPAGE ANIMATION UPGRADES
   ========================================================= */


/* ---------------------------------------------------------
   2. HERO TEXT STAGGER
   --------------------------------------------------------- */

.hero-eyebrow,
.hero h1,
.hero .lede,
.hero-ctas{
  opacity:0;
  transform:translateY(24px);
  animation:heroContentIn 0.8s ease forwards;
}

.hero-eyebrow{
  animation-delay:0.15s;
}

.hero h1{
  animation-delay:0.3s;
}

.hero .lede{
  animation-delay:0.5s;
}

.hero-ctas{
  animation-delay:0.7s;
}

@keyframes heroContentIn{
  to{
    opacity:1;
    transform:translateY(0);
  }
}


/* ---------------------------------------------------------
   3. DIFFERENT SCROLL REVEAL DIRECTIONS
   --------------------------------------------------------- */

.reveal-left{
  opacity:0;
  transform:translateX(-50px);
}

.reveal-right{
  opacity:0;
  transform:translateX(50px);
}

.reveal-up{
  opacity:0;
  transform:translateY(45px);
}

.reveal-scale{
  opacity:0;
  transform:scale(0.96);
}


/* When visible */

.reveal-left.in,
.reveal-right.in,
.reveal-up.in,
.reveal-scale.in{
  opacity:1;
  transform:none;
}


/* Smooth transitions */

.reveal-left,
.reveal-right,
.reveal-up,
.reveal-scale{
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}


/* ---------------------------------------------------------
   4. OPERATIONS CARD STAGGER
   --------------------------------------------------------- */

.ops-grid-two .ops-card{
  opacity:0;
  transform:translateY(40px);

  transition:
    opacity 0.75s ease,
    transform 0.75s ease,
    box-shadow 0.35s ease;
}

.ops-grid-two.in .ops-card{
  opacity:1;
  transform:translateY(0);
}

.ops-grid-two.in .ops-card:nth-child(1){
  transition-delay:0.05s;
}

.ops-grid-two.in .ops-card:nth-child(2){
  transition-delay:0.2s;
}


/* Keep hover effect */

.ops-grid-two.in .ops-card:hover{
  transform:translateY(-8px);
}


/* ---------------------------------------------------------
   5. OPERATIONS GOLD CIRCLE MOVEMENT
   --------------------------------------------------------- */

.ops-card::after{
  transition:
    transform 0.5s ease,
    border-color 0.5s ease;
}

.ops-card:hover::after{
  transform:translate(-12px,12px) scale(1.08);
  border-color:rgba(210,184,124,0.6);
}


/* ---------------------------------------------------------
   6. OPERATIONS NUMBER EFFECT
   --------------------------------------------------------- */

.ops-num{
  transition:
    transform 0.35s ease,
    letter-spacing 0.35s ease,
    color 0.35s ease;
}

.ops-card:hover .ops-num{
  transform:translateY(-3px);
  letter-spacing:0.18em;
  color:var(--gold-light);
}


/* ---------------------------------------------------------
   7. DISCOVER MORE ARROW MOVEMENT
   --------------------------------------------------------- */

.ops-link{
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.ops-card:hover .ops-link,
.news-card:hover .ops-link{
  transform:translateX(7px);
}


/* ---------------------------------------------------------
   8. WHAT WE DO IMAGE
   --------------------------------------------------------- */

.about-media img{
  transition:transform 1s ease;
}

.about-media:hover img{
  transform:scale(1.035);
}


/* ---------------------------------------------------------
   9. SUSTAINABILITY IMAGE
   --------------------------------------------------------- */

.sustain-media img{
  transition:transform 1s ease;
}

.sustain-media:hover img{
  transform:scale(1.035);
}


/* ---------------------------------------------------------
   10. SUSTAINABILITY CIRCLE SLOW MOVEMENT
   --------------------------------------------------------- */

.sustainability::before{
  animation:sustainCircle 18s ease-in-out infinite alternate;
}

@keyframes sustainCircle{
  from{
    transform:translate(0,0) scale(1);
  }

  to{
    transform:translate(30px,-20px) scale(1.05);
  }
}


/* ---------------------------------------------------------
   11. NEWS CARD STAGGER
   --------------------------------------------------------- */

.news-grid .news-card{
  opacity:0;
  transform:translateY(35px);

  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.news-grid.in .news-card{
  opacity:1;
  transform:translateY(0);
}

.news-grid.in .news-card:nth-child(1){
  transition-delay:0.05s;
}

.news-grid.in .news-card:nth-child(2){
  transition-delay:0.18s;
}

.news-grid.in .news-card:nth-child(3){
  transition-delay:0.31s;
}


/* ---------------------------------------------------------
   12. BUTTON HOVER POLISH
   --------------------------------------------------------- */

.btn{
  position:relative;
  overflow:hidden;
}

.btn::after{
  content:'';

  position:absolute;

  width:0;
  height:0;

  left:50%;
  top:50%;

  border-radius:50%;

  background:rgba(255,255,255,0.15);

  transform:translate(-50%,-50%);

  transition:
    width 0.45s ease,
    height 0.45s ease;
}

.btn:hover::after{
  width:250px;
  height:250px;
}


/* Keep button content above effect */

.btn{
  isolation:isolate;
}

.btn::after{
  z-index:-1;
}


/* ---------------------------------------------------------
   13. ACCESSIBILITY
   Disable animations when user prefers reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion:reduce){

  .hero-bg img,
  .hero-eyebrow,
  .hero h1,
  .hero .lede,
  .hero-ctas,
  .sustainability::before{
    animation:none !important;
  }

  .reveal-left,
  .reveal-right,
  .reveal-up,
  .reveal-scale,
  .ops-grid-two .ops-card,
  .news-grid .news-card{
    opacity:1 !important;
    transform:none !important;
  }

}

/* =========================================================
   NEWS CAROUSEL
   ========================================================= */

.news-carousel-wrapper{
  position:relative;
  width:100%;
}

.news-carousel{
  overflow:hidden;
  width:100%;
  padding:8px 4px 24px;
}

.news-track{
  display: flex;
  gap: 1.5rem;
  transition: transform 0.55s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.news-card{
  flex: 0 0 calc((100% - 3rem) / 3);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 10px 28px rgba(18,53,36,.08);
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.news-card:hover{
  transform: translateY(-6px);
  box-shadow:
    0 18px 40px rgba(18,53,36,.14);
}


/* Image */

.news-image{
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.news-image img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.news-card:hover .news-image img{
  transform: scale(1.04);
}


/* Content */

.news-content{
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 1.7rem;
}

.news-date{
  display: block;
  margin-bottom: .9rem;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.news-content h3{
  margin: 0;
  color: var(--forest-deep);
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  line-height: 1.35;
}

.news-link{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  width: max-content;
  margin-top: auto;
  padding-top: 1.7rem;
  color: var(--forest);
  font-weight: 600;
  transition:
    color .25s ease,
    gap .25s ease;
}

.news-link:hover{
  color: var(--gold);
  gap: .8rem;
}


/* Navigation arrows */

.news-arrow{
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 8px 20px rgba(18,53,36,.18);
  z-index: 5;
  transform: translateY(-50%);
  transition:
    background .25s ease,
    transform .25s ease,
    opacity .25s ease;
}

.news-arrow:hover{
  background: var(--forest-deep);
  transform:
    translateY(-50%)
    scale(1.06);
}

.news-arrow-prev{
  left: -24px;
}

.news-arrow-next{
  right: -24px;
}

.news-arrow:disabled{
  opacity: .35;
  cursor: not-allowed;
}


/* Tablet */

@media (max-width: 1000px){

  .news-card{
    flex: 0 0 calc((100% - 1.5rem) / 2);
  }

  .news-arrow-prev{
    left: 8px;
  }

  .news-arrow-next{
    right: 8px;
  }
}


/* Mobile - static News & Events */

@media (max-width: 700px){

  .news-carousel{
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .news-track{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    width: 100%;
    max-width: 100%;

    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .news-card{
    flex: none;

    width: 100%;
    min-width: 0;
    max-width: 100%;

    transform: none !important;
    transition: none;
  }

  .news-card:hover{
    transform: none !important;
  }

  .news-image{
    width: 100%;
    height: 220px;
    overflow: hidden;
  }

  .news-image img{
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: none !important;
    transition: none;
  }

  .news-card:hover .news-image img{
    transform: none !important;
  }

  .news-content{
    width: 100%;
    min-width: 0;
    min-height: auto;

    padding: 1.4rem;
  }

  .news-content h3{
    overflow-wrap: anywhere;
  }

  .news-link{
    margin-top: 1.5rem;
  }

  /* Carousel is disabled on mobile */
  .news-arrow{
    display: none !important;
  }
}
}