/*
Theme Name: Tõnnori Pulmavideograaf
Theme URI: https://tonnori.com/
Author: Rait Tõnnori
Description: Premium wedding videography WordPress theme.
Version: 1.0
Text Domain: tonnori
*/

:root {
  --cream: #f7f1ea;
  --sand: #e8dccf;
  --dark: #1e1b18;
  --muted: #756d66;
  --gold: #b99b72;
  --white: #ffffff;
}

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

html,
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
.serif {
  font-family: "Playfair Display", serif;
}

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

img,
video,
iframe {
  max-width: 100%;
}

/* NAV */


.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  padding: 28px 0;
}

.navbar-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  color: #fff !important;
  letter-spacing: .5px;
}

.nav-link {
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  margin-left: 24px;
}

.nav-link:hover {
  color: #fff;
}

.navbar-toggler {
  border-color: rgba(255,255,255,.45);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #1e1b18;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 1;
  display: block;
  opacity: 1;
  filter: none;
  transform: none;
  will-change: auto;
}


.hero::after,
.hero::before {
  display: none !important;
  content: none !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(20,15,12,.78) 800%,
    rgba(20,15,12,.42) 50%,
    rgba(20,15,12,.18) 80%
  ) !important;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding-top: 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: .96;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(255,255,255,.86);
  max-width: 610px;
  margin-bottom: 36px;
}


.intro-card {
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

/* BUTTONS */

.btn-luxury,
.btn-outline-light-custom,
.btn-dark-luxury {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 15px 28px;
  font-weight: 600;
  transition: .25s ease;
}

.btn-luxury {
  background: #fff;
  color: var(--dark);
  border: 1px solid rgba(255,255,255,.25);
}

.btn-luxury:hover {
  transform: translateY(-2px);
  background: var(--sand);
  color: var(--dark);
}

.btn-outline-light-custom {
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
  margin-left: 12px;
}

.btn-outline-light-custom:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* SECTIONS */

.section {
  padding: 110px 0;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 660px;
}

.intro-card {
  background: #fff;
  border-radius: 34px;
  padding: 54px;
  box-shadow: 0 24px 70px rgba(40,30,20,.08);
  margin-top: -50px;
  position: relative;
  z-index: 5;
}

/* VIDEO CARDS */

.video-card-large {
  min-height: 520px;
}

.video-card-large img {
  min-height: 520px;
}

@media (max-width: 768px) {
  .video-card-large {
    min-height: 320px;
  }

  .video-card-large img {
    min-height: 320px;
  }
}

.video-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  min-height: 360px;
  box-shadow: 0 24px 60px rgba(40,30,20,.12);
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.video-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: .78;
  transition: .35s ease;
}

.video-card:hover img {
  transform: scale(1.04);
  opacity: .58;
}

.play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 4rem;
}

.video-info {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  color: #fff;
}

.video-info h3 {
  margin: 0;
  font-size: 1.8rem;
}

/* PROCESS */

.process-card,
.package-card {
  background: #fff;
  border-radius: 30px;
  padding: 34px;
  height: 100%;
  box-shadow: 0 18px 50px rgba(40,30,20,.06);
}

.process-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 22px;
}

/* CONTACT */

.contact-section {
  background: #fff;
  border-radius: 46px 46px 0 0;
  padding: 110px 0;
  overflow: hidden;
}

.booking-card {
  background: var(--cream);
  border-radius: 34px;
  padding: 34px;
  border: 1px solid var(--sand);
}

.form-control,
.form-select {
  border-radius: 18px;
  border: 1px solid var(--sand);
  padding: 15px 18px;
  background-color: #fbfaf8;
}

.form-control:focus,
.form-select:focus {
  box-shadow: none;
  border-color: var(--gold);
}

.btn-dark-luxury {
  border: none;
  background: var(--dark);
  color: #fff;
  padding: 16px 30px;
}

.btn-dark-luxury:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

.btn-dark-luxury:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.date-help {
  font-size: .9rem;
  color: var(--muted);
  margin-top: 10px;
}

.availability-status,
.form-message {
  border-radius: 18px;
  padding: 14px 16px;
  font-size: .95rem;
  display: none;
}

.availability-status.available,
.form-message.success {
  display: block;
  background: #edf7ef;
  color: #246b35;
  border: 1px solid #cfe9d5;
}

.availability-status.booked,
.form-message.error {
  display: block;
  background: #fff1ee;
  color: #9b2f21;
  border: 1px solid #f1c9c2;
}

.flatpickr-day.booked-date {
  background: #eadbd5 !important;
  color: #9b2f21 !important;
  text-decoration: line-through;
  border-color: #eadbd5 !important;
}

/* YOUTUBE MODAL */

.youtube-modal {
  overflow: hidden;
}

.youtube-modal .modal-dialog {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  margin: 0;
}

.youtube-modal .modal-content {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  background: #000;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.youtube-modal .modal-body {
  padding: 0;
  height: 100vh;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.youtube-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 2rem;
  display: grid;
  place-items: center;
  transition: .25s ease;
}

.youtube-close:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

.youtube-frame-wrap {
  position: relative;
  width: min(96%, 1600px);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 30px 90px rgba(0,0,0,.8);
}

.youtube-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* OFFER */

.portfolio-offer {
  background: linear-gradient(135deg, #fff, #f1e6da);
  border-radius: 42px;
  padding: 64px;
  border: 1px solid rgba(185,155,114,.25);
  box-shadow: 0 24px 70px rgba(40,30,20,.08);
  position: relative;
  overflow: hidden;
}

.portfolio-offer::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(185,155,114,.18);
  right: -110px;
  top: -110px;
  pointer-events: none;
}

.portfolio-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.portfolio-offer-price {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1;
  color: var(--dark);
  margin: 24px 0 10px;
}

.portfolio-offer-price span {
  font-size: 1.2rem;
  font-family: "Inter", sans-serif;
  color: var(--muted);
}

.portfolio-offer-text {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 760px;
}

.portfolio-offer-note {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(185,155,114,.28);
  color: var(--muted);
}

/* FOOTER */

footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 34px 0;
  font-size: .9rem;
  overflow: hidden;
}

/* BLOG / ARTICLE */

.article-hero {
  background: var(--dark);
  color: #fff;
  padding: 170px 0 90px;
  position: relative;
  overflow: hidden;
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at right top, rgba(185,155,114,.22), transparent 38%);
}

.article-hero .container {
  position: relative;
  z-index: 2;
}

.article-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: .98;
  letter-spacing: -2px;
  max-width: 900px;
}

.article-meta {
  color: rgba(255,255,255,.65);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.article-content-wrap {
  padding: 90px 0;
}

.article-content {
  background: #fff;
  border-radius: 34px;
  padding: clamp(28px, 5vw, 70px);
  box-shadow: 0 24px 70px rgba(40,30,20,.08);
}

.article-content p,
.article-content li {
  color: var(--muted);
  font-size: 1.08rem;
}

.article-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 50px 0 20px;
  line-height: 1.05;
}

.article-content blockquote {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 22px;
  padding: 28px;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 40px 0;
}

/* TABLET / MOBILE */

@media (max-width: 991px) {
  .navbar {
    position: absolute;
    background: transparent;
    padding: 14px 0;
  }

  .navbar-collapse {
    margin-top: 14px;
    background: rgba(30,27,24,.94);
    border-radius: 20px;
    padding: 14px 18px;
  }

  .nav-link {
    margin-left: 0;
    padding: 10px 0;
  }

  .intro-card,
  .booking-card {
    padding: 34px;
  }

  .portfolio-offer {
    padding: 42px 34px;
  }

  .section {
    padding: 76px 0;
  }

  .btn-outline-light-custom {
    margin-left: 0;
    margin-top: 12px;
  }

  .youtube-close {
    width: 56px;
    height: 56px;
    top: 16px;
    right: 16px;
    font-size: 1.6rem;
  }

  .youtube-frame-wrap {
    width: 100%;
  }
}

/* SMALL MOBILE */

@media (max-width: 575px) {
  .hero {
    min-height: 92vh;
  }

  .hero-content {
    max-width: 100%;
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
    letter-spacing: -1px;
  }

  .section-title {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: -1px;
  }

  .intro-card {
    margin-top: -46px;
  }

  .intro-card,
  .booking-card,
  .portfolio-offer {
    padding: 28px 20px;
    border-radius: 26px;
  }

  .contact-section {
    border-radius: 30px 30px 0 0;
    padding: 76px 0;
  }

  .btn-luxury,
  .btn-outline-light-custom,
  .btn-dark-luxury {
    width: 100%;
    justify-content: center;
  }

  .video-card,
  .video-card img {
    min-height: 260px;
  }

  .video-info {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .video-info h3 {
    font-size: 1.45rem;
  }

  .play-btn {
    font-size: 3rem;
  }

  .process-card,
  .package-card {
    padding: 26px 22px;
    border-radius: 24px;
  }

  .portfolio-offer-price {
    font-size: 3.2rem;
  }

  .youtube-close {
    right: 12px;
    top: 12px;
  }

  .youtube-frame-wrap {
    width: 100%;
    box-shadow: none;
  }
}
