/* ===========================
   Oman Optics — Stylesheet
   Clean · White · Editorial
   =========================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f2;
  --ink: #0f0f10;
  --ink-soft: #3a3a3d;
  --muted: #7a7a80;
  --line: #e8e6e0;
  --accent: #0f0f10;
  --gold: #b58b3a;
  --wa: #25d366;
  --shadow-sm: 0 1px 2px rgba(15,15,16,.04), 0 2px 8px rgba(15,15,16,.04);
  --shadow-md: 0 10px 30px rgba(15,15,16,.08);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1240px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }
h5 { font-size: 0.85rem; font-family: var(--sans); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ===========================
   Announcement bar
   =========================== */
.announcement {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  padding: 10px 0;
}
.announcement .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.announcement .sep { opacity: .4; }
.announcement i { margin-right: 6px; color: var(--gold); }

/* ===========================
   Header
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  border-radius: 50%;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}
.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand.light .brand-mark { background: #fff; color: var(--ink); }
.brand.light .brand-name { color: #fff; }
.brand.light .brand-sub { color: rgba(255,255,255,.6); }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width .3s ease;
}
.nav a:not(.btn):hover::after,
.nav a.active::after { width: 100%; }
.nav a.active { color: var(--ink); }
.nav-cta { padding: 10px 20px !important; }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: all .25s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2d; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f3f2ed; color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

.link, .link-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap .25s ease;
}
.link:hover, .link-lg:hover { gap: 14px; color: var(--ink); }
.link-lg { font-size: 0.95rem; }

/* ===========================
   Hero
   =========================== */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(1100px 500px at 85% 10%, #f5f2ea 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, #fafaf7 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-text .lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 22px 0 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}
.hero-stats span {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
}
.hero-img-main, .hero-img-sub {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.hero-img-main {
  top: 0; right: 0;
  width: 78%;
  height: 88%;
}
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-sub {
  bottom: 0; left: 0;
  width: 46%;
  height: 46%;
  border: 6px solid #fff;
}
.hero-img-sub img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: 44%;
  bottom: 8%;
  background: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  max-width: 240px;
}
.hero-badge i {
  font-size: 1.6rem;
  color: var(--gold);
}
.hero-badge strong { display: block; font-size: 0.9rem; }
.hero-badge span { color: var(--muted); font-size: 0.76rem; }

/* ===========================
   Brand strip
   =========================== */
.brand-strip {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand-strip-title {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.brand-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px 60px;
}
.brand-list span {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  opacity: .85;
  transition: opacity .3s ease, transform .3s ease;
  cursor: default;
}
.brand-list span:hover { opacity: 1; transform: translateY(-2px); color: var(--gold); }

/* ===========================
   Section base
   =========================== */
.section {
  padding: 100px 0;
}
.section-head { margin-bottom: 54px; max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: none;
  flex-wrap: wrap;
  gap: 20px;
}

/* ===========================
   Categories
   =========================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  display: flex;
  flex-direction: column;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  color: var(--ink);
}
.cat-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.cat-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.cat-card:hover .cat-img img { transform: scale(1.06); }
.cat-body { padding: 28px; }
.cat-body h3 { margin-bottom: 10px; }
.cat-body p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; }

/* ===========================
   Products
   =========================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
}
.product-card:hover { transform: translateY(-4px); }
.product-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.product-card:hover .product-media img { transform: scale(1.08); }
.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.product-tag.new { background: var(--gold); color: #fff; }
.product-wa {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 42px; height: 42px;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: all .3s ease;
  font-size: 1.1rem;
}
.product-card:hover .product-wa { opacity: 1; transform: translateY(0); }
.product-wa:hover { background: #1da851; color: #fff; }

.product-brand {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.product-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--ink);
}
.product-price {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}
.product-price .was {
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
  font-size: 0.88rem;
}

/* ===========================
   Why us
   =========================== */
.why { background: var(--bg-soft); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-card i {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 20px;
  display: inline-block;
}
.why-card h4 { margin-bottom: 10px; }
.why-card p { color: var(--ink-soft); font-size: 0.92rem; }

/* ===========================
   Testimonials
   =========================== */
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.t-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
}
.t-card > i {
  position: absolute;
  top: 24px; right: 26px;
  font-size: 1.6rem;
  color: var(--bg-soft);
}
.t-card blockquote {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--ink);
  font-style: italic;
}
.t-card figcaption { font-size: 0.88rem; }
.t-card figcaption strong { display: block; font-weight: 600; }
.t-card figcaption span { color: var(--muted); font-size: 0.8rem; }

/* ===========================
   CTA band
   =========================== */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 70px 0;
}
.cta-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 1rem; }

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: #0a0a0b;
  color: rgba(255,255,255,.7);
  padding: 80px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 50px;
  margin-bottom: 60px;
}
.site-footer h5 { color: #fff; margin-bottom: 22px; }
.site-footer ul li {
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--gold); }
.foot-about {
  font-size: 0.92rem;
  margin: 18px 0 22px;
  max-width: 320px;
  line-height: 1.7;
}
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all .25s ease;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.site-footer p {
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.site-footer p i { color: var(--gold); margin-right: 8px; width: 16px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* ===========================
   Floating WhatsApp
   =========================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 30px rgba(37,211,102,.35);
  z-index: 40;
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* ===========================
   Page hero (Products / Contact)
   =========================== */
.page-hero {
  padding: 80px 0 60px;
  background: var(--bg-soft);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { color: var(--ink-soft); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ===========================
   Filters
   =========================== */
.filters {
  padding: 26px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 78px;
  z-index: 30;
}
.filter-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
  color: var(--ink-soft);
  transition: all .2s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.products-section { padding: 70px 0 100px; }
.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ===========================
   Contact
   =========================== */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-content: start;
}
.info-card {
  background: var(--bg-soft);
  padding: 28px 24px;
  border-radius: var(--radius);
  transition: transform .3s ease;
}
.info-card:hover { transform: translateY(-3px); }
.info-card i {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 14px;
  display: inline-block;
}
.info-card h4 { margin-bottom: 8px; }
.info-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 10px; }
.info-card p.muted { color: var(--muted); font-size: 0.85rem; margin-bottom: 0; }
.info-card .btn { margin-top: 6px; }

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { margin-bottom: 8px; }
.form-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.form-sub a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.contact-form label {
  display: block;
  margin-bottom: 18px;
}
.contact-form label span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15,15,16,.05);
}
.contact-form textarea { resize: vertical; }
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: #eaf7ee;
  color: #1a7a3d;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.map-section { line-height: 0; border-top: 1px solid var(--line); }
.map-section iframe { display: block; width: 100%; filter: grayscale(20%); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { aspect-ratio: 1 / 0.8; max-width: 560px; margin: 0 auto; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .t-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .hero { padding: 50px 0 40px; }
  .announcement { font-size: 12px; }
  .announcement .container { gap: 8px; }
  .announcement .sep { display: none; }

  .hamburger { display: flex; }
  .nav {
    position: fixed;
    inset: 78px 0 auto 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 20px 24px 30px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .35s ease;
    align-items: stretch;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav a:last-child { border-bottom: none; margin-top: 12px; }
  .nav-cta { align-self: flex-start; }

  .hero-stats { gap: 26px; flex-wrap: wrap; }
  .brand-list { gap: 24px 36px; }
  .brand-list span { font-size: 1.25rem; }
  .cat-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-info { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 22px; }
  .row-2 { grid-template-columns: 1fr; }
  .cta-wrap { flex-direction: column; align-items: flex-start; text-align: left; }
  .filters { top: 64px; }
  .nav-wrap { height: 64px; }
}

@media (max-width: 420px) {
  .brand-sub { display: none; }
  .hero-badge { left: auto; right: 5%; bottom: -5%; }
  .product-grid { grid-template-columns: 1fr; }
}
