/*
Theme Name: Ken's Tours
Theme URI: https://lowerantelope.com
Author: Designed by John
Author URI: https://designedbyjohn.com
Description: Custom WordPress theme for Ken's Tours - Lower Antelope Canyon
Version: 1.0.1
License: GNU General Public License v2 or later
Text Domain: kenstours
*/

/* ========================
   CSS Custom Properties
   ======================== */
:root {
    --color-primary:      #C45C1A;
    --color-primary-dark: #8B3A0F;
    --color-primary-light:#E07840;
    --color-dark:         #1A1007;
    --color-dark-2:       #2C1A0A;
    --color-mid:          #5C3317;
    --color-sand:         #D4A96A;
    --color-sand-light:   #F5E6CC;
    --color-white:        #FFFFFF;
    --color-off-white:    #FAF7F2;
    --color-gray:         #6B6B6B;
    --color-gray-light:   #E8E0D5;

    --font-heading: 'Marcellus', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --max-width: 1280px;
    --section-pad: 80px 20px;
    --border-radius: 8px;
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background: var(--color-white);
    line-height: 1.6;
    font-size: 16px;
}

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

a { color: inherit; text-decoration: none; transition: color var(--transition); }

ul { list-style: none; }

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ========================
   Typography
   ======================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

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

/* ========================
   Layout Utilities
   ======================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: var(--section-pad); }
.section--dark { background: var(--color-dark); color: var(--color-white); }
.section--sand { background: var(--color-sand-light); }
.section--off-white { background: var(--color-off-white); }

.text-center { text-align: center; }
.text-white { color: var(--color-white); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ========================
   Buttons
   ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline-dark:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ========================
   Section Labels
   ======================== */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ========================
   Cards
   ======================== */
.card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.card-body { padding: 24px; }

/* ========================
   Hero
   ======================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(26,16,7,0.85) 0%, rgba(26,16,7,0.4) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.hero-content h1 { color: var(--color-white); margin-bottom: 24px; }
.hero-content p { color: rgba(255,255,255,0.85); font-size: 1.125rem; max-width: 560px; margin-bottom: 36px; }

/* ========================
   Page Hero (inner pages)
   ======================== */
.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    padding: 80px 24px 60px;
    background: var(--color-dark-2);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,16,7,0.9) 0%, rgba(26,16,7,0.4) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.page-hero-content h1 { color: var(--color-white); }
.page-hero-content p { color: rgba(255,255,255,0.8); font-size: 1.125rem; max-width: 600px; margin-top: 16px; }

/* ========================
   Tour Cards
   ======================== */
.tour-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--color-dark);
}

.tour-card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-card-img { transform: scale(1.05); }

.tour-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,16,7,0.92) 0%, transparent 55%);
}

.tour-card-body {
    position: relative;
    z-index: 2;
    padding: 28px;
}

.tour-card-body h3 { color: var(--color-white); margin-bottom: 8px; }
.tour-card-body .price { color: var(--color-sand); font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; }
.tour-card-body p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: 20px; }

.tour-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tour-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* ========================
   Rating
   ======================== */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-sand);
}

/* ========================
   Forms
   ======================== */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-light);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    background: var(--color-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

textarea.form-control { resize: vertical; min-height: 120px; }

/* ========================
   Badge
   ======================== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.badge-primary { background: var(--color-primary); color: var(--color-white); }
.badge-sand { background: var(--color-sand); color: var(--color-dark); }
.badge-outline { border: 1px solid var(--color-primary); color: var(--color-primary); }

/* ========================
   Divider
   ======================== */
.divider {
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 16px auto;
    border-radius: 2px;
}

/* ========================
   Accordion (FAQ)
   ======================== */
.accordion-item {
    border-bottom: 1px solid var(--color-gray-light);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    color: var(--color-dark);
    gap: 16px;
}

.accordion-trigger:hover { color: var(--color-primary); }

.accordion-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: transform var(--transition);
}

.accordion-body {
    display: none;
    padding: 0 0 20px;
    color: var(--color-gray);
    line-height: 1.7;
}

.accordion-item.active .accordion-body { display: block; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }

/* ========================
   Gallery Grid
   ======================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

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

/* ========================
   Testimonials
   ======================== */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.testimonial-stars { color: var(--color-primary); font-size: 1.1rem; margin-bottom: 16px; }
.testimonial-text { font-style: italic; color: var(--color-gray); margin-bottom: 24px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 700; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--color-gray); }

/* ========================
   Stats Bar
   ======================== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--color-primary);
    color: var(--color-white);
}

.stat-item {
    padding: 40px 24px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.stat-label { font-size: 0.85rem; opacity: 0.85; letter-spacing: 0.05em; }

@media (max-width: 768px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
}

/* ========================
   CTA Banner
   ======================== */
.cta-banner {
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
    padding: 80px 24px;
    text-align: center;
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

.cta-banner-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-banner h2 { color: var(--color-white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.05rem; }

/* ========================
   Responsive Adjustments
   ======================== */
@media (max-width: 1024px) {
    :root { --section-pad: 60px 20px; }
}

@media (max-width: 768px) {
    :root { --section-pad: 48px 16px; }
    .hero-content { padding: 100px 16px 60px; }
    .page-hero { padding: 80px 16px 40px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
