/* Ugly Dan - Main Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Sancreek&family=Roboto:wght@300;400;700&family=Roboto+Slab:wght@400;700&display=swap');

:root {
  --primary: #0366d6;
  --primary-hover: #005bf7;
  --text: #404248;
  --white: #ffffff;
  --black: #000000;
  --dark-bg: #111111;
  --accent-red: #fc5f45;
  --accent-green: #38c695;
  --accent-purple: #b27cf5;
  --accent-amber: #feb960;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

img { max-width: 100%; height: auto; display: block; }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.88);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Sancreek', serif;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.site-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.primary-nav li a {
  display: block;
  padding: 8px 12px;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 400;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.primary-nav li a:hover,
.primary-nav li.current a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-cart-btn {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 3px;
  border-bottom: none !important;
  padding: 8px 14px !important;
  font-weight: 700;
}

.nav-cart-btn:hover {
  background: var(--primary-hover);
  color: var(--white) !important;
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.95);
  padding: 12px 20px 20px;
}

.mobile-nav li {
  list-style: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav li a {
  display: block;
  padding: 12px 0;
  color: var(--white);
  font-size: 1rem;
}

.mobile-nav.open { display: flex; }

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
}

/* ── HERO / VIDEO SECTION ────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark-bg);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px;
  color: var(--white);
  text-align: center;
}

.hero-content h2 {
  font-family: 'Sancreek', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 28px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
  color: var(--white);
}

.hero-content p {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--white);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ── PRODUCTS GRID ───────────────────────────────────── */
.products-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 80px 20px;
}

.products-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.product-card {
  text-align: center;
  max-width: 300px;
  animation: fadeInUp 0.8s ease both;
}

.product-card a {
  display: block;
  color: var(--white);
}

.product-card img {
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.product-card img:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

.product-card h6 {
  font-family: 'Sancreek', serif;
  font-size: 1.3rem;
  margin-top: 16px;
  color: var(--white);
  letter-spacing: 1px;
}

/* ── TESTIMONIALS ────────────────────────────────────── */
.testimonials-section {
  background: var(--dark-bg);
  padding: 80px 20px;
}

.testimonials-section h2 {
  font-family: 'Sancreek', serif;
  font-size: 2.4rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 8px;
}

.testimonials-section .section-sub {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  margin-bottom: 60px;
}

.testimonial-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.testimonial-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
}

.testimonial-item .t-image {
  overflow: hidden;
}

.testimonial-item .t-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.testimonial-item .t-content {
  background: #1a1a1a;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-item .t-content blockquote {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-item .t-content .reviewer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.testimonial-item .t-content .reviewer-title {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.t-stripe {
  display: flex;
  height: 4px;
}
.t-stripe span {
  flex: 1;
}
.t-stripe .s1 { background: var(--accent-red); }
.t-stripe .s2 { background: var(--accent-green); }
.t-stripe .s3 { background: var(--accent-purple); }
.t-stripe .s4 { background: var(--accent-amber); }

@media (max-width: 640px) {
  .testimonial-item {
    grid-template-columns: 1fr;
  }
  .testimonial-item .t-image {
    height: 240px;
  }
}

/* ── PARTNERS / RECOMMEND ────────────────────────────── */
.partners-section {
  background: #f5f5f5;
  padding: 70px 20px;
}

.partners-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.partners-section h2 {
  font-family: 'Sancreek', serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 28px;
  grid-column: 1 / -1;
  text-align: center;
}

.partner-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.partner-col a {
  display: block;
  transition: opacity 0.2s;
}
.partner-col a:hover { opacity: 0.75; }

.partner-col img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 580px) {
  .partners-inner { grid-template-columns: 1fr; }
  .partners-section h2 { grid-column: 1; }
}

/* ── CONTACT / SOCIAL ────────────────────────────────── */
.contact-section {
  background: #1a1a1a;
  padding: 60px 20px;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.4rem;
  transition: background 0.2s, transform 0.2s;
}

.social-icons a:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.contact-section h2 {
  font-family: 'Sancreek', serif;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 1px;
}

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: #000;
  padding: 20px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ── PAGE HERO (subpages) ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
  padding: 80px 20px;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  font-family: 'Sancreek', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
  color: var(--white);
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 650px;
  margin: 0 auto;
}

/* ── SERIES 2.1 PAGE ─────────────────────────────────── */
.series-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 70px 20px;
}

.series-section h2 {
  font-family: 'Sancreek', serif;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 20px;
}

.series-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.series-grid.reverse { direction: rtl; }
.series-grid.reverse > * { direction: ltr; }

.series-grid img {
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  width: 100%;
}

.series-specs {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 36px;
  margin-top: 40px;
}

.series-specs h3 {
  font-family: 'Sancreek', serif;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text);
}

.specs-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.specs-list li {
  padding: 8px 12px;
  background: var(--white);
  border-left: 3px solid var(--primary);
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
}

.specs-list li strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(0,0,0,0.45);
  margin-bottom: 2px;
}

@media (max-width: 640px) {
  .series-grid { grid-template-columns: 1fr; }
  .series-grid.reverse { direction: ltr; }
  .specs-list { grid-template-columns: 1fr; }
}

/* ── BUILD GALLERY ───────────────────────────────────── */
.gallery-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item img:hover { transform: scale(1.05); }

/* ── SHOP ────────────────────────────────────────────── */
.shop-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 20px;
}

.shop-notice {
  text-align: center;
  padding: 60px 20px;
  background: #f5f5f5;
  border-radius: 12px;
}

.shop-notice h2 {
  font-family: 'Sancreek', serif;
  font-size: 2rem;
  margin-bottom: 16px;
}

.shop-notice p { margin-bottom: 12px; color: var(--text); }

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 3px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s;
  margin-top: 16px;
}
.btn:hover { background: var(--primary-hover); color: var(--white); }

/* ── ANIMATIONS ──────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
