/*
Theme Name: Brand3
Theme URI: https://brandbrandbrand.design
Author: Sarah — Brand³
Description: Custom theme for Brand³ — Creative Support for Small Business
Version: 1.0
*/

/* ── VARIABLES ── */
:root {
  --maroon:  #3a0020;
  --magenta: #e0179a;
  --purple:  #9933ff;
  --cyan:    #00ccff;
  --white:   #ffffff;
  --card-bg: rgba(255,255,255,0.05);
  --grad: linear-gradient(135deg, #e0179a 0%, #9933ff 50%, #00ccff 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 18px;
  font-weight: 400;
  background: var(--maroon);
  color: var(--white);
  overflow-x: hidden;
}

/* ── GRAD TEXT ── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAV ── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(58,0,32,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224,23,154,0.2);
}
.site-logo {
  font-size: 1.4rem; font-weight: 900; text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo sup { font-size: 0.4em; vertical-align: super; }
#site-nav a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 0.9rem; font-weight: 600; margin-left: 2rem;
  transition: color 0.2s;
}
#site-nav a:hover { color: var(--magenta); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative; overflow: hidden;
  text-align: center;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(224,23,154,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,204,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

/* ── TABS ── */
.hero-tabs {
  display: flex; gap: 0; margin-bottom: 3rem; position: relative; z-index: 2;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(224,23,154,0.3);
  border-radius: 999px; padding: 4px;
}
.hero-tab {
  padding: 0.6rem 2rem; border-radius: 999px;
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  transition: all 0.3s;
}
.hero-tab.active {
  background: var(--grad); color: #fff;
}

/* ── HERO PANELS ── */
.hero-panel { position: relative; z-index: 2; width: 100%; max-width: 700px; }
.hero-panel.hidden { display: none; }

/* Hero logo image */
.hero-logo-img {
  margin-bottom: 1.5rem;
}
.hero-logo-img img {
  max-width: 420px;
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(224,23,154,0.3));
}

.hero-eyebrow {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--magenta); margin-bottom: 1rem;
}
.hero-headline {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900; line-height: 1; letter-spacing: -2px; margin-bottom: 1rem;
}
.hero-headline sup { font-size: 0.3em; vertical-align: super; letter-spacing: 0; }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65); margin-bottom: 2.5rem; line-height: 1.6;
}
.hero-equation {
  display: flex; align-items: center; gap: 1rem;
  justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem;
}
.hero-eq-item { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.hero-eq-item span:first-child { font-size: 2rem; }
.hero-eq-item span:last-child {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cyan);
}
.hero-eq-op { font-size: 1.5rem; color: rgba(255,255,255,0.3); }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── SARAH PANEL ── */
.sarah-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 3rem;
  align-items: start; text-align: left; max-width: 900px; margin: 0 auto;
}
.sarah-photo-wrap { position: relative; }
.sarah-photo-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(224,23,154,0.4);
  border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; color: rgba(255,255,255,0.4);
}
.sarah-photo-placeholder span { font-size: 3rem; }
.sarah-photo-placeholder p { font-size: 0.85rem; }
.sarah-photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 20px;
  border: 2px solid rgba(224,23,154,0.3);
}
.about-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(224,23,154,0.15); border: 1px solid rgba(224,23,154,0.3);
  border-radius: 999px; padding: 0.4rem 1rem;
  font-size: 0.8rem; font-weight: 700; color: var(--magenta);
  margin-bottom: 1rem;
}
.sarah-bio h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; margin-bottom: 1.2rem; line-height: 1.1;
}
.sarah-bio p {
  color: rgba(255,255,255,0.7); line-height: 1.8;
  margin-bottom: 1rem; font-size: 0.95rem;
}
.sarah-creds {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem;
}
.cred-badge {
  background: rgba(153,51,255,0.15); border: 1px solid rgba(153,51,255,0.3);
  border-radius: 999px; padding: 0.4rem 1rem;
  font-size: 0.8rem; font-weight: 700; color: var(--purple);
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--grad); color: #fff;
  font-weight: 700; font-size: 1rem; padding: 0.85rem 2.2rem;
  border-radius: 999px; text-decoration: none; border: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.2s; display: inline-block;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); }
.btn-outline {
  background: transparent; border: 2px solid rgba(255,255,255,0.25);
  color: #fff; font-weight: 700; font-size: 1rem;
  padding: 0.85rem 2.2rem; border-radius: 999px; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--magenta); transform: translateY(-2px); }

/* ── DIVIDER ── */
.grad-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--magenta), var(--purple), var(--cyan), transparent);
  max-width: 1100px; margin: 0 auto;
}

/* ── SECTIONS ── */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--magenta); margin-bottom: 0.75rem; display: block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.2rem;
}
.section-body { color: rgba(255,255,255,0.65); line-height: 1.8; max-width: 600px; }

/* ── GALLERY SLIDER ── */
.gallery-slider {
  position: relative; overflow: hidden;
  background: #0d000a;
}
.gallery-slides {
  width: 100%; height: 480px; position: relative;
}
.gallery-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  opacity: 0; transition: opacity 0.5s ease;
  pointer-events: none;
  padding: 1rem; /* small breathing room around portrait shots */
}
.gallery-slide.active { opacity: 1; pointer-events: auto; }
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(58,0,32,0.75); backdrop-filter: blur(8px);
  border: 1px solid rgba(224,23,154,0.4); color: #fff;
  font-size: 2rem; line-height: 1; width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; z-index: 10;
  transition: background 0.2s, border-color 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.gallery-btn:hover { background: rgba(224,23,154,0.5); border-color: var(--magenta); }
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-counter {
  position: absolute; top: 0.8rem; right: 0.8rem;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 700;
  padding: 0.25rem 0.75rem; border-radius: 999px; z-index: 10;
  letter-spacing: 1px;
}
.gallery-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 10;
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.25); border: none; cursor: pointer;
  padding: 0; transition: background 0.2s, transform 0.2s;
}
.gallery-dot.active { background: var(--magenta); transform: scale(1.4); }

/* Frankies card layout */
.frankies-card { display: grid !important; grid-template-columns: 1fr 1fr !important; }
.frankies-card .gallery-slider { border-radius: 20px 0 0 20px; }
.frankies-card .gallery-slides { height: 480px; }

/* ── ORIGIN STORY ── */
#proof { background: rgba(0,0,0,0.2); }
.origin-timeline {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.origin-step {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 1.4rem;
  transition: border-color 0.3s;
}
.origin-step:hover { border-color: rgba(224,23,154,0.35); }
.origin-icon {
  font-size: 1.6rem; min-width: 44px; height: 44px;
  background: rgba(224,23,154,0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.origin-text { display: flex; flex-direction: column; gap: 0.3rem; }
.origin-text strong { font-size: 0.95rem; font-weight: 700; color: var(--white); }
.origin-text span { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.55; }
.origin-callout {
  margin-top: 3rem; text-align: center;
  background: linear-gradient(135deg, rgba(224,23,154,0.1), rgba(153,51,255,0.1));
  border: 1px solid rgba(224,23,154,0.3);
  border-radius: 20px; padding: 2.5rem;
}
.origin-callout p:first-child {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── SERVICES — FLIP CARDS ── */
#services { background: rgba(0,0,0,0.15); }
.flip-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
/* Flip card container */
.flip-card {
  height: 260px;
  perspective: 1200px;
  cursor: pointer;
}
.flip-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.65s cubic-bezier(0.45, 0.05, 0.55, 0.95);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-inner,
.flip-card:focus .flip-inner {
  transform: rotateY(180deg);
}
/* Front & back share the same base */
.flip-front, .flip-back {
  position: absolute; inset: 0;
  border-radius: 20px; padding: 2rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
/* Front */
.flip-front {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
}
.flip-card:hover .flip-front { border-color: var(--magenta); }
.service-icon {
  font-size: 2rem; width: 56px; height: 56px;
  background: rgba(224,23,154,0.12); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.flip-front h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.flip-hint {
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-top: auto;
}
/* Back */
.flip-back {
  background: linear-gradient(135deg, rgba(224,23,154,0.18) 0%, rgba(153,51,255,0.18) 50%, rgba(0,204,255,0.12) 100%);
  border: 1px solid rgba(224,23,154,0.4);
  transform: rotateY(180deg);
  gap: 0.8rem; justify-content: center;
}
.flip-back h3 { font-size: 1rem; font-weight: 800; color: var(--white); margin: 0; }
.flip-back p { color: rgba(255,255,255,0.75); font-size: 0.88rem; line-height: 1.6; margin: 0; flex-grow: 1; }

/* ── PORTFOLIO ── */
#portfolio { padding-top: 6rem; padding-bottom: 6rem; }
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
.portfolio-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.portfolio-card:hover { border-color: var(--magenta); transform: translateY(-4px); }
.portfolio-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.portfolio-img {
  height: 240px; overflow: hidden; position: relative;
}
.portfolio-card.wide .portfolio-img { height: auto; min-height: 240px; }
.portfolio-video { height: 240px; overflow: hidden; background: #000; }
.portfolio-video iframe { width: 100%; height: 100%; }
.portfolio-info { padding: 1.8rem; }
/* Before/after layout inside wide card */
.portfolio-before-after {
  display: flex; align-items: stretch; gap: 0;
  min-height: 280px; overflow: hidden;
}
.ba-panel {
  flex: 1; position: relative; overflow: hidden;
}
.ba-panel img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s;
}
.ba-panel:hover img { transform: scale(1.04); }
.ba-label {
  position: absolute; bottom: 0.8rem; left: 0.8rem;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.85); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  z-index: 2;
}
.ba-arrow {
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-size: 1.2rem;
  font-weight: 900; min-width: 44px; flex-shrink: 0;
  z-index: 2;
}

.portfolio-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--magenta);
  background: rgba(224,23,154,0.1); border: 1px solid rgba(224,23,154,0.25);
  border-radius: 999px; padding: 0.25rem 0.8rem; margin-bottom: 0.8rem;
}
.portfolio-info h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.6rem; }
.portfolio-info p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1rem; }

/* ── SOCIAL ── */
.social-links { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.social-btn {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.8rem; border-radius: 12px;
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  transition: transform 0.2s, opacity 0.2s;
}
.social-btn:hover { transform: translateY(-3px); opacity: 0.9; }
.social-fb   { background: #1877f2; color: #fff; }
.social-ig   { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4); color:#fff; }
.social-tiktok { background: #010101; color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.social-yt   { background: #ff0000; color: #fff; }

/* ── SHOP / WOOCOMMERCE ── */
#shop { padding-bottom: 8rem; }
.woocommerce ul.products li.product {
  background: var(--card-bg) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--magenta) !important; transform: translateY(-4px);
}
.woocommerce ul.products li.product .price { color: var(--magenta) !important; font-weight: 700; }
.woocommerce ul.products li.product h2 { color: var(--white) !important; }
.woocommerce a.button, .woocommerce button.button {
  background: var(--grad) !important; color: #fff !important;
  border-radius: 999px !important; font-weight: 700 !important;
}

/* ── CONTACT ── */
#contact { padding-bottom: 8rem; }
.contact-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; max-width: 700px; margin: 0 auto;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; padding: 2.5rem 2rem;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px; text-decoration: none; color: var(--white);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.contact-card:hover {
  border-color: var(--magenta);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(224,23,154,0.15);
}
.contact-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.contact-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--magenta);
}
.contact-value {
  font-size: 1.05rem; font-weight: 700; color: var(--white);
  word-break: break-all; text-align: center; line-height: 1.4;
}
.contact-action {
  font-size: 0.82rem; color: rgba(255,255,255,0.4);
  margin-top: 0.3rem;
}
@media (max-width: 600px) {
  .contact-cards { grid-template-columns: 1fr; max-width: 360px; }
}

/* ── FOOTER ── */
#site-footer {
  padding: 3rem 2rem; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { font-size: 1.5rem; font-weight: 900; margin-bottom: 0.5rem; }
.footer-logo sup { font-size: 0.4em; vertical-align: super; }
.footer-copy { color: rgba(255,255,255,0.25); font-size: 0.8rem; margin-top: 1rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sarah-grid { grid-template-columns: 1fr; }
  .sarah-photo-wrap { max-width: 240px; margin: 0 auto; }
  #site-nav { display: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card.wide { grid-column: auto; display: block; }
  .flip-grid { grid-template-columns: 1fr 1fr; }
  .origin-timeline { grid-template-columns: 1fr; }
  .frankies-card { grid-template-columns: 1fr !important; }
  .frankies-card .gallery-slider { border-radius: 20px 20px 0 0; }
  .frankies-card .gallery-slides { height: 320px; }
}
@media (max-width: 480px) {
  .flip-grid { grid-template-columns: 1fr; }
}
