/* =========================================================
   Arunara Coffee — base styles
   ========================================================= */

:root {
  --brown: #3B1F0E;
  --brown-deep: #2A1509;
  --brown-soft: #5A3620;
  --gold: #C9A84C;
  --gold-soft: #E0C98A;
  --cream: #F5E6C8;
  --cream-light: #FBF5EA;
  --ink: #2A1509;
  --muted: #7A6552;
  --line: rgba(59, 31, 14, 0.14);
  --line-light: rgba(245, 230, 200, 0.18);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(88px, 11vw, 160px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream-light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }

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

.section { padding: var(--section-y) 0; }

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

.display {
  font-size: clamp(44px, 7.2vw, 104px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.display em { font-style: normal; font-weight: 500; color: var(--gold); }

.h2 {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.h2 strong { font-weight: 700; }

.lead {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 560px;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--brown-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: var(--line-light); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--brown); color: var(--cream); }
.btn-dark:hover { background: var(--brown-soft); }

/* ---------- Photo placeholder ---------- */

.ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  background:
    linear-gradient(135deg, rgba(201, 168, 76, 0.18), transparent 60%),
    var(--brown-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: relative;
  z-index: 1;
  margin: 16px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(42, 21, 9, 0.55);
  border: 1px solid var(--line-light);
  border-radius: 999px;
}
.ph--light { background: linear-gradient(135deg, rgba(201, 168, 76, 0.28), transparent 70%), #E7D3AE; }
.ph--light::after { color: var(--brown); background: rgba(251, 245, 234, 0.7); border-color: var(--line); }

/* Real photos */
.photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--brown-soft);
}

.r-16-9 { aspect-ratio: 16 / 9; }
.r-4-5  { aspect-ratio: 4 / 5; }
.r-3-4  { aspect-ratio: 3 / 4; }
.r-1-1  { aspect-ratio: 1 / 1; }
.r-3-2  { aspect-ratio: 3 / 2; }

/* =========================================================
   1. Header
   ========================================================= */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--cream);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
  padding: 28px 0;
}
.header.is-scrolled {
  background: rgba(42, 21, 9, 0.94);
  backdrop-filter: blur(8px);
  padding: 16px 0;
  box-shadow: 0 1px 0 var(--line-light);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  color: var(--cream);
}
.logo img {
  width: auto;
  height: 38px;
  transition: height 0.4s var(--ease);
}
.header.is-scrolled .logo img { height: 32px; }
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.logo-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-right: -0.2em; /* cancel trailing tracking */
}
.logo-tag {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 13.5px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(245, 230, 200, 0.7);
}

.logo--lg { gap: 16px; }
.logo--lg img { height: 76px; }
.logo--lg .logo-text { gap: 8px; }
.logo--lg .logo-name { font-size: 32px; }
.logo--lg .logo-tag { font-size: 16px; color: var(--gold); }

/* Social links */
.social { display: flex; align-items: center; gap: 6px; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: inherit;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social a:hover { color: var(--gold); }
.nav .social a::after { content: none; }
.social--nav {
  padding-left: 28px;
  border-left: 1px solid var(--line-light);
}
.social--footer { gap: 10px; margin-top: 28px; }
.social--footer a {
  width: 40px;
  height: 40px;
  color: var(--cream);
  border: 1px solid var(--line-light);
}
.social--footer a:hover { border-color: var(--gold); background: rgba(201, 168, 76, 0.08); }

/* Language switch */
.nav a.lang-switch {
  padding: 6px 14px;
  font-size: 13px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  transition: border-color 0.3s, color 0.3s;
}
.nav a.lang-switch::after { content: none; }
.nav a.lang-switch:hover { border-color: var(--gold); color: var(--gold); }

.nav { display: flex; align-items: center; gap: 40px; }
.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { padding: 11px 22px; font-size: 12px; opacity: 1; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  margin: 6px auto;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* =========================================================
   2. Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 clamp(100px, 10vw, 136px);
  background: var(--brown-deep);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

/* Background photo + overlay */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  will-change: transform;
}
.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
  object-position: 50% 45%;
  transform: scale(1.04);
  transition: transform 2.6s var(--ease);
}
.is-loaded .hero-bg { transform: scale(1); }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 21, 9, 0.78) 0%, rgba(42, 21, 9, 0.25) 70%),
    linear-gradient(180deg, rgba(42, 21, 9, 0.35) 0%, rgba(42, 21, 9, 0) 30%, rgba(42, 21, 9, 0.9) 100%);
}

/* Fine film grain: softens compression artefacts in the photo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Headline */
.hero-title { margin-top: 8px; }
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em; /* keep descenders from being clipped */
}
.hero-title .line > span { display: inline-block; }

/* Load-in animation */
.hero-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.hero-title .hero-in { opacity: 1; transform: translateY(105%); }
.is-loaded .hero-in { opacity: 1; transform: none; }

/* Bottom row */
.hero-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 420px) auto;
  justify-content: space-between;
  gap: clamp(32px, 4vw, 56px);
  align-items: end;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 36px;
  border-top: 1px solid var(--line-light);
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.hero-meta small {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-bottom p {
  max-width: 400px;
  font-size: 15px;
  color: rgba(245, 230, 200, 0.75);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Scroll cue */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-left: -24px;
  width: 48px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 230, 200, 0.6);
}
.hero-scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: var(--line-light);
}
.hero-scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: scroll-cue 2.2s var(--ease) infinite;
}
@keyframes scroll-cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* =========================================================
   3. About
   ========================================================= */

.about-intro {
  max-width: 1040px;
  margin-bottom: clamp(72px, 9vw, 128px);
}
.statement {
  font-size: clamp(28px, 3.6vw, 50px);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: var(--brown);
}
.statement strong { font-weight: 700; }
.statement em { font-style: normal; color: var(--gold); }

.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(56px, 9vw, 136px);
  align-items: center;
}
.about-media {
  position: relative;
  padding-bottom: 12%;
}
.about-media .ph--light {
  position: absolute;
  width: 46%;
  right: -14%;
  bottom: 0;
  border: 8px solid var(--cream-light);
}
.about-main { object-position: 50% 50%; }
.about-small { object-position: 35% 50%; }
.about-text .h2 { margin-bottom: 32px; }
.about-text .lead { margin-bottom: 20px; }
.about-text p:not(.lead) { max-width: 560px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat-num {
  display: block;
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brown);
}
.stat-num sup { font-size: 0.45em; color: var(--gold); font-weight: 600; }
.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   3b. Our Team
   ========================================================= */

.team { background: var(--cream-light); }
.contact { background: var(--cream); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.member .ph,
.member .photo { margin-bottom: 24px; }
.member h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--brown);
}
.member p {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.member-email {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.member-email:hover { color: var(--brown); border-color: var(--gold); }

.legal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: clamp(64px, 8vw, 104px) 0 0;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.legal dt {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--brown);
}

/* =========================================================
   4. Why Choose Us
   ========================================================= */

.why {
  background: var(--brown);
  color: var(--cream);
}
.why-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(56px, 8vw, 128px);
  align-items: start;
}
.why-aside {
  position: sticky;
  top: 120px;
}
.why-aside .h2 { margin-bottom: 28px; }
.why .lead { color: rgba(245, 230, 200, 0.7); margin-bottom: 48px; }
.why-aside .ph { max-width: 440px; }

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line-light);
}
.why-item {
  position: relative;
  display: grid;
  grid-template-columns: clamp(72px, 9vw, 128px) 1fr;
  gap: 24px;
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid var(--line-light);
}
.why-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.why-item:hover::before { transform: scaleX(1); }
.why-num {
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(201, 168, 76, 0.45);
  transition: color 0.5s var(--ease);
}
.why-item:hover .why-num { color: var(--gold); }
.why-item h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.why-item p {
  max-width: 480px;
  font-size: 16px;
  color: rgba(245, 230, 200, 0.68);
}

/* =========================================================
   5. Products
   ========================================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -28px rgba(59, 31, 14, 0.35);
}
.card .ph { border-radius: 0; }
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(28px, 3.4vw, 48px);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.card-tag {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  background: var(--cream);
  border-radius: 999px;
}
.card-origin {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.card h3 {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.card-notes {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 32px;
}
.specs {
  margin: 0 0 36px;
  font-size: 15px;
  border-top: 1px solid var(--line);
}
.specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
/* Grade table inside product cards */
.specs + .grade-table { margin-top: -12px; }
.grade-table {
  width: 100%;
  margin: 0 0 36px;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.grade-table th,
.grade-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.grade-table th:first-child { text-align: left; }
.grade-table thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0;
}
.grade-table tbody th { font-weight: 700; color: var(--ink); }
.grade-table td { font-weight: 500; }
.card-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown);
}
.card-link span { display: inline-block; color: var(--gold); transition: transform 0.3s var(--ease); }
.card-link:hover span { transform: translateX(6px); }

.card-media { overflow: hidden; }
.card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #E7D3AE;
}
.card-media .ph,
.card-media img { transition: transform 1.2s var(--ease); }
.card:hover .card-media .ph,
.card:hover .card-media img { transform: scale(1.04); }

.product-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(28px, 3.4vw, 40px) clamp(28px, 3.4vw, 48px);
  background: var(--cream);
  border-radius: var(--radius);
}
.product-cta p {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brown);
}
.product-cta p span {
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.product-cta .btn { flex-shrink: 0; }

/* =========================================================
   6. Gallery
   ========================================================= */

.gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: clamp(320px, 36vw, 520px) clamp(240px, 24vw, 340px);
  gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 24px);
}
.g-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  min-height: 0;
}
.g-item .ph,
.g-item .photo {
  flex: 1;
  aspect-ratio: auto;
  min-height: 0;
  height: 100%;
}
.g-item figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brown);
}
.g-item figcaption span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.g1 { grid-column: span 7; }
.g-harvest { object-position: 60% 55%; }
.g2 { grid-column: span 5; }
.g3, .g4, .g5 { grid-column: span 4; }

/* =========================================================
   7. Contact
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.contact-info .h2 { margin-bottom: 28px; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
  font-weight: 500;
}
.contact-list a { transition: color 0.3s; }
.contact-list a:hover { color: var(--gold); }
.contact-list small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 28px;
  padding: clamp(32px, 4.4vw, 60px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -48px rgba(59, 31, 14, 0.35);
}
.form-head h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.form-head p,
.form-foot p { font-size: 13px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s;
}
.field select {
  appearance: none;
  padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A84C' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }
.form-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.form .btn { cursor: pointer; }

/* =========================================================
   8. Footer
   ========================================================= */

.footer {
  background: var(--brown-deep);
  color: var(--cream);
  padding: clamp(80px, 10vw, 136px) 0 36px;
}
.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: clamp(56px, 7vw, 96px);
  margin-bottom: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line-light);
}
.footer-cta .h2 { max-width: 12ch; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 48px;
  padding-bottom: 72px;
}
.footer-brand .logo { margin-bottom: 24px; }
.footer-top p { font-size: 15px; color: rgba(245, 230, 200, 0.6); max-width: 320px; }
.footer h5 {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; font-size: 15px; color: rgba(245, 230, 200, 0.75); }
.footer li a { transition: color 0.3s; }
.footer li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
  font-size: 13px;
  color: rgba(245, 230, 200, 0.5);
}
.to-top { transition: color 0.3s; }
.to-top:hover { color: var(--gold); }

/* =========================================================
   Floating WhatsApp
   ========================================================= */

.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* =========================================================
   Scroll reveal
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Photos fade and rise in. (A clip-path "curtain" was used before, but Safari
   leaves the transition stuck fully clipped, so the photos never appeared.) */
.reveal-img {
  opacity: 0;
  transform: translateY(28px) scale(1.02);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal-img.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-img { opacity: 1; transform: none; transition: none; }
  .reveal,
  .hero-in,
  .hero-title .hero-in { opacity: 1; transform: none; transition: none; }
  .hero-bg { transform: none; transition: none; }
  .hero-scroll i::after { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (min-width: 861px) and (max-width: 1200px) {
  .nav { gap: 22px; }
  .social--nav { display: none; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-meta { grid-column: 1 / -1; flex-direction: row; gap: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--brown-deep);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }
  .nav a { font-size: 24px; }
  .nav .btn { font-size: 14px; }
  .social--nav { order: 1; padding-left: 0; border-left: 0; margin-top: 8px; gap: 12px; }
  .social--nav a { width: 44px; height: 44px; border: 1px solid var(--line-light); }
  .social--nav svg { width: 20px; height: 20px; }
  .header.nav-open .nav { opacity: 1; pointer-events: auto; }
  .header.nav-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .header.nav-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-toggle, .logo { position: relative; z-index: 2; }

  .section-head,
  .about-grid,
  .why-layout,
  .contact-grid { grid-template-columns: 1fr; }
  .section-head { gap: 24px; }

  .hero { padding-top: 120px; }
  .hero-bg { object-position: 50% 50%; }
  .hero-media::after {
    background: linear-gradient(180deg,
      rgba(42, 21, 9, 0.55) 0%,
      rgba(42, 21, 9, 0.3) 22%,
      rgba(42, 21, 9, 0.55) 45%,
      rgba(42, 21, 9, 0.88) 70%,
      rgba(42, 21, 9, 0.95) 100%);
  }
  .hero::after { opacity: 0.12; }
  .hero-title { letter-spacing: -0.02em; }
  .hero-bottom { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; padding-top: 28px; }
  .hero-meta {
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    font-size: 13px;
    white-space: normal;
  }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .hero-scroll { display: none; }

  .why-aside { position: static; }
  .why .lead { margin-bottom: 36px; }

  .team-grid { gap: 16px; }
  .member .ph,
  .member .photo { margin-bottom: 16px; }

  .about-media { max-width: 520px; padding-bottom: 14%; margin-right: 8%; }
  .about-media .ph--light { right: -12%; width: 44%; border-width: 6px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cta { flex-direction: column; align-items: flex-start; }

  .product-grid { grid-template-columns: 1fr; }
  .product-cta { flex-direction: column; align-items: flex-start; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; gap: 24px 12px; }
  .g-item .ph,
  .g-item .photo { flex: none; height: auto; aspect-ratio: 4 / 5; }
  .g1 { grid-column: span 2; }
  .g1 .ph { aspect-ratio: 16 / 10; }
  .g2, .g3, .g4, .g5 { grid-column: span 1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.16em; gap: 10px; }
  .eyebrow::before { width: 20px; }
  .why-item { grid-template-columns: 1fr; gap: 16px; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; gap: 40px; }
  .legal { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
}

/* =========================================================
   Arabic (RTL) — only applies to ar/index.html
   ========================================================= */

[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif; }
/* Arabic script must never be letter-spaced (it breaks letter joining) */
[dir="rtl"] *:not(.logo-name) { letter-spacing: 0 !important; }
[dir="rtl"] .logo-tag { font-family: "IBM Plex Sans Arabic", sans-serif; font-style: normal; font-size: 12px; }
[dir="rtl"] .logo--lg .logo-tag { font-size: 14px; }
[dir="rtl"] .logo-name { margin-right: 0; margin-left: -0.2em; }

/* Arabic needs taller lines for its ascenders and dots */
[dir="rtl"] .display { line-height: 1.25; }
[dir="rtl"] .hero-title .line { padding-bottom: 0.12em; }
[dir="rtl"] .h2 { line-height: 1.35; }
[dir="rtl"] .statement { line-height: 1.6; }
[dir="rtl"] .lead,
[dir="rtl"] p { line-height: 1.85; }

/* Mirror direction-dependent details */
[dir="rtl"] .nav a:not(.btn)::after { left: auto; right: 0; transform-origin: right; }
[dir="rtl"] .why-item::before { left: auto; right: 0; transform-origin: right; }
[dir="rtl"] .social--nav { padding-left: 0; border-left: 0; padding-right: 28px; border-right: 1px solid var(--line-light); }
[dir="rtl"] .about-media .ph--light { right: auto; left: -14%; }
[dir="rtl"] .specs dd { text-align: left; }
[dir="rtl"] .grade-table th,
[dir="rtl"] .grade-table td { text-align: left; }
[dir="rtl"] .grade-table th:first-child { text-align: right; }
[dir="rtl"] .card-link:hover span { transform: translateX(-6px); }
[dir="rtl"] .field select { padding-right: 0; padding-left: 24px; background-position: left 4px center; }
[dir="rtl"] .member-email,
[dir="rtl"] .contact-list a[dir="ltr"],
[dir="rtl"] .footer li a[dir="ltr"] { unicode-bidi: isolate; }

@media (min-width: 861px) {
  [dir="rtl"] .hero-media::after {
    background:
      linear-gradient(270deg, rgba(42, 21, 9, 0.78) 0%, rgba(42, 21, 9, 0.25) 70%),
      linear-gradient(180deg, rgba(42, 21, 9, 0.35) 0%, rgba(42, 21, 9, 0) 30%, rgba(42, 21, 9, 0.9) 100%);
  }
}
@media (max-width: 860px) {
  [dir="rtl"] .social--nav { padding-right: 0; border-right: 0; }
  [dir="rtl"] .about-media { margin-right: 0; margin-left: 8%; }
  [dir="rtl"] .about-media .ph--light { right: auto; left: -12%; }
}
