/*
Theme Name: KayakRent
Theme URI: https://example.com
Author: Vadimas Ribakovas
Author URI: mailto:vadimas78@gmail.com
Description: A clean, mobile-friendly WordPress theme for kayak & watersports rental businesses, with an easily editable video header (change the video anytime from Appearance > Customize, no coding needed) and full support for the standard WordPress menu system.
Version: 1.3.3
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: All Rights Reserved - Proprietary, not for redistribution
Text Domain: kayakrent
*/

/* -------------------------------------------------
   0. Reset / base
------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1c2b2d;
  line-height: 1.6;
  background: #f2f3f2;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 48px 56px;
  background: #fff;
  border-radius: 18px;
}

/* -------------------------------------------------
   1. Header / navigation
------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  transition: background-color .3s ease, box-shadow .3s ease, position .3s ease;
}
.site-header.is-scrolled,
.site-header.no-hero {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
body:not(.is-front-page) .site-header,
body.no-hero .site-header {
  position: fixed;
  background-color: rgba(255,255,255,0.96);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  margin: 0;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
}
.site-header.is-scrolled .site-title,
.site-header.no-hero .site-title,
body:not(.is-front-page) .site-title { color: #1c2b2d; }

.custom-logo-link img {
  height: 52px;
  width: 52px;
  object-fit: cover;
}

.primary-navigation .primary-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}
.primary-navigation .primary-menu > li { position: relative; }
.primary-navigation .primary-menu a {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 2px;
}
.site-header.is-scrolled .primary-menu a,
.site-header.no-hero .primary-menu a,
body:not(.is-front-page) .primary-menu a { color: #1c2b2d; }
.primary-menu a:hover { opacity: .7; }

/* dropdown (sub-menu) support for default WP menu */
.primary-menu ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 8px;
  z-index: 200;
}
.primary-menu ul.sub-menu.submenu-align-right {
  left: auto;
  right: 0;
}
@media (hover: hover) and (pointer: fine) {
  .primary-menu li:hover > ul.sub-menu { display: block; }
}
.primary-menu ul.sub-menu a { color: #1c2b2d !important; display: block; padding: 10px 12px; border-radius: 6px; }
.primary-menu ul.sub-menu a:hover { background: #f2f6f5; opacity: 1; }

.menu-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 210;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, background-color .25s ease;
}
.site-header.is-scrolled .menu-toggle span,
.site-header.no-hero .menu-toggle span,
body:not(.is-front-page) .menu-toggle span { background: #1c2b2d; }
.menu-toggle.is-active span { background: #1c2b2d !important; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------
   2. Hero video header
------------------------------------------------- */
.hero-video {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 480px;
  overflow: hidden;
  background: linear-gradient(135deg, #2b2f2e, #14171a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* change to e.g. "center 30%" to shift focus up/down */
}
.hero-video__bg--image {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transform: none; top: 0; left: 0;
}
.hero-video__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.30) 50%, rgba(0,0,0,.5) 100%);
}
.hero-video__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 720px;
}
.hero-video__content h1 {
  font-size: clamp(32px, 6vw, 58px);
  margin-bottom: .3em;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hero-video__content p {
  font-size: clamp(16px, 2.4vw, 20px);
  margin-bottom: 1.6em;
  opacity: .95;
}

/* -------------------------------------------------
   3. Buttons
------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-primary {
  background: #ff9d3a;
  color: #1c2b2d;
  box-shadow: 0 8px 24px rgba(255,157,58,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,157,58,.45); }

/* -------------------------------------------------
   4. Page / content areas
------------------------------------------------- */
.site-main {
  padding: 90px 0 0;
}
body.is-front-page .site-main { padding-top: 0; }

.page-header { text-align: center; margin-bottom: 40px; }
.page-header h1 { font-size: 36px; }

.entry-content { max-width: 100%; }
.entry-content img { border-radius: 14px; margin: 20px 0; }

/* Wide/full alignment support for images, galleries, and columns added
   in the block editor - select "Wide width" or "Full width" on a block
   (e.g. a gallery/columns block) to let it use more of the page than the
   default text column. */
.entry-content .alignwide { max-width: 100%; }
.entry-content .alignfull {
  width: calc(100% + 112px);
  max-width: calc(100% + 112px);
  margin-left: -56px;
  margin-right: -56px;
}
@media (max-width: 860px) {
  .entry-content .alignfull { width: calc(100% + 40px); max-width: calc(100% + 40px); margin-left: -20px; margin-right: -20px; }
}

/* Service cards: large portrait image with a bold caption underneath,
   matching the original site's style. Use this by wrapping each service
   in <div class="service-card"><img ...><h3>Title</h3></div> inside a
   parent <div class="services-grid">...</div>. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin: 50px 0;
}
.service-card {
  text-align: center;
}
.service-card a,
.service-card figure {
  display: block;
  width: 100%;
}
.service-card img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center;
  border-radius: 16px;
  border: 1px solid #e5e7e5;
  margin: 0;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover img {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}
.service-card h3 {
  margin-top: 16px;
  font-size: 22px;
}

/* -------------------------------------------------
   5. Footer
------------------------------------------------- */
.site-footer {
  background: #fafafa;
  color: #1c2b2d;
  padding: 60px 0 0;
  border-top: 1px solid #ececea;
}
.footer-inner {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 56px 40px;
  text-align: center;
}
.footer-col h3 { color: #1c2b2d; font-size: 17px; margin-bottom: .8em; }
.footer-col p, .footer-col a { color: #6b7573; }
.footer-col a:hover { color: #ff9d3a; }

.footer-contact { max-width: 460px; margin: 0 auto; }
.footer-contact-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}
.footer-contact-list li a,
.footer-contact-list li .footer-contact-static {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-contact-list svg { width: 18px; height: 18px; flex-shrink: 0; }

.footer-social-list {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.footer-social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eef0ee;
  color: #1c2b2d;
}
.footer-social-list a:hover { background: #ff9d3a; color: #fff; }
.footer-social-list svg { width: 18px; height: 18px; }

.footer-menu-col { margin-top: 36px; }
.footer-menu { display: flex; flex-direction: column; align-items: center; gap: 10px; }

@media (min-width: 861px) {
  .footer-menu-col {
    position: absolute;
    top: 0;
    right: 56px;
    margin-top: 0;
    text-align: right;
  }
  .footer-menu { flex-direction: row; align-items: center; gap: 24px; }
}

.footer-bottom {
  border-top: 1px solid #ececea;
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
  color: #9aa19f;
}

/* -------------------------------------------------
   6. Responsive
------------------------------------------------- */
@media (max-width: 860px) {
  .container { border-radius: 0; padding: 32px 20px; max-width: 100%; }
  .menu-toggle { display: flex; }
  .primary-navigation {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 82vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    padding: 100px 30px 30px;
    transition: right .3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.15);
    z-index: 200;
  }
  .primary-navigation.is-open { right: 0; }
  .primary-navigation .primary-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .primary-navigation .primary-menu a { color: #1c2b2d; display: block; padding: 12px 0; width: 100%; }
  .primary-menu ul.sub-menu {
    display: none;
    position: static;
    box-shadow: none;
    padding-left: 14px;
  }
  .menu-item-has-children { position: relative; }
  .primary-menu li.submenu-open > ul.sub-menu { display: block; }
  .menu-item-has-children > a::after {
    content: "▾";
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    transition: transform .2s ease;
  }
  .submenu-open > a::after { transform: rotate(180deg); }
  .hero-video { height: 60vh; min-height: 340px; max-height: 560px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 14px 18px; }
  .hero-video__content h1 { font-size: 30px; }
  .hero-video { height: 52vh; min-height: 300px; max-height: 460px; }
}
