/* =========================================
   SBF Studio — Main Stylesheet
   ========================================= */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@700&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,300;1,400&display=swap');

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: #161616;
  color: #f7f7f7;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Inline body text links */
p a {
  color: #dde0e6;
}

p a:hover {
  color: #f7f7f7;
}

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

ul {
  list-style: none;
}

/* =========================================
   Layout
   ========================================= */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* =========================================
   Header & Nav
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #161616;
  border-bottom: 1px solid #2a2a2a;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 32px;
}

.nav-logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f7f7f7;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #9398a1;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #f7f7f7;
  transition: all 0.3s;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #161616;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid #2a2a2a;
  }

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

  .nav-links a {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border-top: 1px solid #2a2a2a;
  }
}

/* =========================================
   Buttons
   ========================================= */

.btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-primary {
  background-color: #9398a1;
  color: #000;
}

.btn-primary:hover {
  background-color: #afb3b9;
}

.btn-outline {
  background-color: transparent;
  color: #9398a1;
  border: 2px solid #9398a1;
}

.btn-outline:hover {
  background-color: #9398a1;
  color: #000;
}

/* =========================================
   Hero Section
   ========================================= */

.hero {
  position: relative;
  text-align: center;
  max-width: calc((100vh - 80px) * 1.7778);
  margin: 0 auto;
}

/* Static fallback — always visible, video fades in on top */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
}

/* Responsive video container — scales with viewport width at 16:9 */
.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero-video.playing {
  opacity: 1;
}

.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.hero-content h1 {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #f7f7f7;
}

/* =========================================
   Page Header (interior pages)
   ========================================= */

.page-header {
  padding: 72px 0 52px;
  text-align: center;
  border-bottom: 1px solid #2a2a2a;
}

.page-header h1 {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #f7f7f7;
  line-height: 1.2;
}

.page-header p {
  margin-top: 16px;
  color: #a4a4a4;
  font-size: 1.125rem;
}

/* =========================================
   Sections
   ========================================= */

.section {
  padding: 88px 0;
}

.section-sm {
  padding: 56px 0;
}

.section + .section {
  border-top: 1px solid #2a2a2a;
}

.section-title {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #f7f7f7;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  color: #a4a4a4;
  margin-bottom: 48px;
  font-size: 1.0625rem;
}

/* =========================================
   Two-column layout
   ========================================= */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.two-col img {
  width: 100%;
  border-radius: 4px;
}

.two-col .text-col p {
  color: #a4a4a4;
  margin-bottom: 20px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.two-col .text-col p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =========================================
   Subscribe Section
   ========================================= */

.subscribe-section {
  background-color: #1e1e1e;
  padding: 72px 0;
  text-align: center;
}

.subscribe-section h2 {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #f7f7f7;
  margin-bottom: 12px;
}

.subscribe-section p {
  color: #a4a4a4;
  font-size: 1.0625rem;
  margin-bottom: 32px;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  padding: 16px 20px;
  min-width: 300px;
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: #f7f7f7;
  font-size: 1rem;
  font-family: 'Lato', Arial, sans-serif;
}

.subscribe-form input[type="email"]::placeholder {
  color: #6a6a6a;
}

.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: #9398a1;
}

/* =========================================
   Social Links (inline)
   ========================================= */

.social-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.social-links a {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9398a1;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #f7f7f7;
}

/* =========================================
   Pricing
   ========================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.pricing-card {
  background-color: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: #9398a1;
}

.pricing-card-label {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9398a1;
  margin-bottom: 10px;
}

.pricing-card h3 {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f7f7f7;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f7f7f7;
  margin: 16px 0;
  line-height: 1;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: #a4a4a4;
}

.pricing-card p {
  color: #a4a4a4;
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 28px;
}

/* =========================================
   Schedule
   ========================================= */

.schedule-info {
  background-color: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 40px;
}

.schedule-info p {
  color: #a4a4a4;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.schedule-info p:last-child {
  margin-bottom: 0;
}

/* =========================================
   BORU Product
   ========================================= */

.boru-specs {
  background-color: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 36px;
  margin-top: 36px;
}

.boru-specs h3 {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f7f7f7;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.boru-specs ul {
  list-style: disc;
  padding-left: 20px;
  color: #a4a4a4;
}

.boru-specs ul li {
  margin-bottom: 10px;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* =========================================
   Contact Form
   ========================================= */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.contact-info h2 {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #f7f7f7;
  margin-bottom: 20px;
}

.contact-info p,
.contact-info address {
  color: #a4a4a4;
  font-style: normal;
  font-size: 1.0625rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.contact-info a {
  color: #dde0e6;
}

.contact-info a:hover {
  color: #f7f7f7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.875rem;
  color: #a4a4a4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  padding: 16px 18px;
  background-color: #1e1e1e;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: #f7f7f7;
  font-size: 1.0625rem;
  font-family: 'Lato', Arial, sans-serif;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #9398a1;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  padding: 16px 18px;
  border-radius: 4px;
  font-size: 1rem;
  display: none;
}

.form-message.success {
  background-color: #1a2e1a;
  border: 1px solid #2d5a2d;
  color: #7ec87e;
  display: block;
}

.form-message.error {
  background-color: #2e1a1a;
  border: 1px solid #5a2d2d;
  color: #c87e7e;
  display: block;
}

/* =========================================
   Video on Demand
   ========================================= */

.vod-card {
  background-color: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 48px;
}

.vod-card p {
  color: #a4a4a4;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.vod-card p:last-of-type {
  margin-bottom: 28px;
}

/* =========================================
   Social Page
   ========================================= */

.social-cards {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #2a2a2a;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #a4a4a4;
  text-decoration: none;
  transition: color 0.2s;
}

.social-card:hover {
  color: #f7f7f7;
}

.social-card svg {
  width: 48px;
  height: 48px;
}

.social-card span {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Instagram oEmbed grid */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.ig-grid .ig-post {
  /* Instagram blockquotes override their own width;
     clip them into the grid cell */
  overflow: hidden;
  border-radius: 4px;
}

.ig-grid .ig-post blockquote.instagram-media {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}

.ig-empty {
  color: #a4a4a4;
  font-size: 1.0625rem;
  padding: 40px 0;
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
  border-top: 1px solid #2a2a2a;
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  color: #6a6a6a;
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: 'Cabin', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a6a6a;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #f7f7f7;
}
