/* =========================================================
   Paradise Plastics Agency, styles.css
   Direction A: Heritage / Trust
   Edit the CSS custom properties below to adjust the palette
   sitewide. Do not hard-code colors elsewhere in this file.
   ========================================================= */

:root {
  --cream:      #FAF6EF;
  --gold:       #8A560F; /* primary brand gold/bronze: buttons, links, accents. Meets AA contrast on cream */
  --gold-hover: #6B4109; /* darker gold for hover/active states */
  --gold-soft:  #E7D5A6; /* light gold: chip borders, soft highlights on dark backgrounds */
  --ink:        #241C12; /* warm near-black: headings, body text, footer background */
  --muted:      #5C5346;
  --faint:      #8C8171;
  --line:       #E9DEC5;
  --card:       #FFFFFF;
  --pill:       #F5EEDF;

  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-card: 11px;
  --radius-btn: 6px;
  --radius-pill: 20px;

  --max-width: 1160px;
  --gutter: 20px;
}

@media (min-width: 1024px) {
  :root { --gutter: 40px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--ink); }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Scroll reveal: progressive enhancement only. Scoped under html.js so
   content stays fully visible with no flash-of-hidden-content when
   JavaScript is off; script.js adds the js class synchronously up top. */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 0 0 6px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 10px;
}

/* Hairline gold rule under visible section headings */
.categories h2,
.brands h2,
.gifting h2,
.reviews h2,
.contact h2 {
  position: relative;
  padding-bottom: 14px;
}
.categories h2::after,
.brands h2::after,
.gifting h2::after,
.reviews h2::after,
.contact h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--cream);
}
.btn-primary:hover { background: var(--gold-hover); }
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-secondary:hover { background: rgba(138, 86, 15, 0.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 1;
}
.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
}
.site-nav ul {
  display: flex;
  gap: 28px;
}
.site-nav a {
  font-size: 14px;
  color: var(--ink);
}
.site-nav a:hover { color: var(--gold); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.phone-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
}

.mobile-nav { position: relative; display: none; }
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle::marker { content: ''; }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
}
.mobile-nav ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 8px rgba(44, 44, 42, 0.08);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav li a {
  display: block;
  padding: 8px 10px;
  font-size: 15px;
  border-radius: var(--radius-btn);
}
.mobile-nav li a:hover { background: var(--pill); }

@media (max-width: 767px) {
  .site-nav { display: none; }
  .header-actions .phone-link { display: none; }
  .mobile-nav { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--cream);
  padding: 44px 0 56px;
}
.hero-inner {
  display: flex;
  flex-direction: column-reverse;
  gap: 32px;
  min-width: 0;
}
.hero-copy {
  min-width: 0;
}
.hero-copy h1 {
  font-size: 26px;
  color: var(--ink);
  line-height: 1.2;
}
.hero-subtext {
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
  overflow-wrap: break-word;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero-media img {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.trust-bar li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.trust-bar svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold);
}

@media (min-width: 1024px) {
  .hero { padding: 72px 0 88px; }
  .hero-inner {
    flex-direction: row;
    align-items: center;
  }
  .hero-copy { flex: 1; min-width: 0; }
  .hero-media { flex: 1; min-width: 0; }
  .hero-copy h1 { font-size: 40px; }
  .hero-subtext { font-size: 16px; }
}

/* ---------- Credibility stat band ---------- */
.stat-band {
  background: var(--ink);
  padding: 36px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--gold-soft);
  margin-bottom: 4px;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--cream);
}
@media (min-width: 1024px) {
  .stat-band { padding: 64px 0; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .stat-number { font-size: 30px; }
  .stat-label { font-size: 14px; }
}

/* ---------- Locations (two businesses) ---------- */
.locations { background: var(--card); padding: 40px 0; }
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.location-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(44, 44, 42, 0.06);
}
.location-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.location-card-media--placeholder {
  aspect-ratio: 4 / 3;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.placeholder-label {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.placeholder-caption {
  font-size: 12px;
  color: var(--faint);
}
.location-card-body { padding: 22px; }
.location-card-body h3 {
  font-size: 20px;
  color: var(--ink);
}

@media (min-width: 768px) {
  .location-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .locations { padding: 80px 0; }
}

/* ---------- Product categories ---------- */
.categories { background: var(--cream); padding: 40px 0; }
.categories h2 { font-size: 20px; color: var(--ink); }
.section-intro {
  max-width: 62ch;
  margin: 8px 0 4px;
  color: var(--muted);
  font-size: 15px;
}
.category-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.category-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: block;
}
.category-tile-media-wrap {
  position: relative;
  display: block;
  overflow: hidden;
}
.category-tile-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--pill);
  border-bottom: 1px solid var(--line);
  transition: transform 0.4s ease;
}
.category-tile { position: relative; }
.category-tile:hover .category-tile-media { transform: scale(1.04); }
.category-tile-cta {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.category-tile:hover .category-tile-cta,
.category-tile:focus .category-tile-cta,
.category-tile:focus-visible .category-tile-cta {
  opacity: 1;
  transform: none;
}
.category-tile-label {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.category-tile:hover .category-tile-label { color: var(--gold); }

@media (min-width: 640px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .categories { padding: 80px 0; }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .categories h2 { font-size: 28px; }
}

/* ---------- Brands ---------- */
.brands { background: var(--card); padding: 40px 0; }
.brands h2 { font-size: 20px; color: var(--ink); }
.brand-list {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.brand-chip {
  background: var(--pill);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--ink);
}
@media (min-width: 1024px) {
  .brands { padding: 80px 0; }
  .brands h2 { font-size: 28px; }
}

/* ---------- Gifting ---------- */
.gifting {
  padding: 44px 0;
  background: var(--pill);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gifting-inner { max-width: 640px; }
.gifting h2 { font-size: 20px; color: var(--ink); }
.gifting-trust {
  font-weight: 500;
  color: var(--gold);
}
.gifting-import { color: var(--muted); font-size: 14px; }
@media (min-width: 1024px) {
  .gifting { padding: 80px 0; }
  .gifting h2 { font-size: 28px; }
}

/* ---------- Legacy / why us ---------- */
.legacy { background: var(--cream); padding: 40px 0; }
.legacy-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: center;
}
.legacy-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.legacy-mark {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--gold);
}
@media (min-width: 640px) {
  .legacy-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .legacy { padding: 80px 0; }
}

/* ---------- Reviews ---------- */
.reviews { background: var(--card); padding: 40px 0; }
.reviews h2 { font-size: 20px; color: var(--ink); }
.reviews-summary {
  color: var(--muted);
  font-size: 14px;
  margin-top: -2px;
}
.reviews-badge {
  display: inline-block;
  background: var(--pill);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  margin-right: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  vertical-align: middle;
}
.review-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.review-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 3px rgba(44, 44, 42, 0.06);
  padding: 20px;
}
.review-stars { margin-bottom: 10px; }
.star {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 1px;
}
.star--empty { color: var(--line); }
.review-card p {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 14px;
}
.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-card cite {
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
}
.review-meta {
  font-size: 12px;
  color: var(--faint);
}

@media (min-width: 768px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .reviews { padding: 80px 0; }
  .reviews h2 { font-size: 28px; }
}

/* ---------- Contact ---------- */
.contact { background: var(--cream); padding: 44px 0 60px; }
.contact h2 { font-size: 20px; color: var(--ink); }
.contact-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.address-block { margin-bottom: 18px; }
.address-block h3 {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}
.address-block p { color: var(--muted); font-size: 14px; }

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.hours { font-size: 14px; color: var(--muted); }

.map-embed {
  margin-top: 16px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-embed iframe { display: block; }

.enquiry-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(44, 44, 42, 0.06);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-row .optional { font-weight: 400; color: var(--faint); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-submit { width: 100%; }
.form-status {
  margin-top: 12px;
  font-size: 14px;
  color: var(--gold);
}
.form-status[data-error] { color: #A02020; }

/* Honeypot spam trap: hidden from people, present for bots. Do not display. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .contact { padding: 80px 0 88px; }
  .contact h2 { font-size: 28px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* ---------- Closing CTA ---------- */
.closing-cta {
  background: var(--ink);
  padding: 48px 0;
  text-align: center;
}
.closing-cta-inner { max-width: 640px; margin: 0 auto; }
.closing-cta h2 {
  color: var(--cream);
  font-size: 22px;
}
.closing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.closing-cta .btn-secondary {
  color: var(--gold-soft);
  border-color: var(--gold-soft);
}
.closing-cta .btn-secondary:hover {
  background: rgba(231, 213, 166, 0.14);
}
@media (min-width: 1024px) {
  .closing-cta { padding: 80px 0; }
  .closing-cta h2 { font-size: 28px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 40px 0 24px;
  border-top: 1px solid rgba(231, 213, 166, 0.2);
}
.footer-inner { display: flex; flex-direction: column; gap: 24px; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 16px;
}
.footer-brand img { border-radius: 6px; }
.footer-nap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.footer-nap h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  margin-bottom: 6px;
}
.footer-nap p { color: #D8CFC0; font-size: 14px; margin: 0; }
.footer-nap a { color: #D8CFC0; }
.footer-nap a:hover { color: var(--gold-soft); }
.footer-directories, .footer-copyright {
  color: #A69A85;
  font-size: 12px;
  margin: 0;
}

@media (min-width: 768px) {
  .footer-nap { grid-template-columns: repeat(3, 1fr); }
}
