/*
Theme Name: Royal Persian Carpets
Theme URI: https://royalpersiancarpets.com/
Author: Royal Persian Carpets
Description: A fast, responsive showroom website for Royal Persian Carpets in Birtinya, Queensland.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: royal-persian-carpets
*/

:root {
  --rpc-ink: #17221a;
  --rpc-muted: #5c685f;
  --rpc-green: #176b3a;
  --rpc-green-dark: #0d4727;
  --rpc-gold: #e8b738;
  --rpc-cream: #f8f4e8;
  --rpc-paper: #fffdf8;
  --rpc-border: #e4e1d8;
  --rpc-shadow: 0 18px 50px rgba(25, 36, 27, 0.12);
  --rpc-radius: 22px;
  --rpc-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--rpc-ink);
  background: var(--rpc-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rpc-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rpc-green-dark); }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .7em; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.55rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
p { margin: 0 0 1.25em; }

.rpc-container { width: min(calc(100% - 40px), var(--rpc-container)); margin-inline: auto; }
.rpc-section { padding: clamp(70px, 9vw, 118px) 0; }
.rpc-section--cream { background: var(--rpc-cream); }
.rpc-section--green { color: #fff; background: var(--rpc-green-dark); }
.rpc-section--green a { color: #fff; }
.rpc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--rpc-green);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.rpc-eyebrow::before { width: 30px; height: 2px; content: ""; background: var(--rpc-gold); }
.rpc-section--green .rpc-eyebrow { color: #f9d978; }
.rpc-lead { max-width: 760px; color: var(--rpc-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.rpc-section--green .rpc-lead { color: rgba(255,255,255,.8); }
.rpc-center { text-align: center; }
.rpc-center .rpc-eyebrow, .rpc-center .rpc-lead { margin-inline: auto; }

.rpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 2px solid var(--rpc-green);
  border-radius: 999px;
  color: #fff;
  background: var(--rpc-green);
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.rpc-btn:hover { color: #fff; background: var(--rpc-green-dark); border-color: var(--rpc-green-dark); transform: translateY(-2px); }
.rpc-btn--light { color: var(--rpc-green-dark); background: #fff; border-color: #fff; }
.rpc-btn--light:hover { color: var(--rpc-green-dark); background: var(--rpc-gold); border-color: var(--rpc-gold); }
.rpc-btn--outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.75); }
.rpc-btn--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.rpc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 9999; padding: 12px 18px; color: #fff; background: #000; }
:focus-visible { outline: 3px solid var(--rpc-gold); outline-offset: 3px; }

.rpc-topbar { padding: 8px 0; color: #fff; background: var(--rpc-green-dark); font-size: .82rem; font-weight: 650; }
.rpc-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rpc-topbar a { color: #fff; text-decoration: none; }
.rpc-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,253,248,.96); border-bottom: 1px solid var(--rpc-border); backdrop-filter: blur(16px); }
.admin-bar .rpc-header { top: 32px; }
.rpc-header__inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.rpc-brand { flex: 0 0 auto; }
.rpc-brand img { width: 180px; max-height: 76px; object-fit: contain; }
.rpc-header__right { display: flex; align-items: center; gap: 22px; }
.rpc-nav ul { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.rpc-nav a { color: var(--rpc-ink); font-size: .9rem; font-weight: 750; text-decoration: none; }
.rpc-nav a:hover, .rpc-nav .current-menu-item > a, .rpc-nav .current_page_item > a { color: var(--rpc-green); }
.rpc-header-phone { white-space: nowrap; }
.rpc-menu-toggle { display: none; width: 48px; height: 48px; padding: 11px; border: 1px solid var(--rpc-border); border-radius: 50%; color: var(--rpc-ink); background: #fff; cursor: pointer; }
.rpc-menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.rpc-hero { position: relative; min-height: min(760px, 82vh); display: grid; align-items: center; overflow: hidden; color: #fff; background: #1c2b20; }
.rpc-hero::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(10,25,15,.88) 0%, rgba(10,25,15,.66) 48%, rgba(10,25,15,.2) 100%); z-index: 1; }
.rpc-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rpc-hero__content { position: relative; z-index: 2; max-width: 770px; padding: 90px 0; }
.rpc-hero .rpc-eyebrow { color: #f9d978; }
.rpc-hero p { max-width: 680px; color: rgba(255,255,255,.86); font-size: clamp(1.08rem, 2vw, 1.32rem); }
.rpc-trustbar { position: relative; z-index: 3; margin-top: -42px; }
.rpc-trustbar__grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--rpc-radius); box-shadow: var(--rpc-shadow); }
.rpc-trust { padding: 25px 30px; text-align: center; }
.rpc-trust + .rpc-trust { border-left: 1px solid var(--rpc-border); }
.rpc-trust strong { display: block; color: var(--rpc-green-dark); font-size: 1.45rem; }
.rpc-trust span { color: var(--rpc-muted); font-size: .88rem; }

.rpc-grid { display: grid; gap: 24px; }
.rpc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rpc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rpc-card { overflow: hidden; background: #fff; border: 1px solid var(--rpc-border); border-radius: var(--rpc-radius); box-shadow: 0 12px 40px rgba(25,36,27,.07); }
.rpc-card__image { aspect-ratio: 4/3; width: 100%; object-fit: cover; transition: transform .45s ease; }
.rpc-card:hover .rpc-card__image { transform: scale(1.03); }
.rpc-card__body { padding: 25px; }
.rpc-card__body h3 { margin-bottom: 8px; }
.rpc-card__body p { margin-bottom: 0; color: var(--rpc-muted); font-size: .94rem; }
.rpc-card--link { color: inherit; text-decoration: none; }
.rpc-card--link:hover { color: inherit; }
.rpc-card--link .rpc-card__body::after { content: "Explore →"; display: block; margin-top: 18px; color: var(--rpc-green); font-weight: 800; }
.rpc-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 45px; }
.rpc-heading-row > div { max-width: 760px; }

.rpc-split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 7vw, 90px); }
.rpc-split--reverse .rpc-split__media { order: 2; }
.rpc-split__media { position: relative; }
.rpc-split__media img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; border-radius: var(--rpc-radius); box-shadow: var(--rpc-shadow); }
.rpc-split__accent { position: absolute; right: -18px; bottom: -18px; width: 42%; aspect-ratio: 1; border: 10px solid var(--rpc-paper); border-radius: 18px; object-fit: cover; }
.rpc-checks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.rpc-checks li { position: relative; padding-left: 27px; font-weight: 650; }
.rpc-checks li::before { position: absolute; left: 0; content: "✓"; color: var(--rpc-green); font-weight: 900; }

.rpc-category-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 30px; margin: 28px 0 0; padding: 0; list-style: none; }
.rpc-category-list li { padding: 13px 0; border-bottom: 1px solid var(--rpc-border); font-weight: 700; }
.rpc-category-list li::before { content: "◆"; margin-right: 10px; color: var(--rpc-gold); font-size: .65em; }

.rpc-visit { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; overflow: hidden; background: #fff; border-radius: var(--rpc-radius); box-shadow: var(--rpc-shadow); }
.rpc-visit__image { min-height: 520px; width: 100%; height: 100%; object-fit: cover; }
.rpc-visit__content { padding: clamp(38px, 6vw, 76px); }
.rpc-info { display: grid; gap: 22px; margin-top: 30px; }
.rpc-info__item strong { display: block; margin-bottom: 3px; color: var(--rpc-green-dark); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.rpc-info__item span, .rpc-info__item a { color: var(--rpc-ink); text-decoration: none; }

.rpc-page-hero { padding: clamp(72px, 10vw, 130px) 0; color: #fff; background: var(--rpc-green-dark); }
.rpc-page-hero .rpc-eyebrow { color: #f9d978; }
.rpc-page-hero h1 { max-width: 950px; font-size: clamp(2.7rem, 5.5vw, 4.8rem); }
.rpc-page-hero p { max-width: 760px; color: rgba(255,255,255,.8); font-size: 1.18rem; }
.rpc-page-hero--image { position: relative; isolation: isolate; background-position: center; background-size: cover; }
.rpc-page-hero--image::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg, rgba(8,31,17,.92), rgba(8,31,17,.48)); }

.rpc-collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.rpc-collection { min-height: 200px; display: flex; flex-direction: column; justify-content: end; padding: 25px; overflow: hidden; position: relative; color: #fff; background: var(--rpc-green-dark); border-radius: 18px; isolation: isolate; }
.rpc-collection::before { position: absolute; inset: 0; z-index: -2; content: ""; background-image: var(--rpc-bg); background-position: center; background-size: cover; transition: transform .4s ease; }
.rpc-collection::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(0deg, rgba(5,22,11,.9), rgba(5,22,11,.08)); }
.rpc-collection:hover::before { transform: scale(1.04); }
.rpc-collection h3 { margin: 0; font-size: 1.18rem; }

.rpc-size-table { width: 100%; margin-top: 34px; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(25,36,27,.07); }
.rpc-size-table th, .rpc-size-table td { padding: 18px 20px; border-bottom: 1px solid var(--rpc-border); text-align: left; }
.rpc-size-table th { color: #fff; background: var(--rpc-green-dark); }
.rpc-size-table tr:last-child td { border-bottom: 0; }

.rpc-cta { padding: clamp(50px, 7vw, 85px); color: #fff; background: var(--rpc-green); border-radius: var(--rpc-radius); }
.rpc-cta h2 { max-width: 800px; }
.rpc-cta p { max-width: 690px; color: rgba(255,255,255,.82); }

.rpc-footer { color: #fff; background: #092e1a; }
.rpc-footer__main { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 60px; padding: 72px 0 55px; }
.rpc-footer__logo { width: 190px; margin-bottom: 20px; }
.rpc-footer h3 { color: #f5d16c; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.rpc-footer p, .rpc-footer li, .rpc-footer a { color: rgba(255,255,255,.78); }
.rpc-footer a { text-decoration: none; }
.rpc-footer a:hover { color: #fff; }
.rpc-footer ul { margin: 0; padding: 0; list-style: none; }
.rpc-footer li { margin-bottom: 9px; }
.rpc-footer__bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.62); font-size: .82rem; }

.rpc-empty { padding: 100px 0; }
.rpc-content { max-width: 850px; }
.rpc-content > *:first-child { margin-top: 0; }
.rpc-content img { border-radius: 14px; }

@media (max-width: 1040px) {
  .rpc-menu-toggle { display: block; }
  .rpc-header-phone { display: none; }
  .rpc-nav { position: fixed; inset: 0; top: 0; z-index: 50; padding: 120px 30px 40px; visibility: hidden; opacity: 0; background: var(--rpc-paper); transition: opacity .2s ease, visibility .2s ease; }
  .rpc-nav.is-open { visibility: visible; opacity: 1; }
  .rpc-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .rpc-nav li { border-bottom: 1px solid var(--rpc-border); }
  .rpc-nav a { display: block; padding: 18px 2px; font-size: 1.15rem; }
  .rpc-menu-toggle { position: relative; z-index: 60; }
  .rpc-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .rpc-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .rpc-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .rpc-grid--3, .rpc-collection-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .rpc-container { width: min(calc(100% - 28px), var(--rpc-container)); }
  .rpc-topbar__inner { justify-content: center; text-align: center; }
  .rpc-topbar__inner span:last-child { display: none; }
  .rpc-header__inner { min-height: 78px; }
  .rpc-brand img { width: 142px; max-height: 62px; }
  .admin-bar .rpc-header { top: 46px; }
  .rpc-hero { min-height: 670px; }
  .rpc-hero::before { background: linear-gradient(90deg, rgba(10,25,15,.86), rgba(10,25,15,.55)); }
  .rpc-trustbar { margin-top: -24px; }
  .rpc-trustbar__grid { grid-template-columns: 1fr; }
  .rpc-trust { padding: 18px; }
  .rpc-trust + .rpc-trust { border-top: 1px solid var(--rpc-border); border-left: 0; }
  .rpc-heading-row { align-items: start; flex-direction: column; }
  .rpc-grid--3, .rpc-grid--2, .rpc-split, .rpc-visit, .rpc-collection-grid { grid-template-columns: 1fr; }
  .rpc-split--reverse .rpc-split__media { order: 0; }
  .rpc-checks, .rpc-category-list { grid-template-columns: 1fr; }
  .rpc-visit__image { min-height: 340px; }
  .rpc-footer__main { grid-template-columns: 1fr; gap: 34px; }
  .rpc-size-table { display: block; overflow-x: auto; }
  .rpc-cta { padding: 42px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

