/*
Theme Name: Kahuts Shuttles
Author: Kahuts Shuttles WP
Author URI: https://kahuts-shuttleswp.com
Description: A minimal WordPress theme designed to work seamlessly with the Kahuts Shuttles WP plugin. Inherits colors, typography, and styling from the plugin's Global Settings for a unified brand experience.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kahuts-shuttles
Tags: one-column, custom-logo, custom-menu, featured-images, full-width-template, block-styles, wide-blocks, blog, portfolio

Kahuts Shuttles Theme is designed as a companion to the Kahuts Shuttles WP page builder plugin.
It inherits all styling from the plugin's Global Settings, creating a cohesive website
where header, footer, and archive pages match the sections built with the plugin.
*/

/*
Kahuts Shuttles WordPress Theme, Copyright 2025 Kahuts Shuttles WP
Kahuts Shuttles is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   Base Reset & Defaults
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--aisb-section-font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--aisb-color-text, #1f2937);
  background-color: var(--aisb-color-background, #faf7e3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--aisb-section-font-heading, inherit);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.5em;
  color: var(--aisb-color-text, #1f2937);
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--aisb-color-primary, #6366f1);
  text-decoration: none;
  transition: color 0.2s ease, filter 0.2s ease;
}

/* NOTE: Hover color override intentionally removed.
   The plugin's smart color system handles link colors based on background contrast.
   Forcing a color on hover would break accessibility calculations.
   Underline behavior is handled by .entry-content rules below. */

/* Content links - must be underlined by default for accessibility-ready tag
   WordPress accessibility guidelines require links within content to be underlined
   Excludes: .aisb-btn* (plugin buttons), .button (WooCommerce buttons), .remove (WooCommerce cart remove) */
.entry-content a:not(.aisb-btn):not(.aisb-btn-primary):not(.aisb-btn-secondary):not(.aisb-btn-ghost):not(.button):not(.remove),
.kahuts-shuttles-content p a:not(.aisb-btn):not(.button):not(.remove) {
  text-decoration: underline;
}

.entry-content a:not(.aisb-btn):not(.aisb-btn-primary):not(.aisb-btn-secondary):not(.aisb-btn-ghost):not(.button):not(.remove):hover,
.entry-content a:not(.aisb-btn):not(.aisb-btn-primary):not(.aisb-btn-secondary):not(.aisb-btn-ghost):not(.button):not(.remove):focus,
.kahuts-shuttles-content p a:not(.aisb-btn):not(.button):not(.remove):hover,
.kahuts-shuttles-content p a:not(.aisb-btn):not(.button):not(.remove):focus {
  text-decoration: underline;
}

/* ==========================================================================
   Focus States (Accessibility)
   ========================================================================== */

:focus {
  outline: 2px solid var(--aisb-color-primary, #6366f1);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--aisb-color-primary, #6366f1);
  outline-offset: 2px;
}

/* ==========================================================================
   Images & Media
   ========================================================================== */

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

figure {
  margin: 0;
}

/* ==========================================================================
   Lists
   ========================================================================== */

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

li {
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button {
  cursor: pointer;
}

/* ==========================================================================
   Skip Link (Accessibility)
   ========================================================================== */

.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--aisb-color-primary, #6366f1);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--aisb-section-radius-button, 6px);
  z-index: 999999;
  transition: top 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 10px;
  outline: 2px solid var(--aisb-color-text, #1f2937);
  outline-offset: 2px;
}

/* ==========================================================================
   Screen Reader Text
   ========================================================================== */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--aisb-color-surface, #f9fafb);
  color: var(--aisb-color-text, #1f2937);
  z-index: 9999;
}

/* ==========================================================================
   Container
   ========================================================================== */

.kahuts-shuttles-container {
  width: 100%;
  max-width: var(--aisb-section-max-width, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .kahuts-shuttles-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .kahuts-shuttles-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.site-main {
  min-height: calc(100vh - 200px);
}

.entry-content {
  max-width: var(--aisb-section-max-width, 1280px);
  margin-left: auto;
  margin-right: auto;
}

.entry-content.alignwide {
  max-width: var(--aisb-section-max-width, 1280px);
}

.entry-content.alignfull {
  max-width: none;
}

/* ==========================================================================
   WordPress Required Classes
   ========================================================================== */

.wp-caption {
  max-width: 100%;
  margin-bottom: 1rem;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--aisb-color-text-muted, #6b7280);
  text-align: center;
  padding: 0.5rem 0;
}

.sticky {
  /* Sticky post styling - inherits standard post styles */
}

.gallery-caption {
  font-size: 0.875rem;
  color: var(--aisb-color-text-muted, #6b7280);
}

.bypostauthor {
  /* Comment author highlighting - inherits standard comment styles */
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Kahuts Shuttles — Outdoor Adventure Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --aisb-color-primary: #2d6a3e;
    --aisb-color-secondary: #d4762c;
    --aisb-color-background: #faf7e3;
    --aisb-color-surface: #f5f1d6;
    --aisb-color-text: #1a2e1a;
    --aisb-color-text-muted: #5a6e5a;
    --aisb-color-border: #e8e2c4;
    --kahuts-gradient: linear-gradient(135deg, #2d6a3e 0%, #3d8b52 50%, #5a9e6a 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--aisb-color-background);
    color: var(--aisb-color-text);
}

h1, h2, h3, h4, h5, h6,
.kahuts-shuttles-archive__title {
    font-family: 'Playfair Display', Georgia, serif;
    color: #1a2e1a;
}

.kahuts-shuttles-header {
    background: rgba(250, 247, 227, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--aisb-color-border);
}

.kahuts-shuttles-header__nav-list a {
    color: var(--aisb-color-text);
    font-weight: 500;
    transition: color 0.2s;
}
.kahuts-shuttles-header__nav-list a:hover {
    color: var(--aisb-color-primary);
}

.kahuts-shuttles-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.kahuts-shuttles-card {
    background: #fffef9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(26, 46, 26, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--aisb-color-border);
}
.kahuts-shuttles-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 46, 26, 0.12);
}

.kahuts-shuttles-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.kahuts-shuttles-card__title a {
    color: #1a2e1a;
    font-family: 'Playfair Display', Georgia, serif;
}

.kahuts-shuttles-card__category {
    color: var(--aisb-color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kahuts-shuttles-footer {
    background: #1a2e1a;
    color: #e8f0e8;
}
.kahuts-shuttles-footer a { color: #a8d4a8; }
.kahuts-shuttles-footer a:hover { color: #d4762c; }

.kahuts-title-logo { max-height: 96px; width: auto; }
.kahuts-title-text { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; color: #1a2e1a; margin-left: 0.5rem; }

.kahuts-shuttles-archive__header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--aisb-color-border);
}

.kahuts-shuttles-archive__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
}

.entry-content a { color: var(--aisb-color-primary); }
.entry-content a:hover { color: var(--aisb-color-secondary); }

.kahuts-shuttles-header__cta .kahuts-shuttles-btn {
    background: var(--kahuts-gradient);
    color: #fff;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
}
