/*
Theme Name: Resin & Roots
Theme URI: https://example.com
Author: Broad Lantern Media
Description: A custom WordPress theme built for a handmade resin and glass artisan business, blending coastal and Puerto Rican cultural identity. Vivid red-white-blue palette, organic "resin drip" shapes, and a layout built to showcase custom commissioned work.
Version: 2.1
Requires PHP: 7.4
Text Domain: resinroots
*/

/* ============================================
   DESIGN TOKENS — Puerto Rico vivid palette
   ============================================ */
:root {
  --color-blue: #0039A6;        /* Puerto Rico flag blue, vivid/true, not navy */
  --color-blue-deep: #041E42;   /* near-black blue for text + dark sections, still reads "blue" not "black" */
  --color-red: #ED1B2F;         /* Puerto Rico flag red, vivid */
  --color-red-deep: #C10E24;    /* hover/pressed state for red */
  --color-white: #FFFFFF;
  --color-cream: #FFFBF4;       /* warm near-white background, keeps the site from feeling clinical */
  --color-turquoise: #00B4D8;   /* resin wave color — the material itself, used as the "fun" pop */
  --color-gold: #FFB627;        /* sunlit resin glow accent, used sparingly against all that red/blue */
  --color-ink: #1B2A4A;         /* body text — a deep blue-ink rather than plain gray/brown */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Caveat', cursive;

  --radius-blob: 63% 37% 54% 46% / 55% 48% 52% 45%;
  --shadow-soft: 0 12px 32px rgba(4, 30, 66, 0.16);
  --shadow-lift: 0 20px 48px rgba(4, 30, 66, 0.24);

  --max-width: 1180px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
}

/* ============================================
   RESET & BASE
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.65;
  font-size: 1.05rem;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--color-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--color-red); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-blue-deep);
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.4rem; }

.script-accent {
  font-family: var(--font-script);
  color: var(--color-turquoise);
  font-weight: 600;
  font-size: 1.15em;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-red);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-turquoise);
  outline-offset: 2px;
}

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

/* ============================================
   SIGNATURE ELEMENT: RESIN DRIP SHAPES + WAVE DIVIDERS
   ============================================ */
.blob-frame {
  border-radius: var(--radius-blob);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: border-radius .6s ease;
  border: 4px solid var(--color-white);
}
.blob-frame img { width: 100%; height: 100%; object-fit: cover; }
.blob-frame:hover { border-radius: 46% 54% 40% 60% / 58% 42% 58% 42%; }

.wave-divider { display: block; width: 100%; height: 70px; margin-bottom: -1px; }
.wave-divider.flip { transform: scaleY(-1); margin-bottom: 0; margin-top: -1px; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--color-red);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.site-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--color-blue-deep); }
.site-logo span { color: var(--color-red); }

.main-nav ul { display: flex; gap: var(--space-md); list-style: none; }
.main-nav a { font-weight: 600; color: var(--color-ink); font-size: 0.98rem; }
.main-nav a:hover { color: var(--color-red); }

.nav-cta { background: var(--color-red); color: var(--color-white) !important; padding: 0.6rem 1.3rem; border-radius: 30px; font-weight: 700; box-shadow: 0 4px 14px rgba(237,27,47,.35); }
.nav-cta:hover { background: var(--color-blue); box-shadow: 0 4px 14px rgba(0,57,166,.35); color: var(--color-white) !important; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--color-blue-deep); cursor: pointer; }

@media (max-width: 820px) {
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--color-cream); border-bottom: 1px solid rgba(4,30,66,.15); transform: translateY(-120%); transition: transform .3s ease; }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; padding: var(--space-md); gap: var(--space-sm); }
  .menu-toggle { display: block; }
}

/* ============================================
   HERO — vivid gradient, rich and playful
   ============================================ */
.hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-lg);
  background: linear-gradient(150deg, #FFFBF4 0%, #E8F6FA 55%, #FFFBF4 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(0,180,216,.22), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -160px; left: -160px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(237,27,47,.14), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-lg); align-items: center; }
.hero-copy p.lede { font-size: 1.2rem; margin: var(--space-sm) 0 var(--space-md); max-width: 46ch; }
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.btn { display: inline-block; padding: 0.85rem 1.8rem; border-radius: 30px; font-weight: 700; font-size: 0.98rem; transition: transform .2s ease, box-shadow .2s ease; }
.btn-primary { background: var(--color-red); color: var(--color-white); box-shadow: 0 8px 20px rgba(237,27,47,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(237,27,47,.4); color: var(--color-white); background: var(--color-red-deep); }
.btn-outline { border: 2px solid var(--color-blue); color: var(--color-blue); }
.btn-outline:hover { background: var(--color-blue); color: var(--color-white); }
.btn-gold { background: var(--color-gold); color: var(--color-blue-deep); }
.btn-gold:hover { transform: translateY(-2px); background: var(--color-turquoise); color: var(--color-white); }

.hero-image { aspect-ratio: 4/5; border-radius: var(--radius-blob); position: relative; }
.hero-image::after {
  content: '';
  position: absolute;
  inset: -18px;
  border: 3px dashed var(--color-turquoise);
  border-radius: inherit;
  opacity: 0.6;
  z-index: -1;
}

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { max-width: 420px; margin: 0 auto; }
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: var(--space-xl) 0; position: relative; }
.section-cream { background: var(--color-cream); }
.section-blue { background: var(--color-blue-deep); color: var(--color-cream); }
.section-blue h2, .section-blue h3 { color: var(--color-white); }
.section-red { background: var(--color-red); color: var(--color-white); }
.section-red h2, .section-red h3 { color: var(--color-white); }

.section-head { max-width: 640px; margin-bottom: var(--space-lg); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================
   COLLECTIONS GRID
   ============================================ */
.collections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.collection-card { position: relative; aspect-ratio: 3/4; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-soft); border: 4px solid var(--color-white); }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.collection-card:hover img { transform: scale(1.06); }
.collection-card .label { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.3rem; background: linear-gradient(0deg, rgba(4,30,66,.92), transparent); color: var(--color-white); }
.collection-card .label h3 { color: var(--color-white); font-size: 1.15rem; }
.collection-card .label span { font-size: 0.85rem; opacity: 0.9; }

@media (max-width: 820px) { .collections-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .collections-grid { grid-template-columns: 1fr; } }

/* ============================================
   ARTWORK / SHOP GRID
   ============================================ */
.artwork-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.artwork-card { background: var(--color-white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .25s ease; }
.artwork-card:hover { transform: translateY(-4px); }
.artwork-card .thumb { aspect-ratio: 1/1; overflow: hidden; }
.artwork-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.artwork-card:hover .thumb img { transform: scale(1.05); }
.artwork-card .info { padding: 1.1rem 1.3rem 1.4rem; }
.artwork-card .info .cat { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-turquoise); font-weight: 700; }
.artwork-card .info h3 { font-size: 1.1rem; margin: 0.3rem 0; }
.artwork-card .info .price { color: var(--color-red); font-weight: 700; }

.filter-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: var(--space-md); }
.filter-bar a { padding: 0.5rem 1.1rem; border-radius: 20px; border: 2px solid var(--color-blue); font-size: 0.9rem; font-weight: 600; color: var(--color-blue); }
.filter-bar a.active, .filter-bar a:hover { background: var(--color-blue); border-color: var(--color-blue); color: var(--color-white); }

@media (max-width: 820px) { .artwork-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .artwork-grid { grid-template-columns: 1fr; } }

/* ============================================
   STORY / ABOUT STRIP
   ============================================ */
.story-strip { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-lg); align-items: center; }
.story-strip .blob-frame { aspect-ratio: 1/1; }
@media (max-width: 820px) { .story-strip { grid-template-columns: 1fr; } }

/* ============================================
   PROCESS STEPS
   ============================================ */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.process-step .num { font-family: var(--font-display); font-size: 2.3rem; color: var(--color-turquoise); font-weight: 700; }
.process-step h3 { margin: 0.4rem 0 0.4rem; }
@media (max-width: 820px) { .process-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.testimonial-card { background: var(--color-white); border-radius: 20px; padding: var(--space-md); box-shadow: var(--shadow-soft); border-top: 5px solid var(--color-gold); }
.testimonial-card p { font-style: italic; margin-bottom: var(--space-sm); }
.testimonial-card .who { font-weight: 700; color: var(--color-blue); font-style: normal; }
@media (max-width: 820px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ============================================
   CUSTOM ORDER FORM
   ============================================ */
.order-form-wrap { background: var(--color-white); border-radius: 28px; padding: var(--space-lg); box-shadow: var(--shadow-lift); max-width: 760px; margin: 0 auto; border-top: 6px solid var(--color-red); }
.form-row { margin-bottom: var(--space-sm); }
.form-row label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.95rem; color: var(--color-blue-deep); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #E3DCCB; border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; background: var(--color-cream);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--color-turquoise); background: var(--color-white); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
@media (max-width: 560px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-submit { background: var(--color-red); color: var(--color-white); border: none; padding: 0.9rem 2rem; border-radius: 30px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .2s ease; }
.form-submit:hover { background: var(--color-blue); }
.form-note { font-size: 0.85rem; opacity: 0.75; margin-top: var(--space-xs); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--color-blue-deep); color: var(--color-cream); padding: var(--space-lg) 0 var(--space-md); border-top: 6px solid var(--color-red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-grid h4 { color: var(--color-gold); font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-sm); }
.footer-grid ul { list-style: none; }
.footer-grid a { color: var(--color-cream); opacity: 0.85; }
.footer-grid a:hover { opacity: 1; color: var(--color-turquoise); }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.footer-bottom { border-top: 1px solid rgba(255,251,244,.15); padding-top: var(--space-sm); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; opacity: 0.75; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================
   PAGE HEADER (interior pages)
   ============================================ */
.page-header { padding: var(--space-lg) 0 var(--space-md); text-align: center; background: linear-gradient(135deg, #E8F6FA, #FFFBF4); }
.page-header .eyebrow { display: block; margin-bottom: 0.5rem; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
