/*
Theme Name: Lloyd Theme
Theme URI: 
Author: Gemini CLI
Author URI: 
Description: A Renaissance-inspired cinematic theme for the Lloyd De Jongh brand.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lloyd-theme
*/

@font-face {
  font-family: 'Pontif';
  src: url('assets/font/Pontif_Font..ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f1ea;
  --bg-2: #efebe3;
  --surface: rgba(255,255,255,0.78);
  --surface-2: rgba(255,255,255,0.9);
  --text: #242529;
  --muted: #6f6a63;
  --gold: #c79f44;
  --gold-soft: rgba(199,159,68,.14);
  --line: rgba(36,37,41,0.12);
  --shadow: 0 20px 50px rgba(63,42,17,.08);
  --radius: 24px;
  --radius-lg: 32px;
  --slate: #2b3648;
  --taupe: #a39789;
  --white: #f7f6f3;
}

* { box-sizing: border-box; }

body {
  display: flex;
  flex-direction: column;
  font-family: 'Pontif', ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(circle at top center, rgba(199,159,68,.12), transparent 24%),
    linear-gradient(180deg, #f7f4ef 0%, #eee8df 100%);
  margin: 0;
}

main section footer {
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .serif { 
  font-family: 'Pontif', 'Cormorant Garamond', Georgia, "Times New Roman", serif; 
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

input, textarea, select {
  text-transform: none !important;
}

.container { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }

/* Topbar */
.topbar {
  background: transparent !important;
  border-bottom: none;
}

.sticky-header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent !important;
  box-shadow: none;
  border-bottom: none;
}

.sticky-header.is-stuck {
  position: fixed;
  background: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-bottom: 1px solid var(--line);
}

.page-template-page-dashboard .sticky-header.is-stuck {
  background: #2b3546 !important;
}

.header-nav a {
  margin: 0 15px;
  white-space: nowrap;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 20px;
  background: transparent !important;
}
.brand-copy small { display:block; color: var(--muted); letter-spacing: .22em; text-transform: uppercase; font-size: 11px; }
.brand-copy strong { display:block; letter-spacing: .06em; font-size: 15px; font-weight: 600; }

nav { display:flex; gap: 20px; align-items:center; flex-wrap: nowrap; }
nav a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--gold);
}

/* Buttons */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border-radius:999px; padding: 13px 18px; font-weight: 700; font-size:14px;
  transition: .2s ease; border:1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: white; }
.btn-secondary { border-color: var(--text); background: transparent; }
.btn-ghost { background: rgba(255,255,255,.6); border-color: var(--line); }

/* Hero */
.hero { padding: 0; }
.hero::after {
  content:""; display:block; height: 1px; width:min(180px,40vw); margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, rgba(199,159,68,.8), transparent);
}
.eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  color: #aa7f20; text-transform: uppercase; letter-spacing: .16em; font-size: 12px;
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid rgba(199,159,68,.34); background: rgba(199,159,68,.08);
}
.hero h1 { margin: 18px 0 14px; font-size: clamp(44px, 8vw, 76px); line-height: .97; font-weight: 400; letter-spacing: .03em; }
.hero p { margin: 0 0 26px; color: var(--muted); font-size: clamp(17px, 2.2vw, 21px); max-width: 58ch; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; }

/* Sections */
.section { padding: 22px 0; scroll-margin-top: 120px; }
#videos { scroll-margin-top: 120px; }
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.62));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel-pad { padding: 26px; }
.section-title { margin:0 0 8px; font-size: 32px; }
.section-lead { margin:0 0 22px; color: var(--muted); }

/* Grids (Refactored to Flexbox) */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  margin: -9px; /* Half of the gap */
}

.flex-col {
  padding: 9px;
  box-sizing: border-box;
}

.grid-3 .flex-col {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.grid-2 .flex-col {
  flex: 0 0 50%;
  max-width: 50%;
}

.meta-grid .flex-col-main {
  flex: 0 0 57.5%;
  max-width: 57.5%;
}

.meta-grid .flex-col-side {
  flex: 0 0 42.5%;
  max-width: 42.5%;
}

.support-grid .flex-col-main {
  flex: 0 0 52.5%;
  max-width: 52.5%;
}

.support-grid .flex-col-side {
  flex: 0 0 47.5%;
  max-width: 47.5%;
}

/* Header */
.burger-toggle { display: none; }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  background: transparent !important;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-stack {
  display: flex;
  flex-direction: column;
}

.header-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  flex-wrap: nowrap;
  align-items: center;
}

.header-nav ul li {
  white-space: nowrap;
}

.header-nav ul li a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
}

.header-nav ul li a:hover {
  color: var(--gold);
}


/* Hero */
.hero-card {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center top;
  z-index: 1;
}

.hero-content {
  position: absolute;
  left: 30px;
  bottom: 155px;
  max-width: 1000px;
  width: 100%;
  padding: 25px 25px 20px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  text-align: left;
  z-index: 2;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

a {
  text-decoration: none !important;
}

@media (min-width: 2560px) {
  .topbar {
    backdrop-filter: blur(50px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }
  .topbar-inner {
    max-width: 95% !important;
    width: 95% !important;
    justify-content: space-between !important;
  }
  .hero-content {
    bottom: 155px !important;
  }
}

/* Cards */
.card {
  border-radius: 22px; overflow:hidden; border:1px solid var(--line);
  background: rgba(255,255,255,.72);
  height: 100%;
}
.card-media {
  aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
  position: relative;
  background-color: var(--bg-2);
}
.card-media::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(247,244,239,.42) 100%);
}
.card-body { padding: 18px; }
.kicker { color: #b48828; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.card-body h3 { margin:8px 0; font-size:24px; }

/* Swatches */
.swatches { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 14px; 
}
.swatch { 
  flex: 1 1 calc(20% - 14px);
  text-align:center; 
}
.chip {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; border:1px solid var(--line);
}
.chip.gold { background:#c79f44; }
.chip.stone { background:#dcd6ca; }
.chip.white { background:#f7f6f3; }
.chip.slate { background:#2b3648; }
.chip.taupe { background:#a39789; }
.swatch span { display:block; margin-top: 10px; font-size: 12px; color: var(--muted); }

/* UI Elements */
.token-row { display:flex; flex-wrap:wrap; gap: 12px; }
.pill { padding:10px 14px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.7); color:var(--muted); font-size: 13px; }

.tier {
  padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.78);
  height: 100%;
}
.price { font-size: 40px; font-weight: 800; }
.price small { font-size: 14px; font-weight: 600; color: var(--muted); }
ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
li + li { margin-top: 8px; }

.store-item {
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding: 14px 0; border-bottom:1px solid var(--line);
}
.store-item:last-child { border-bottom:0; }
.badge {
  padding: 7px 10px; border-radius:999px; background: var(--gold-soft); color:#9d761e;
  border:1px solid rgba(199,159,68,.24); font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
}

/* Dashboard Header Styling */
.page-template-page-dashboard .topbar,
.page-template-page-dashboard .topbar .brand-name,
.page-template-page-dashboard .header-nav ul li a {
  color: #ffffff !important;
}

.page-template-page-dashboard .topbar .brand-subtitle {
  color: rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 1100px) {
  .swatch {
    flex: 1 1 calc(33.33% - 14px);
  }

  .grid-3 .flex-col,
  .grid-2 .flex-col,
  .meta-grid .flex-col-main,
  .meta-grid .flex-col-side,
  .support-grid .flex-col-main,
  .support-grid .flex-col-side {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Responsive Burger Menu */
  .burger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 45px;
    height: 45px;
    background: #c7a044;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    z-index: 2000;
    position: fixed;
    top: 32px;
    right: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
  }

  .burger-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }

  .burger-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
  }

  .menu-open .burger-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-open .burger-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .burger-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .topbar-inner {
    flex-direction: row;
    justify-content: flex-end; /* Burger on the right by default */
    padding: 10px 16px;
    min-height: 100px;
  }

  .header-left, .header-right, .header-nav {
    display: none; /* Hidden until menu is open */
  }

  .menu-open .topbar-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
    backdrop-filter: blur(55px);
    -webkit-backdrop-filter: blur(55px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 100px 20px 40px;
    z-index: 1500;
  }

  .menu-open .header-left, 
  .menu-open .header-right, 
  .menu-open .header-nav {
    display: flex !important;
  }

  .menu-open .header-right {
    order: 1;
    width: 100%;
    justify-content: center;
    background: #ffffff;
    padding: 20px;
  }

  .menu-open .header-nav {
    order: 2;
    margin: auto 0;
  }

  .menu-open .header-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .menu-open .header-nav ul li a {
    font-size: 23px;
    margin: 0;
    transition: font-weight 0.2s ease;
    background: transparent !important;
  }

  .menu-open .header-nav ul li a:hover {
    font-weight: 612; /* 600 * 1.02 = 612 */
  }

  .menu-open .header-left {
    order: 3;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #c7a044;
    color: #ffffff !important;
    padding: 30px 20px;
    width: 100%;
  }

  .menu-open .header-left h1,
  .menu-open .header-left .brand-subtitle {
    color: #ffffff !important;
  }

  .menu-open .burger-toggle {
    top: 32px;
    right: 20px;
  }
}

@media (max-width: 375px) {
  .hero-content {
    font-size: 12px;
    width: calc(100% - 10px);
    left: 5px;
    right: 5px;
    padding: 15px;
  }
  .hero-content h1 {
    font-size: 18px !important;
    margin-bottom: 10px !important;
  }
  .hero-card {
    background-position: center center !important;
    background-size: cover !important;
  }
}
