/* ==========================================================================
   Royola Pacific Corp. — site-wide stylesheet
   Modern, responsive, dependency-free (system font stack, no web fonts).
   Heritage palette: deep burgundy + warm cream, inherited from the 2004 site.
   ========================================================================== */

:root {
  --maroon: #7c1d1d;
  --maroon-dark: #5e1414;
  --maroon-soft: #9a3232;
  --gold: #b8862b;
  --gold-soft: #f3e6c9;
  --cream: #faf7f1;
  --paper: #ffffff;
  --ink: #26211b;
  --muted: #6d6357;
  --line: #e8e0d2;
  --shadow: 0 1px 2px rgba(38, 33, 27, .06), 0 8px 24px rgba(38, 33, 27, .07);
  --radius: 12px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; height: auto; }

/* ---------- Layout primitives ---------- */

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

main { display: block; padding-block: 8px 56px; }

.section { padding-block: 40px; }
.section + .section { padding-top: 8px; }

.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--maroon);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header / navigation ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 46px; height: 46px; border-radius: 8px; }
.brand-name {
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.25;
  letter-spacing: .01em;
}
.brand-tag {
  display: block;
  font-weight: 400;
  font-size: .76rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
}
.site-nav a:hover { background: var(--gold-soft); color: var(--maroon-dark); }
.site-nav a[aria-current="page"] {
  color: var(--maroon);
  background: var(--gold-soft);
  font-weight: 600;
}

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

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-ghost:hover { background: var(--maroon); color: #fff; }
.btn-light { background: #fff; color: var(--maroon-dark); }
.btn-light:hover { background: var(--gold-soft); color: var(--maroon-dark); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1000px 420px at 85% -10%, rgba(184, 134, 43, .16), transparent 60%),
    linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
  padding-block: 64px 56px;
}
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.18rem);
  max-width: 640px;
  color: #f4e9dd;
  margin: 0 0 26px;
}
.hero .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* Trust strip under hero */
.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  justify-content: center;
  color: var(--muted);
  font-size: .92rem;
}
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip .dot { color: var(--gold); font-weight: 700; }

/* ---------- Sections & cards ---------- */

.page-head { padding-block: 40px 8px; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.01em; }
.page-head .lead { color: var(--muted); max-width: 720px; margin: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(38,33,27,.08), 0 14px 34px rgba(38,33,27,.10); }
.card .card-media { aspect-ratio: 3 / 2; background: #efe9dd; overflow: hidden; }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .card-body { padding: 16px 18px 18px; }
.card h2, .card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--maroon-dark); }
.card p { margin: 0; font-size: .92rem; color: var(--muted); }
.card .card-cta { margin-top: 12px; font-size: .88rem; font-weight: 600; color: var(--maroon); }
.card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  color: #a2937c;
  font-size: .82rem;
  text-align: center;
  background: linear-gradient(145deg, #f1eadb, #e7ddc9);
}
.hero-ghost { border-color: #e8c9a8; color: #f6e8d6; }
.hero-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Feature blocks (two-column) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.feature .icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  color: var(--maroon-dark);
  border-radius: 10px;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.feature h3 { margin: 0 0 6px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(150deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cta-band h2 { margin: 0 0 6px; font-size: 1.3rem; }
.cta-band p { margin: 0; color: #f2e6d8; }
.cta-band .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Product tables (catalogs) ---------- */

.table-scroll {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table.product-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: .95rem;
}
.product-table th, .product-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.product-table thead th {
  background: var(--maroon);
  color: #fff;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.product-table tbody:nth-child(even of tbody) { background: #fbf8f2; }
.product-table tbody:last-child tr:last-child td { border-bottom: none; }
.product-table .item-no { font-weight: 600; white-space: nowrap; color: var(--maroon-dark); }
.product-table .dims { white-space: nowrap; color: var(--muted); }
.product-table .photo-cell { text-align: center; width: 130px; }
.product-table .photo-cell img {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: 110px;
}
.photo-placeholder {
  display: inline-block;
  width: 110px;
  padding: 26px 8px;
  border: 1px dashed #cfc4b0;
  border-radius: 8px;
  color: #a2937c;
  font-size: .74rem;
  line-height: 1.35;
  text-align: center;
  background: #faf6ee;
}
.set-note { color: var(--muted); font-size: .88rem; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  padding-top: 18px;
  font-size: .86rem;
  color: var(--muted);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-inline: 6px; color: #c9bda8; }
.breadcrumbs a { color: var(--maroon); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---------- Pagination / catalog nav ---------- */

.catalog-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 28px;
}
.catalog-pager .links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- FAQ (details/summary) ---------- */

.faq-list { max-width: 820px; }
.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 15px 18px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--maroon);
}
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list .faq-a { padding: 0 18px 16px; color: var(--muted); }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.info-card h2 { margin-top: 0; font-size: 1.15rem; }
.info-card address { font-style: normal; line-height: 1.8; }
.info-card a { color: var(--maroon); }

/* ---------- Location cards ---------- */

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.location-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--maroon);
  border-radius: 10px;
  padding: 18px 20px;
}
.location-card h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--maroon-dark); }
.location-card h3 a { color: inherit; text-decoration: none; }
.location-card h3 a:hover { color: var(--maroon); text-decoration: underline; }
.location-card p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Policy lists ---------- */

.policy-list { padding-left: 0; list-style: none; max-width: 840px; }
.policy-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 18px;
  margin-bottom: 10px;
}
.policy-list li::marker { content: ""; }

/* ---------- Footer ---------- */

.site-footer {
  background: #221a15;
  color: #cfc4b4;
  margin-top: 40px;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-block: 44px 28px;
}
.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cfc4b4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 8px; background: #fff; }
.footer-brand strong { color: #fff; display: block; font-size: 1.02rem; }
.footer-brand span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #a3947f; }
.footer-address { font-style: normal; line-height: 1.8; color: #b4a48f; }
.footer-address a { color: #e8d9c4; }
.footer-bottom {
  border-top: 1px solid #3a2f26;
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: #a3947f;
  font-size: .85rem;
}

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

h1, h2, h3, h4 { line-height: 1.3; color: var(--ink); }
.section h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin: 0 0 8px; }
.section .section-intro { color: var(--muted); max-width: 760px; margin: 0 0 26px; }
.lede { font-size: 1.06rem; color: var(--muted); }

a { color: var(--maroon); }
a:hover { color: var(--maroon-dark); }

.note {
  background: var(--gold-soft);
  border: 1px solid #e4d3a8;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .93rem;
  color: #6b5316;
  max-width: 840px;
}

.badge {
  display: inline-block;
  background: var(--gold-soft);
  color: #6b5316;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { justify-content: center; }
  .site-nav { margin-left: 0; }
  .site-nav ul { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-block: 44px 40px; }
  .product-table { min-width: 560px; }
}