/*
Theme Name: Sanjaya Reptile Indonesia
Description: Company profile + animal catalogue theme (WooCommerce catalog mode). Red/dark branding, Construction-02 style homepage.
Version: 2.0
Author: Jetorbit
Text Domain: reptile
*/

:root {
  --red: #d90000;
  --red-dark: #b00000;
  --dark: #0f0f10;
  --dark-2: #17171a;
  --dark-3: #232327;
  --ink: #232323;
  --muted: #6f6f6f;
  --line: #e6e6e6;
  --gray-bg: #f6f6f6;
}

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

body {
  font-family: 'Montserrat', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 3px;
  transition: all .18s ease;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--dark); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-3); }

.eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.rule { width: 54px; height: 3px; background: var(--red); margin: 18px 0 22px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 10px 0;
}
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 48px; max-height: 48px; width: auto; }
.site-logo .logo-text { color: #fff; font-size: 20px; font-weight: 800; }
.site-logo .logo-text span { color: var(--red); }

.site-nav ul { list-style: none; display: flex; gap: 30px; align-items: center; }
.site-nav a {
  color: #e8e8e8;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--red); }
.site-nav li.menu-item-has-children > a::after { content: " ▾"; font-size: 10px; color: #999; }
.site-nav li { position: relative; }
.site-nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-2);
  min-width: 240px;
  padding: 8px 0;
  z-index: 60;
  flex-direction: column;
  gap: 0;
  border-top: 3px solid var(--red);
}
.site-nav li:hover > ul { display: flex; }
.site-nav li ul a { display: block; padding: 10px 18px; text-transform: none; letter-spacing: 0; }
.site-nav li ul a::after { content: none !important; }
.nav-cta { background: var(--red); padding: 10px 18px; border-radius: 3px; }
.nav-cta:hover { background: var(--red-dark); }
.nav-cta a:hover, .site-nav .nav-cta a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark) center/cover no-repeat;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(5,5,6,.82) 25%, rgba(5,5,6,.35) 70%, rgba(5,5,6,.15));
}
.hero-inner { position: relative; max-width: 720px; padding: 90px 0; }
.hero .eyebrow { color: #ff4d4d; }
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 22px;
}
.hero p { color: #d5d5d5; font-size: 17px; max-width: 540px; margin-bottom: 34px; }
.hero .btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Split sections (welcome / specialization) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 90px 0;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.split h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 6px; }
.split .lead { color: var(--muted); margin-bottom: 14px; }
.split p { color: #555; margin-bottom: 14px; }

.framed { position: relative; padding: 0 22px 22px 0; }
.framed::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78%;
  height: 78%;
  border: 3px solid var(--red);
  z-index: 0;
}
.framed img { position: relative; z-index: 1; width: 100%; object-fit: cover; aspect-ratio: 5/4; }

.call-line { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.call-line .icon { color: var(--red); font-size: 22px; }
.call-line .label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.call-line .phone { font-size: 24px; font-weight: 800; }

/* ---------- Full-width CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--dark) center/cover no-repeat fixed;
  padding: 110px 0;
  text-align: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(8,8,9,.72); }
.cta-band .container { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 14px; }
.cta-band p { color: #cfcfcf; max-width: 640px; margin: 0 auto 30px; }

/* ---------- Specialization items ---------- */
.spec-items { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 34px; margin-top: 26px; }
@media (max-width: 560px) { .spec-items { grid-template-columns: 1fr; } }
.spec-item { display: flex; gap: 14px; align-items: flex-start; }
.spec-item .ico { color: var(--red); font-size: 26px; line-height: 1; margin-top: 3px; }
.spec-item h4 { font-size: 16px; margin-bottom: 4px; }
.spec-item h4 a:hover { color: var(--red); }
.spec-item p { font-size: 14px; color: #666; margin: 0; }

/* ---------- Catalogue tiles (projects style) ---------- */
.catalogue-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 70px 0 40px; flex-wrap: wrap; }
.catalogue-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }
.tile {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--dark-2) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.15) 55%); transition: background .2s; }
.tile:hover::before { background: linear-gradient(to top, rgba(160,0,0,.8), rgba(120,0,0,.25)); }
.tile .num {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 74px;
  font-weight: 800;
  color: rgba(255,255,255,.18);
  line-height: 1;
}
.tile .tile-label { position: relative; padding: 26px; color: #fff; }
.tile .tile-label h3 { font-size: 22px; margin-bottom: 4px; }
.tile .tile-label span { font-size: 13px; color: #ddd; }

/* Sub-category tiles on a main category page (e.g. Snake → Non Venomous / Venomous / CITES) */
.subcat-grid { gap: 24px; margin: 44px 0 10px; }
.subcat-grid .tile { aspect-ratio: 16/9; }
.subcat-all-title { font-size: clamp(22px, 3vw, 30px); margin: 50px 0 6px; }

/* ---------- Stats ---------- */
.stats { background: var(--red); padding: 60px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
@media (max-width: 700px) { .stats .container { grid-template-columns: repeat(2, 1fr); } }
.stat .num { color: #fff; font-size: 42px; font-weight: 800; }
.stat .lbl { color: #ffd9d9; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Contact / office section ---------- */
.office { background: var(--gray-bg); padding: 90px 0; }
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 800px) { .office-grid { grid-template-columns: 1fr; } }
.office h2 { font-size: clamp(26px, 3.4vw, 36px); }
.office address { font-style: normal; color: #555; margin: 18px 0 24px; line-height: 1.9; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.cbtn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  transition: all .15s;
}
.cbtn:hover { border-color: var(--red); color: var(--red); }
.cbtn.primary { background: #25d366; border-color: #25d366; color: #fff; font-size: 15px; }
.cbtn.primary:hover { filter: brightness(.94); }

/* ---------- Catalogue grid (archive) ---------- */
.page-title-bar { background: var(--dark); padding: 54px 0; }
.page-title-bar h1 { color: #fff; font-size: clamp(26px, 3.5vw, 40px); }
.page-title-bar .crumb { color: #9a9a9a; font-size: 13px; margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; }

/* Sorting buttons above the species grid */
.sort-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 42px 0 -14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.sort-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sort-options { display: flex; flex-wrap: wrap; gap: 8px; }
.sort-btn {
  display: inline-block;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  transition: all .15s;
}
.sort-btn:hover { border-color: var(--red); color: var(--red); }
.sort-btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
@media (max-width: 700px) {
  .sort-bar { gap: 10px; margin-top: 32px; }
  .sort-btn { padding: 8px 13px; font-size: 12px; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin: 50px 0 70px;
}
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card { position: relative; background: #fff; border: 1px solid var(--line); transition: box-shadow .18s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 5px; z-index: 3; }
.badge { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 4px 9px; color: #fff; text-transform: uppercase; }
.badge-red { background: var(--red); }
.badge-dark { background: var(--dark); }
.card-image { aspect-ratio: 1/1; overflow: hidden; background: var(--dark-2); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.product-card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-cat { font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.card-title:hover { color: var(--red); }

/* ---------- Single species ---------- */
.single-product-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; margin: 54px 0 80px; }
@media (max-width: 800px) { .single-product-wrap { grid-template-columns: 1fr; } }
.single-product-wrap .gallery img { width: 100%; object-fit: cover; }
.single-info h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 10px 0 14px; }
.single-info .desc { color: #555; margin: 18px 0 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #b9b9b9; font-size: 14px; }
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 50px;
  padding: 70px 0 50px;
}
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a:hover { color: var(--red); }
.footer-logo img { height: 60px; width: auto; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #3a3a3e;
  border-radius: 50%;
  font-size: 16px;
}
.footer-socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-bottom { border-top: 1px solid #26262a; padding: 20px 0; font-size: 13px; color: #8a8a8a; }

/* ---------- Generic pages ---------- */
.page-content { margin: 50px 0 80px; max-width: 860px; }
.page-content h1 { font-size: 32px; margin-bottom: 18px; }
.page-content h2 { font-size: 24px; margin: 26px 0 10px; }
.page-content p { margin-bottom: 14px; color: #444; }

.woocommerce-result-count, .woocommerce-ordering { display: none; }

/* ---------- Pagination ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.woocommerce-pagination, .pagination { margin: 10px 0 70px; }
.woocommerce-pagination ul, .pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .15s, color .15s, border-color .15s;
}
a.page-numbers:hover { border-color: var(--red); color: var(--red); }
.page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 2px; }
