/* ========================================
   PetraSumatra Energy — Master Stylesheet
   Industrial Premium · Black & Gold
   ======================================== */

/* ----------------------------------------
   Variables
   ---------------------------------------- */
:root {
  --clr-primary-bg: #0A0A0A;
  --clr-gold: #C9A84C;
  --clr-surface: #1A1A1A;
  --clr-text-light: #F5F5F5;
  --clr-text-muted: #B0B0B0;
  --clr-gold-dark: #8B6F2E;
  --clr-white: #FFFFFF;

  --clr-csr-green: #1B3A2D;
  --clr-csr-cream: #D4C5A9;
  --clr-csr-earth: #A67C52;

  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-display: 'Cabinet Grotesk', 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --fs-h1: clamp(2.5rem, 6vw, 5rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 3rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
  --fs-body: clamp(0.9375rem, 1.1vw, 1.0625rem);
  --fs-small: 0.875rem;

  --space-section: clamp(4rem, 8vw, 8rem);
  --space-inner: clamp(1.5rem, 3vw, 3rem);
  --max-width: 1200px;
  --nav-height: 72px;

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ----------------------------------------
   Reset & Base
   ---------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--clr-text-light);
  background-color: var(--clr-primary-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--clr-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--clr-white);
}

ul, ol {
  list-style: none;
}

/* Focus visible for keyboard nav */
:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--clr-gold);
  color: var(--clr-primary-bg);
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-gold);
  margin-bottom: 0.75rem;
}

.text-muted {
  color: var(--clr-text-muted);
}

.text-gold {
  color: var(--clr-gold);
}

/* ----------------------------------------
   Container
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-inner);
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-gold);
  color: var(--clr-primary-bg);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--clr-gold-dark);
  color: var(--clr-white);
}

.btn--outline {
  background: transparent;
  color: var(--clr-text-light);
  border: 1px solid var(--clr-text-muted);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-text-light);
  border: none;
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost::after {
  content: '';
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  background: currentColor;
  transition: transform var(--transition);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

/* ----------------------------------------
   Navbar
   ---------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  height: var(--nav-height);
  transition: background var(--transition);
}

.nav--scrolled {
  background: rgba(10, 10, 10, 0.97);
  border-bottom-color: rgba(201, 168, 76, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-inner);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--clr-white);
  text-decoration: none;
}

.nav__logo svg {
  width: 32px;
  height: 32px;
}

.nav__logo span {
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.nav__logo small {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 400;
  color: var(--clr-gold);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a {
  padding: 0.5rem 0.875rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition);
  border-radius: 4px;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--clr-gold);
  background: rgba(201, 168, 76, 0.08);
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.nav__lang button {
  background: none;
  border: none;
  color: var(--clr-text-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  transition: all var(--transition);
}

.nav__lang button.active {
  color: var(--clr-gold);
  background: rgba(201, 168, 76, 0.12);
}

.nav__lang button:hover {
  color: var(--clr-text-light);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--clr-text-light);
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
}

/* Language visibility */
[data-lang="id"] .lang-en { display: none; }
[data-lang="en"] .lang-id { display: none; }

/* ----------------------------------------
   Hero
   ---------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.40) 50%,
    rgba(10, 10, 10, 0.75) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem var(--space-inner);
}

.hero__content h1 {
  margin-bottom: 1rem;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--clr-gold);
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero__tagline small {
  display: block;
  color: var(--clr-text-muted);
  font-size: 0.875em;
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-text-muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: floatY 2s ease-in-out infinite;
}

.hero__scroll svg {
  width: 20px;
  height: 20px;
}

@keyframes floatY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ----------------------------------------
   Section Base
   ---------------------------------------- */
section {
  padding: var(--space-section) 0;
  position: relative;
}

.section__title-wrapper {
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.section__title-wrapper--center {
  text-align: center;
}

/* ----------------------------------------
   About
   ---------------------------------------- */
.about {
  background: var(--clr-surface);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.about__text p {
  margin-bottom: 1.25rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.about__text p:last-child {
  margin-bottom: 0;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--clr-gold-dark);
}

.timeline__item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--clr-primary-bg);
  border: 2px solid var(--clr-gold);
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  color: var(--clr-gold);
  margin-bottom: 0.25rem;
}

.timeline__desc {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ----------------------------------------
   Operations
   ---------------------------------------- */
.operations {
  background: var(--clr-primary-bg);
}

.ops__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}

.ops__map {
  width: 100%;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.ops__map .leaflet-container {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
}

.ops__map .leaflet-control-zoom {
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.ops__map .leaflet-control-zoom a {
  background: var(--clr-surface);
  color: var(--clr-text-light);
  border-color: rgba(255,255,255,0.1);
}

.ops__map .leaflet-control-attribution {
  background: rgba(10,10,10,0.8);
  color: var(--clr-text-muted);
  font-size: 0.625rem;
}

.ops__map .leaflet-control-attribution a {
  color: var(--clr-gold);
}

/* Custom marker */
.custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--clr-gold);
  color: var(--clr-primary-bg);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
  border: 2px solid var(--clr-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.ops__table {
  overflow-x: auto;
}

.ops__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.ops__table th {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  color: var(--clr-gold);
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.ops__table td {
  padding: 0.875rem 1rem;
  color: var(--clr-text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ops__table tr:hover td {
  color: var(--clr-text-light);
  background: rgba(201, 168, 76, 0.04);
}

.ops__table .stat {
  font-family: var(--font-mono), monospace;
  color: var(--clr-text-light);
  font-weight: 500;
}

/* ----------------------------------------
   Products
   ---------------------------------------- */
.products {
  background: var(--clr-surface);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--clr-primary-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--clr-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.product-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--clr-gold);
}

.product-card__icon svg {
  width: 100%;
  height: 100%;
}

.product-card h3 {
  margin-bottom: 0.75rem;
}

.product-card p {
  color: var(--clr-text-muted);
  font-size: var(--fs-small);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.product-card__spec {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.product-card__spec-item {
  display: flex;
  flex-direction: column;
}

.product-card__spec-item small {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-muted);
}

.product-card__spec-item span {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-text-light);
}

/* ----------------------------------------
   Sustainability
   ---------------------------------------- */
.sustainability {
  background: var(--clr-csr-green);
  color: var(--clr-csr-cream);
}

.sustainability .section-label {
  color: var(--clr-csr-cream);
}

.sustainability h2 {
  color: var(--clr-csr-cream);
}

/* Tabs */
.sus__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(212, 197, 169, 0.2);
  padding-bottom: 0;
}

.sus__tab {
  background: none;
  border: none;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 500;
  color: rgba(212, 197, 169, 0.6);
  cursor: pointer;
  transition: all var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.sus__tab:hover {
  color: var(--clr-csr-cream);
}

.sus__tab.active {
  color: var(--clr-csr-cream);
  border-bottom-color: var(--clr-csr-cream);
}

.sus__panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.sus__panel.active {
  display: block;
}

.sus__panel-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.sus__panel-text h3 {
  color: var(--clr-csr-cream);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.sus__panel-text p {
  color: rgba(212, 197, 169, 0.8);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.sus__panel-img {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.sus__panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sus__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 197, 169, 0.15);
}

.sus__stat {
  text-align: center;
}

.sus__stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--clr-csr-cream);
  display: block;
}

.sus__stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(212, 197, 169, 0.6);
  margin-top: 0.25rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------
   Gallery
   ---------------------------------------- */
.gallery {
  background: var(--clr-primary-bg);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item::after {
  content: '↗';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(10,10,10,0.6);
  color: var(--clr-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.gallery__item:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
.gallery__item:nth-child(3) { grid-column: 4 / 5; grid-row: 1 / 2; }
.gallery__item:nth-child(4) { grid-column: 3 / 5; grid-row: 2 / 3; }

/* ----------------------------------------
   Lightbox
   ---------------------------------------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--clr-text-light);
  width: 48px;
  height: 48px;
  cursor: pointer;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox__close svg {
  width: 24px;
  height: 24px;
}

/* ----------------------------------------
   Contact
   ---------------------------------------- */
.contact {
  background: var(--clr-surface);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.contact__info h3 {
  margin-bottom: 1rem;
}

.contact__info p {
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact__address {
  margin-bottom: 2rem;
}

.contact__address-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact__address-item svg {
  width: 20px;
  height: 20px;
  color: var(--clr-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__address-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact__address-item p {
  font-size: var(--fs-small);
  margin-bottom: 0;
}

/* Form */
.contact__form {
  background: var(--clr-primary-bg);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-text-muted);
  margin-bottom: 0.5rem;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--clr-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  color: var(--clr-text-light);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: border-color var(--transition);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--clr-gold);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__submit {
  width: 100%;
  justify-content: center;
}

.form__success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form__success.active {
  display: block;
}

.form__success svg {
  width: 48px;
  height: 48px;
  color: var(--clr-gold);
  margin-bottom: 1rem;
}

.form__success h3 {
  margin-bottom: 0.5rem;
}

.form__success p {
  color: var(--clr-text-muted);
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.footer {
  background: var(--clr-primary-bg);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: clamp(3rem, 5vw, 5rem) 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  margin-top: 0.75rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-gold);
  margin-bottom: 1.25rem;
}

.footer__links li {
  margin-bottom: 0.625rem;
}

.footer__links a {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--clr-gold);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--clr-text-muted);
  transition: all var(--transition);
}

.footer__social a:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
  background: rgba(201, 168, 76, 0.08);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
}

.footer__bottom a {
  color: var(--clr-text-muted);
}

.footer__bottom a:hover {
  color: var(--clr-gold);
}

/* ----------------------------------------
   Utility Pages (Privacy, ToS)
   ---------------------------------------- */
.page-legal {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 4rem;
  min-height: 100vh;
}

.page-legal .container {
  max-width: 800px;
}

.page-legal h1 {
  margin-bottom: 0.5rem;
}

.page-legal .last-updated {
  color: var(--clr-text-muted);
  font-size: var(--fs-small);
  margin-bottom: 2.5rem;
}

.page-legal h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-legal p,
.page-legal li {
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.page-legal ul,
.page-legal ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-legal ul li,
.page-legal ol li {
  list-style: disc;
}

.page-legal ol li {
  list-style: decimal;
}

.page-legal a {
  color: var(--clr-gold);
  text-decoration: underline;
}

/* ----------------------------------------
   Responsive: Tablet (≤768px)
   ---------------------------------------- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  /* Nav */
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links a {
    display: block;
    padding: 0.875rem var(--space-inner);
    border-radius: 0;
  }

  .nav__lang {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding: 0.75rem var(--space-inner);
  }

  .nav__toggle {
    display: block;
  }

  /* Hero */
  .hero__content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
  }

  /* Operations */
  .ops__layout {
    grid-template-columns: 1fr;
  }

  .ops__map {
    height: 320px;
  }

  /* Products */
  .products__grid {
    grid-template-columns: 1fr;
  }

  /* Sustainability */
  .sus__panel-content {
    grid-template-columns: 1fr;
  }

  .sus__panel-img {
    order: -1;
  }

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

  .sus__tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sus__tabs::-webkit-scrollbar {
    display: none;
  }

  /* Gallery */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery__item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
  .gallery__item:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
  .gallery__item:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
  .gallery__item:nth-child(4) { grid-column: 1 / 3; grid-row: 3 / 4; }

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__form {
    padding: 1.5rem;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ----------------------------------------
   Responsive: Mobile (≤480px)
   ---------------------------------------- */
@media (max-width: 480px) {
  section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 90vh;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery__item:nth-child(1),
  .gallery__item:nth-child(2),
  .gallery__item:nth-child(3),
  .gallery__item:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .page-legal {
    padding-top: calc(var(--nav-height) + 2rem);
  }
}

/* ----------------------------------------
   Responsive: Small Mobile (≤375px)
   ---------------------------------------- */
@media (max-width: 375px) {
  :root {
    --nav-height: 56px;
    --space-section: 2.5rem;
    --space-inner: 1rem;
  }

  h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .hero {
    min-height: 85vh;
  }

  .hero__tagline {
    font-size: 0.875rem;
  }

  .hero__cta .btn {
    max-width: 100%;
  }

  .section-label {
    font-size: 0.75rem;
  }

  .timeline__year {
    font-size: 1rem;
    min-width: 50px;
  }

  .product-card {
    padding: 1.5rem;
  }

  .product-card__spec {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sus__stat-number {
    font-size: 1.75rem;
  }

  .contact__address-item {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form__input,
  .form__textarea {
    font-size: 16px;
  }
}

/* ----------------------------------------
   Responsive: Tablet Landscape (≤1024px)
   ---------------------------------------- */
@media (max-width: 1024px) {
  .about__grid {
    gap: 2rem;
  }

  .products__grid {
    gap: 1.25rem;
  }

  .ops__layout {
    gap: 2rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery__item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .gallery__item:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
  .gallery__item:nth-child(3) { grid-column: 3 / 4; grid-row: 2 / 3; }
  .gallery__item:nth-child(4) { grid-column: 1 / 4; grid-row: 3 / 4; }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .hero__content h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
  }
}

/* ----------------------------------------
   Reduced Motion
   ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero__scroll {
    animation: none;
  }

  .product-card:hover {
    transform: none;
  }

  .gallery__item img {
    transition: none;
  }

  .gallery__item:hover img {
    transform: none;
  }
}
