/* The Rug Hooking Store: colors and fonts matched to the original Wix site */
:root {
  --black: #000;
  --charcoal: #262626;
  --teal: #388898;
  --gold: #f7d57f;
  --white: #fcfcfc;
  --ink: #262626;
  --sans: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--charcoal); color: var(--white); font-family: var(--sans); font-size: 21px; line-height: 1.45; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--gold); color: var(--ink); padding: 6px 10px; z-index: 10; }

/* Header */
.site-header { background: var(--black); padding: 22px 0 18px; border-bottom: 6px solid #999; }
.brand { display: inline-block; color: var(--teal); font-size: 46px; font-weight: 500; text-transform: uppercase; text-decoration: none; letter-spacing: .5px; line-height: 1.1; margin-bottom: 12px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li + li { border-left: 1px solid var(--white); }
.menu a { display: block; padding: 6px 22px; color: var(--white); text-decoration: none; text-transform: uppercase; font-size: 20px; font-weight: 500; }
.menu > li:first-child > a { padding-left: 0; }
.menu a:hover, .menu a.active { color: var(--gold); }
.sub { display: none; position: absolute; left: 0; top: 100%; list-style: none; margin: 0; padding: 6px 0; background: var(--black); min-width: 190px; z-index: 5; }
.sub a { padding: 8px 22px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }

/* Page headings */
.page-title { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); font-size: 52px; text-align: center; margin: 48px 0 8px; line-height: 1.15; }
.page-sub { text-align: center; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 32px; }
.intro { text-align: center; font-size: 26px; margin: 10px 0 18px; }
.contact-line { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 34px; text-align: center; margin: 24px 0 0; }
.contact-details { text-align: center; text-transform: uppercase; font-size: 26px; font-weight: 500; margin: 4px 0 36px; }
.contact-details a { text-decoration: none; }

/* Home hero */
.hero { position: relative; min-height: 78vh; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-text { position: relative; min-height: 78vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 20px; background: rgba(0,0,0,.18); }
.hero-small { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: clamp(48px, 8vw, 96px); margin: 0; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.hero h1 { font-family: var(--serif); font-weight: 400; color: var(--white); font-size: clamp(48px, 8vw, 96px); margin: 0; line-height: 1.1; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.hero-owner { margin: 28px 0 0; font-size: 30px; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.hero-owner span { display: block; text-transform: uppercase; letter-spacing: 1px; font-size: 22px; }
.hero-owner a { text-decoration: none; }
.hero-owner a:hover { color: var(--gold); }

/* About */
.banner img { width: 100%; max-height: 360px; object-fit: cover; }
.about-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; margin-bottom: 56px; align-items: start; }
.about-side figure { margin: 0 0 24px; }
.about-side figcaption { text-align: center; margin-top: 8px; }
.about-side img { width: 100%; }
.side-address { text-align: center; }

/* Galleries landing */
.g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; max-width: 820px; margin: 0 auto 64px; }
.g-card { display: block; text-decoration: none; text-align: center; background: #1b1b1b; padding-bottom: 18px; }
.g-card img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.g-label { display: block; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 40px; margin-top: 12px; }
.g-more { text-transform: uppercase; letter-spacing: 2px; }
.g-card:hover .g-more { color: var(--gold); }

/* Photo gallery (mixed sizes, like the old collage) */
.masonry { columns: 4 240px; column-gap: 14px; margin-bottom: 64px; }
.masonry .tile { break-inside: avoid; margin: 0 0 14px; cursor: zoom-in; }
.masonry figcaption { font-size: 18px; padding: 4px 2px 0; }

/* Items for sale */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 28px; margin-bottom: 20px; }
.item { margin: 0; cursor: zoom-in; }
.item img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.item figcaption { text-align: center; padding-top: 10px; font-family: Arial, Helvetica, sans-serif; font-size: 19px; }
.item figcaption strong { display: block; }
.item figcaption span { display: block; font-size: 17px; opacity: .9; }

/* Contact */
.contact { text-align: center; padding-bottom: 56px; }
.contact .big { font-size: 30px; margin: 10px 0; }
.contact a { text-decoration: none; }
.contact a:hover { color: var(--gold); }

/* Footer */
.site-footer { background: var(--gold); color: var(--ink); padding: 28px 0 30px; font-size: 22px; font-weight: 500; }
.site-footer p { margin: 2px 0; }
.social { display: flex; gap: 18px; margin-top: 18px !important; }
.contact .social { justify-content: center; }
.social svg { width: 44px; height: 44px; }

/* Click-to-enlarge */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; margin: 0 auto; }
.lightbox figcaption { margin-top: 12px; font-size: 24px; }
.lb-close { position: absolute; top: 10px; right: 18px; background: none; border: 0; color: var(--white); font-size: 48px; cursor: pointer; line-height: 1; }

@media (max-width: 800px) {
  body { font-size: 19px; }
  .brand { font-size: 32px; }
  .menu a { padding: 4px 12px; font-size: 18px; }
  .menu > li:first-child > a { padding-left: 12px; }
  .menu > li + li { border-left: 0; }
  .page-title { font-size: 38px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-line { font-size: 28px; }
  .contact-details { font-size: 21px; }
}
