/*
Theme Name: Innsbruck Airport Taxi
Theme URI: https://afc-software.com
Description: Custom theme for Innsbruck Airport Taxi
Version: 1.0.0
Author: AFC Software
Text Domain: innsbruck-taxi
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a { color: #1e7e34; text-decoration: none; }
a:hover { color: #145a24; }

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
  color: #111;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }

/* =============================================
   LAYOUT
   ============================================= */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

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

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.site-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.site-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #1e7e34;
}

/* Nav — works for both wp_nav_menu <ul><li> and manual <a> output */
.site-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }

/* Strip WP menu ul/li */
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; list-style: none; margin: 0; padding: 0; }
.site-nav li::before { display: none; content: none; }

.site-nav a,
.site-nav li > a {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  display: block;
}
.site-nav a:hover,
.site-nav li > a:hover { background: #f0faf2; color: #1e7e34; }
.site-nav .current-menu-item > a,
.site-nav a.current { color: #1e7e34; }

/* Dropdown — WP adds .sub-menu */
.nav-item,
.site-nav li { position: relative; }

.site-nav li > a[aria-haspopup]::after,
.nav-item > a::after { content: ' ▾'; font-size: 10px; opacity: 0.6; }

.nav-dropdown,
.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 210px;
  padding: 6px;
  z-index: 200;
  list-style: none;
  margin: 0;
}
.site-nav li.open > .sub-menu,
.nav-item.open .nav-dropdown { display: block; }

.site-nav .sub-menu li { display: block; }
.site-nav .sub-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  border-radius: 6px;
  color: #333;
  white-space: nowrap;
}
.site-nav .sub-menu a:hover { background: #f0faf2; color: #1e7e34; }

/* CTA Button — last menu item */
.site-nav .menu-item-cta > a,
.nav-cta {
  background: #1e7e34 !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin-left: 8px !important;
  transition: background 0.15s !important;
}
.site-nav .menu-item-cta > a:hover,
.nav-cta:hover { background: #145a24 !important; color: #fff !important; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 20px;
  color: #333;
  line-height: 1;
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav,
  .site-nav ul {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
  }
  .site-nav.open,
  .site-nav.open ul { display: flex; }
  .site-nav li { width: 100%; }
  .site-nav a,
  .site-nav li > a { padding: 12px 14px; width: 100%; }
  .site-nav .sub-menu {
    position: static; box-shadow: none; border: none;
    border-radius: 0; padding-left: 12px; display: block;
    width: 100%;
  }
  .nav-cta,
  .site-nav .menu-item-cta > a { text-align: center; margin-left: 0 !important; margin-top: 8px; width: 100%; }
}

/* =============================================
   PAGE CONTENT
   ============================================= */
.page-content {
  padding: 48px 0 64px;
}

.entry-content { max-width: 100%; }

/* Gutenberg block styles */
.entry-content h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 1rem; }
.entry-content h2 { font-size: clamp(22px, 3vw, 32px); margin: 2rem 0 1rem; }
.entry-content h3 { font-size: clamp(18px, 2.5vw, 24px); margin: 1.5rem 0 0.75rem; }
.entry-content p  { margin-bottom: 1.1rem; color: #333; }
.entry-content ul, .entry-content ol { margin-bottom: 1.1rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content strong { font-weight: 700; }

/* WP block alignment */
.alignwide  { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }

/* WP block image */
.wp-block-image img { border-radius: 10px; }

/* WP block cover */
.wp-block-cover { min-height: 400px; }

/* WP block buttons */
.wp-block-button__link {
  background: #1e7e34;
  color: #fff;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s;
}
.wp-block-button__link:hover { background: #145a24; color: #fff; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand p { font-size: 14px; color: #999; line-height: 1.7; }

.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #999; transition: color 0.15s; }
.footer-col a:hover { color: #4caf50; }

.footer-contact p { font-size: 14px; color: #999; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-contact a { color: #999; }
.footer-contact a:hover { color: #4caf50; }

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 13px; color: #666; margin: 0; }
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: #4caf50; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =============================================
   BOOKING FORM SPACING
   ============================================= */
.tb-wrap {
  margin-top: 48px !important;
  margin-bottom: 48px !important;
}

/* =============================================
   SKI RESORT CARDS — tema içinden override
   ============================================= */
#main .skg-logo,
#main [class*="skgrid"] .l {
  background: #ffffff !important;
  min-height: 160px !important;
  height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 20px !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

#main .skg-logo img,
#main [class*="skgrid"] .l img {
  max-height: 110px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

#main .skg-card,
#main [class*="skgrid"] .c {
  overflow: visible !important;
  min-height: 270px !important;
}

/* =============================================
   UTILITIES
   ============================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
