/* ==========================================================================
   Royal Taj Traders — Main Stylesheet
   A single, dependency-free design system (no Bootstrap / carousel / popup libs)
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --navy-950: #0b1224;
  --navy-900: #0f1b33;
  --navy-800: #16213e;
  --navy-700: #1f2d4d;
  --gold-600: #a67c1e;
  --gold-500: #c9a227;
  --gold-400: #d9b84a;
  --gold-100: #f0d998;
  --cream: #faf6ec;
  --white: #ffffff;
  --ink: #1c2130;
  --ink-soft: #4a5164;
  --muted: #7c8296;
  --line: #e7e2d4;
  --shadow-sm: 0 2px 10px rgba(15, 27, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 27, 51, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 27, 51, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --header-h: 92px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---- Reset --------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
}
p { margin: 0 0 16px; color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }

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

/* ---- Utility sections ---------------------------------------------------*/
.section { padding: 100px 0; }
.section--tight { padding: 70px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy p { color: var(--white); }
.section--navy p { color: rgba(255, 255, 255, .75); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.section-title { max-width: 720px; margin-bottom: 48px; }
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-title h2 span { color: var(--gold-500); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  border: 2px solid transparent;
  transition: all .3s var(--ease);
}
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--navy-900); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn .btn-spinner { display: none; }
.btn.is-loading { opacity: .8; cursor: not-allowed; pointer-events: none; transform: none; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn-outline { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-outline:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.btn-outline-navy { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline-navy:hover { background: var(--navy-900); color: var(--white); }

/* ---- Header / Nav --------------------------------------------------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.brand-text { font-family: var(--font-head); line-height: 1.15; }
.brand-text strong { display: block; font-size: 19px; color: var(--navy-900); }
.brand-text span { display: block; font-size: 11px; letter-spacing: .12em; color: var(--gold-600); font-weight: 600; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.mobile-nav-cta { display: none; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-radius: 999px;
  transition: all .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.main-nav > li.active > a { color: var(--gold-600); background: rgba(201, 162, 39, .1); }
.main-nav > li > a i { font-size: 11px; transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .main-nav > li > a:hover { color: var(--gold-600); background: rgba(201, 162, 39, .1); }
  .main-nav > li:hover > a i { transform: rotate(180deg); }
}

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s var(--ease);
  border-top: 3px solid var(--gold-500);
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown.open > a { color: var(--gold-600); }
.dropdown.open > a i { transform: rotate(180deg); }
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .dropdown-menu a:hover { background: var(--cream); color: var(--gold-600); }
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--navy-900);
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  align-items: center;
  justify-content: center;
}
.nav-toggle .fa-times { display: none; }
.nav-toggle[aria-expanded="true"] .fa-bars { display: none; }
.nav-toggle[aria-expanded="true"] .fa-times { display: inline-block; }

@media (max-width: 991px) {
  .nav-toggle { display: flex; position: relative; z-index: 1001; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    height: 100vh;
    background: var(--navy-950);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 24px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
    z-index: 1000;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > li > a { color: var(--white); justify-content: space-between; border-radius: var(--radius-sm); }
  .main-nav > li.active > a { background: none; }
  .dropdown.open > a { background: rgba(255, 255, 255, .06); }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: none;
    border-radius: 0;
    border-left: 2px solid rgba(255, 255, 255, .12);
    margin-left: 8px;
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 14px;
    border-top: none;
    transition: max-height .3s var(--ease), padding .3s var(--ease);
  }
  .dropdown.open .dropdown-menu { max-height: 400px; padding: 6px 0 6px 14px; }
  .dropdown-menu a { color: rgba(255, 255, 255, .7); padding: 9px 10px; font-size: 14px; }
  .header-actions .btn-gold { display: none; }
  .mobile-nav-cta { display: block; margin-top: 20px; }
  .mobile-nav-cta a { display: flex; justify-content: center; width: 100%; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 36, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease);
    z-index: 998;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
}

/* ---- Hero ----------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(11, 18, 36, .88), rgba(15, 27, 51, .65)), url('../images/homeone.jpg') center/cover no-repeat;
  color: var(--white);
}
.hero-content { max-width: 640px; }
.hero-content h1 { color: var(--white); font-size: clamp(32px, 5vw, 54px); }
.hero-content p { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

/* ---- Page banner (inner pages) --------------------------------------------*/
.page-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(11, 18, 36, .82), rgba(15, 27, 51, .68)); }
.page-banner .inner { position: relative; z-index: 1; }
.page-banner h1 { color: var(--white); font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.breadcrumb a { color: var(--gold-400); font-weight: 600; }

/* ---- Grid helpers ----------------------------------------------------------*/
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.align-center { align-items: center; }

/* ---- About / feature list --------------------------------------------------*/
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-weight: 600;
  color: var(--ink);
}
.check-list i {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 2px;
}
.media-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.founder-mark {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.founder-mark .founder-photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.founder-sign { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.founder-sign img { height: 44px; width: auto; opacity: .8; }
.founder-sign span { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }

/* ---- Leadership / team -------------------------------------------------------*/
.team-grid { max-width: 720px; margin: 0 auto; }
.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: all .3s var(--ease);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.team-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--gold-500);
}
.team-card h3 { font-size: 20px; margin-bottom: 4px; }
.team-card span { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); }

/* ---- Cards -----------------------------------------------------------------*/
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: all .3s var(--ease);
  text-align: left;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card h3 a:hover { color: var(--gold-600); }
.card p { margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--gold-600); }
.card-link i { transition: transform .25s var(--ease); font-size: 12px; }
.card-link:hover i { transform: translateX(4px); }

/* ---- Stats -----------------------------------------------------------------*/
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat h3 { font-family: var(--font-head); font-size: clamp(32px, 4vw, 48px); color: var(--gold-400); margin-bottom: 4px; }
.stat p { color: rgba(255, 255, 255, .7); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin: 0; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 32px; } }

/* ---- Benefit / CTA strip ----------------------------------------------------*/
.benefit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0 32px; }
.benefit-list .item { display: flex; align-items: center; gap: 14px; }
.benefit-list i { width: 46px; height: 46px; border-radius: 50%; background: rgba(201, 162, 39, .15); color: var(--gold-400); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.benefit-list h4 { color: var(--white); font-size: 16px; margin: 0; font-family: var(--font-body); font-weight: 600; }
@media (max-width: 600px) { .benefit-list { grid-template-columns: 1fr; } }

.cta-strip {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-strip h2 { color: var(--white); margin: 0; max-width: 560px; }

/* ---- Gallery / logo strip ----------------------------------------------------*/
.logo-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.logo-card img { width: 100%; height: 230px; object-fit: cover; transition: transform .4s var(--ease); }
.logo-card:hover img { transform: scale(1.06); }
.logo-card .cap { position: absolute; inset: auto 0 0 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(11,18,36,.9), transparent); }
.logo-card .cap h3 { color: var(--white); font-size: 16px; margin: 0 0 2px; }
.logo-card .cap span { color: var(--gold-400); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

/* ---- Process pages (spinning/weaving/etc) -------------------------------------*/
.process-block { margin-bottom: 36px; }
.process-block h2 { font-size: 22px; display: flex; align-items: center; gap: 12px; }
.process-block h2 .num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-500); color: var(--navy-950);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-family: var(--font-body); font-weight: 800; flex-shrink: 0;
}
.process-block .check-list li { font-weight: 500; color: var(--ink-soft); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-grid .frame { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.gallery-grid .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-grid .frame:hover img { transform: scale(1.08); }

/* ---- Products page filter -----------------------------------------------------*/
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 48px; }
.filter-btn {
  border: 2px solid var(--line);
  background: var(--white);
  padding: 11px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--gold-500); color: var(--gold-600); }
.filter-btn.active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-grid .frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 1/1; }
.product-grid .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.product-grid .frame:hover img { transform: scale(1.06); }
.product-col.is-hidden { display: none; }
@media (max-width: 991px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

/* ---- Contact page ---------------------------------------------------------------*/
.contact-info-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list i { width: 46px; height: 46px; border-radius: 50%; background: var(--cream); color: var(--gold-600); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-info-list h4 { margin: 0 0 4px; font-size: 15px; font-family: var(--font-body); color: var(--navy-900); }
.contact-info-list a, .contact-info-list span { color: var(--ink-soft); }
.contact-info-list a:hover { color: var(--gold-600); }

.contact-form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: var(--cream);
  transition: all .25s var(--ease);
}
.form-control:focus { outline: none; border-color: var(--gold-500); background: var(--white); box-shadow: 0 0 0 4px rgba(201, 162, 39, .12); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-msg { margin-top: 14px; font-weight: 700; font-size: 14px; padding: 0; border-radius: var(--radius-sm); transition: all .2s var(--ease); }
.form-msg:empty { margin-top: 0; }
.form-msg.ok, .form-msg.err { padding: 12px 16px; }
.form-msg.ok { color: #1f8a4c; background: #eaf7ef; }
.form-msg.err { color: #d64545; background: #fdeeee; }

/* ---- Footer -----------------------------------------------------------------*/
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .75); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.footer-brand-text { font-family: var(--font-head); line-height: 1.2; }
.footer-brand-text strong { display: block; font-size: 18px; color: var(--white); }
.footer-brand-text span { display: block; font-size: 10px; letter-spacing: .1em; color: var(--gold-400); font-weight: 600; text-transform: uppercase; font-family: var(--font-body); margin-top: 2px; }
.footer-col h3 { color: var(--white); font-size: 17px; margin-bottom: 22px; font-family: var(--font-body); font-weight: 700; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--gold-400); padding-left: 4px; transition: padding .2s var(--ease); }
.footer-touch-list li { display: flex; gap: 12px; margin-bottom: 18px; }
.footer-touch-list i { color: var(--gold-500); font-size: 18px; margin-top: 3px; flex-shrink: 0; }
.footer-touch-list h4 { color: var(--white); font-size: 14px; margin: 0 0 2px; font-family: var(--font-body); }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease);
}
.social-row a:hover { background: var(--gold-500); color: var(--navy-950); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0; text-align: center; font-size: 14px; }
.footer-bottom a { color: var(--gold-400); font-weight: 700; }

/* ---- Back to top -------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-950);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--ease);
  z-index: 500;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-900); color: var(--white); }


/* ---- Responsive: sections ----------------------------------------------------*/
@media (max-width: 991px) {
  .section { padding: 70px 0; }
  .cta-strip { flex-direction: column; text-align: center; padding: 40px 28px; }
}
