/*
Theme Name: GeoTijarat
Theme URI: https://www.geotijarat.com
Author: GeoTijarat
Description: Custom theme for GeoTijarat, Pakistan's premium sesame seed exporter. Converted from the original site with editable products, certifications, gallery, and inquiries.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geotijarat
*/

:root {
  --bg: #f3e8dd;
  --fg: #5c4a3a;
  --card: #ffffff;
  --primary: #8b6f47;
  --primary-dark: #6b5537;
  --gold: #d4af37;
  --gold-hover: #b8941f;
  --muted: #7a6a60;
  --border: #e4d3c4;
  --olive: #617142;
  --cream: #f5e6d3;
  --whatsapp: #25d366;
  --shadow: 0 18px 40px rgba(92, 74, 58, 0.12);
  --radius: 16px;
  --container: 1200px;
  --nav-h: 76px;
  --gradient: linear-gradient(135deg, #8b6f47, #6b5537);
  --hero: linear-gradient(to bottom right, rgba(92, 74, 58, 0.85), rgba(61, 47, 36, 0.75), rgba(139, 111, 71, 0.7));
  --font: "Inter", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; }

.gt-container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.gt-skip {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--gold);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.gt-skip:focus { top: 1rem; }

/* Header */
.gt-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 4px rgba(92, 74, 58, 0.08);
  transition: box-shadow 0.3s ease;
}
.gt-nav.is-scrolled { box-shadow: 0 10px 30px rgba(92, 74, 58, 0.12); }
body.admin-bar .gt-nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .gt-nav { top: 46px; }
}
.gt-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}
.gt-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.gt-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.gt-brand strong { display: block; font-size: 1.05rem; }
.gt-brand span { display: block; font-size: 0.75rem; color: var(--muted); }
.gt-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gt-nav__list a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
}
.gt-nav__list a:hover,
.gt-nav__list .current-menu-item > a,
.gt-nav__list .current_page_item > a {
  color: var(--gold);
}
.gt-nav__list .current-menu-item > a,
.gt-nav__list .current_page_item > a { font-weight: 650; }
.gt-nav__toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--fg);
  padding: 0.4rem;
  cursor: pointer;
}
.gt-nav__toggle svg { width: 26px; height: 26px; }

/* Hero */
.gt-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  padding: 4rem 0 2.5rem;
}
.gt-hero__bg,
.gt-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gt-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero);
}
.gt-hero__content,
.gt-hero__stats { position: relative; z-index: 1; text-align: center; }
.gt-hero__content { width: min(920px, calc(100% - 2rem)); }
.gt-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
}
.gt-hero h1 span { display: block; color: var(--gold); margin-top: 0.35rem; }
.gt-hero__content p {
  color: var(--cream);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  max-width: 46rem;
  margin: 1.4rem auto 0;
}
.gt-hero__actions,
.gt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.8rem;
}
.gt-hero__stats {
  width: min(1000px, calc(100% - 2rem));
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.gt-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 1.4rem 0.8rem;
}
.gt-stat svg { width: 36px; height: 36px; color: var(--gold); margin: 0 auto 0.6rem; }
.gt-stat strong { display: block; font-size: 1.8rem; }
.gt-stat span { color: var(--cream); font-size: 0.9rem; }
.gt-rise { animation: gt-rise 0.8s ease both; }
.gt-rise-late { animation: gt-rise 0.8s ease 0.25s both; }
@keyframes gt-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Buttons */
.gt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-weight: 650;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}
.gt-btn svg { width: 16px; height: 16px; }
.gt-btn--gold { background: var(--gold); color: #fff; box-shadow: var(--shadow); }
.gt-btn--gold:hover { background: var(--gold-hover); }
.gt-btn--brown { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.gt-btn--brown:hover { background: var(--primary-dark); }
.gt-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.gt-btn--ghost:hover { background: #fff; color: #5c4a3a; }
.gt-btn--block { width: 100%; font-size: 1.05rem; }
.gt-btn--wa { background: var(--whatsapp); color: #fff; }
.gt-btn--wa:hover { filter: brightness(1.05); }
.gt-link {
  color: var(--gold);
  font-weight: 650;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.gt-link svg { width: 16px; height: 16px; }
.gt-link:hover { gap: 0.5rem; }

/* Sections */
.gt-section { padding: 5rem 0; }
.gt-section--cream { background: #f6efe6; }
.gt-section--gradient { background: var(--gradient); color: #fff; }
.gt-section--soft { background: rgba(243, 232, 221, 0.55); }
.gt-section__head { text-align: center; max-width: 42rem; margin: 0 auto 3.2rem; }
.gt-section__head h2,
.gt-block h2,
.gt-page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}
.gt-section__head p,
.gt-lead { color: var(--muted); font-size: 1.08rem; }
.gt-section--gradient .gt-lead,
.gt-section--gradient p { color: rgba(255, 255, 255, 0.82); }
.gt-accent { color: var(--primary); }
.gt-gold { color: var(--gold); }

.gt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}
.gt-cards { align-items: stretch; }
.gt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(92, 74, 58, 0.08);
  transition: box-shadow 0.3s ease;
}
.gt-card:hover { box-shadow: var(--shadow); }
.gt-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.gt-card__media img,
.gt-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.gt-card:hover .gt-card__media img,
.gt-shot:hover img { transform: scale(1.05); }
.gt-card__body { padding: 1.8rem; }
.gt-card h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.gt-checks, .gt-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.gt-checks li, .gt-list li, .gt-ticks li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.55rem 0;
  color: var(--muted);
}
.gt-checks svg, .gt-ticks svg { width: 20px; height: 20px; color: var(--olive); flex: none; margin-top: 0.1rem; }
.gt-section--gradient .gt-checks li { color: rgba(255, 255, 255, 0.86); }
.gt-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.gt-arrow svg { width: 14px; height: 14px; }
.gt-center { text-align: center; margin-top: 2.4rem; }

.gt-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.gt-split h2 { margin-bottom: 1rem; }
.gt-frame { position: relative; }
.gt-frame::before {
  content: "";
  position: absolute;
  inset: -1rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(139, 111, 71, 0.16), rgba(212, 175, 55, 0.16));
}
.gt-frame img {
  position: relative;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.gt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gt-pair img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(92, 74, 58, 0.15);
}
.gt-pair img:last-child { margin-top: 1.6rem; }
.gt-ticks { list-style: none; margin: 0; padding: 0; }
.gt-ticks li { color: var(--fg); }

.gt-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  max-width: 860px;
  margin-inline: auto;
}
.gt-value {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.7rem;
  box-shadow: 0 8px 20px rgba(92, 74, 58, 0.05);
}
.gt-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.gt-icon svg { width: 24px; height: 24px; }
.gt-value h3 { margin-bottom: 0.45rem; }
.gt-value p { margin: 0; color: var(--muted); }

.gt-certs-strip {
  padding: 3.2rem 0;
  background: var(--bg);
  border-block: 1px solid rgba(228, 211, 196, 0.8);
}
.gt-certs-strip__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.gt-certs-strip h3 { font-size: 1.5rem; }
.gt-certs-strip p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.92rem; }
.gt-logos { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; justify-content: center; }
.gt-logos img { width: 56px; height: 56px; object-fit: contain; opacity: 0.85; }
.gt-logos img:hover { opacity: 1; }

.gt-cta { text-align: center; }
.gt-cta h2 { margin-bottom: 0.8rem; }
.gt-cta p { max-width: 38rem; margin: 0 auto; }

/* Inner pages */
.gt-page-header {
  background: var(--gradient);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}
.gt-page-header__inner { max-width: 46rem; }
.gt-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
}
.gt-page-header h1 span { color: var(--gold); }
.gt-page-header p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 40rem;
  margin: 1.2rem 0 0;
}
.gt-prose p { color: var(--muted); font-size: 1.08rem; }

.gt-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4.5rem;
}
.gt-product:last-child { margin-bottom: 0; }
.gt-product:nth-child(even) .gt-product__media { order: 2; }
.gt-product__media { position: relative; }
.gt-badge, .gt-pill {
  display: inline-block;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
}
.gt-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--gold);
  color: #fff;
  padding: 0.45rem 0.85rem;
  box-shadow: var(--shadow);
}
.gt-pill {
  margin-top: 0.6rem;
  background: rgba(212, 175, 55, 0.18);
  color: #9a7b16;
  padding: 0.25rem 0.8rem;
}
.gt-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.gt-spec {
  background: rgba(243, 232, 221, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
}
.gt-spec svg { width: 18px; height: 18px; color: var(--primary); }
.gt-spec small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-size: 0.7rem;
  margin-top: 0.35rem;
}
.gt-spec strong { display: block; }
.gt-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.gt-tag {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.86rem;
}
.gt-dots { list-style: none; padding: 0; margin: 1rem 0 0; }
.gt-dots li { display: flex; gap: 0.7rem; align-items: center; margin: 0.45rem 0; }
.gt-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.gt-cert-grid, .gt-info-list {
  display: grid;
  gap: 1.4rem;
}
.gt-cert-grid { grid-template-columns: repeat(3, 1fr); }
.gt-cert {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 8px 18px rgba(92, 74, 58, 0.05);
  transition: 0.3s ease;
}
.gt-cert:hover { box-shadow: var(--shadow); border-color: rgba(139, 111, 71, 0.35); }
.gt-cert__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.gt-cert__logo {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0.6rem;
}
.gt-cert__logo img { width: 100%; height: 100%; object-fit: contain; }
.gt-cert p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.gt-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.2rem; }
.gt-filter {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 650;
  background: #efe4d8;
  color: var(--fg);
}
.gt-filter.is-active { background: var(--gold); color: #fff; box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35); }
.gt-masonry { columns: 3; column-gap: 1.1rem; }
.gt-shot {
  display: block;
  width: 100%;
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(92, 74, 58, 0.1);
  cursor: pointer;
  break-inside: avoid;
}
.gt-shot img { width: 100%; transition: transform 0.7s ease; }
.gt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(44, 34, 27, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.gt-lightbox[hidden] { display: none; }
.gt-lightbox img { max-width: min(1100px, 100%); max-height: 85vh; object-fit: contain; border-radius: 12px; }
.gt-lightbox__close, .gt-lightbox__nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.gt-lightbox__close { top: 1.2rem; right: 1.2rem; }
.gt-lightbox__nav--prev { left: 1rem; }
.gt-lightbox__nav--next { right: 1rem; }
.gt-lightbox svg { width: 36px; height: 36px; }

.gt-contact {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  max-width: 1080px;
  margin-inline: auto;
}
.gt-info { display: flex; gap: 0.9rem; margin: 1.1rem 0; }
.gt-info a:hover { color: var(--primary); }
.gt-info p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.92rem; }
.gt-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.gt-form h3 { margin-bottom: 1rem; }
.gt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gt-field { margin-bottom: 1rem; }
.gt-field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; }
.gt-field input, .gt-field select, .gt-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #e0d0c2;
  background: var(--bg);
  color: var(--fg);
}
.gt-field input:focus, .gt-field select:focus, .gt-field textarea:focus {
  outline: 2px solid var(--gold);
  border-color: transparent;
}
.gt-note {
  background: #eef6ea;
  color: #2f5d32;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}
.gt-note--error { background: #fdecec; color: #8a2b2b; }
.gt-hp { position: absolute; left: -9999px; }

/* Footer + floating */
.gt-footer { background: var(--gradient); color: #fff; padding: 4rem 0 1.5rem; }
.gt-footer__grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.1fr; gap: 2.5rem; }
.gt-footer .gt-brand span, .gt-footer p, .gt-footer a, .gt-footer li { color: rgba(255, 255, 255, 0.75); }
.gt-footer h4 { margin-bottom: 0.9rem; }
.gt-footer ul { list-style: none; margin: 0; padding: 0; }
.gt-footer .gt-nav__list { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.gt-footer .gt-nav__list a { padding: 0.15rem 0; color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; }
.gt-footer li { margin: 0.4rem 0; font-size: 0.92rem; }
.gt-footer a:hover { color: var(--gold); }
.gt-footer__contact { display: flex; gap: 0.5rem; align-items: flex-start; }
.gt-footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 0.2rem; }
.gt-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}
.gt-float {
  position: fixed;
  z-index: 40;
  bottom: 1.6rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  border: 0;
  cursor: pointer;
}
.gt-float svg { width: 26px; height: 26px; }
.gt-wa { left: 1.6rem; background: var(--whatsapp); color: #fff; }
.gt-wa:hover { transform: scale(1.08); }
.gt-to-top { right: 1.6rem; background: var(--primary); color: #fff; opacity: 0; pointer-events: none; transition: 0.2s ease; }
.gt-to-top.is-visible { opacity: 1; pointer-events: auto; }
.gt-empty { text-align: center; color: var(--muted); }

@media (max-width: 980px) {
  .gt-grid-2, .gt-split, .gt-product, .gt-contact, .gt-footer__grid, .gt-values, .gt-cert-grid { grid-template-columns: 1fr; }
  .gt-product:nth-child(even) .gt-product__media { order: 0; }
  .gt-hero__stats { grid-template-columns: 1fr 1fr; }
  .gt-masonry { columns: 2; }
  .gt-certs-strip__row { flex-direction: column; text-align: center; }
  .gt-pair img:last-child { margin-top: 0; }
}
@media (max-width: 760px) {
  .gt-nav__toggle { display: inline-flex; }
  .gt-nav__menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 0.6rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .gt-nav.is-open .gt-nav__menu { display: block; }
  .gt-nav__list { flex-direction: column; align-items: stretch; }
  .gt-fields { grid-template-columns: 1fr; }
  .gt-section { padding: 3.5rem 0; }
  .gt-masonry { columns: 1; }
}
