/* ============================================
   Apple Mountain Golf Club - Shared Styles
   ============================================ */

/* Base */
html {
    overflow-x: clip;  /* Stronger than hidden — prevents any child from establishing horizontal scroll */
}
body {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-size: 17px;
    color: #d4d0c8;
    line-height: 1.7em;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    background-color: #111111;
    max-width: 100vw;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #a98b5e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8a7049; }

/* Hero */
.hero-bg {
    position: relative;
    overflow: hidden;
    background-color: #2a3d25;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 40%, rgba(0,0,0,0.40) 100%);
    z-index: 1;
}

/* Page hero (image-based) */
.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-color: #2a3d25;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

/* Cards */
.card-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-overlay:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.0) 100%);
    border-radius: 0.5rem;
    transition: background 0.35s ease;
}

.card-overlay:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%);
}

.card-overlay:hover img {
    transform: scale(1.08);
}

.card-overlay img {
    transition: transform 0.6s ease;
}

/* Glass Nav */
.nav-glass {
    background: rgba(17, 17, 17, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #a98b5e;
    padding: 8px 10px;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background-color: #a98b5e;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: #8a7049;
}

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

.nav-link.active::after {
    transform: scaleX(1);
}

/* Dropdowns */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(30,30,30,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-top: 3px solid #a98b5e;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    transition: all 0.15s;
}

.dropdown-menu a:hover {
    background-color: rgba(169,139,94,0.1);
    color: #a98b5e;
    padding-left: 24px;
}

/* Buttons */
.btn-am {
    background-color: #a98b5e;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-am::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-am:hover::before {
    left: 100%;
}

.btn-am:hover {
    background-color: #8a7049;
    transform: translateY(-2px);
}

.btn-am-outline {
    background-color: transparent;
    color: #a98b5e;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 24px;
    border: 2px solid #a98b5e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-am-outline:hover {
    background-color: #a98b5e;
    color: #fff;
    transform: translateY(-2px);
}

.btn-am-outline-white {
    background-color: transparent;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 24px;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-am-outline-white:hover {
    background-color: #fff;
    color: #111;
    transform: translateY(-2px);
}

/* Dividers */
.section-divider {
    width: 60px;
    height: 2px;
    background-color: #a98b5e;
}

/* Image decoration */
.img-decorated {
    position: relative;
}

.img-decorated::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -16px;
    right: 16px;
    bottom: -20px;
    border: 2px solid #a98b5e;
    border-radius: 0.5rem;
    z-index: -1;
}

/* Stats */
.stat-number {
    font-family: 'Cinzel', serif;
    font-size: 42px;
    font-weight: 700;
    color: #a98b5e;
    line-height: 1;
}

.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    margin-top: 8px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #a98b5e, transparent);
}

/* Form inputs */
.form-input {
    border: 1px solid #333;
    border-radius: 6px;
    padding: 14px 18px;
    font-family: 'Merriweather', serif;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #1e1e1e;
    color: #d4d0c8;
}

.form-input:focus {
    outline: none;
    border-color: #a98b5e;
    box-shadow: 0 0 0 3px rgba(169, 139, 94, 0.2);
    background: #252525;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.open {
    max-height: 800px;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.mobile-submenu.open {
    max-height: 300px;
}

/* Parallax */
.parallax-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Feature cards */
.feature-card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #a98b5e;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* Pricing/tier cards */
.tier-card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.tier-card:hover {
    border-color: #a98b5e;
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.tier-card.featured {
    border-color: #a98b5e;
    background: linear-gradient(180deg, #1e1e1e 0%, #252015 100%);
}

.tier-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: #a98b5e;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 0 0 8px 8px;
}

/* Package cards */
.package-card {
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.package-card:hover {
    border-color: #a98b5e;
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.package-card img {
    transition: transform 0.6s ease;
}

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

/* Rates table */
.rates-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.rates-table thead th {
    background: #a98b5e;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 20px;
    text-align: left;
}

.rates-table tbody td {
    background: #1e1e1e;
    padding: 14px 20px;
    font-family: 'Merriweather', serif;
    font-size: 14px;
    border-bottom: 1px solid #2a2a2a;
}

.rates-table tbody tr:last-child td {
    border-bottom: none;
}

.rates-table tbody tr:hover td {
    background: #252525;
}

/* Checklist items */
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.check-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #a98b5e;
    margin-top: 2px;
}

/* Icon circles */
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(169, 139, 94, 0.1);
    border: 2px solid #a98b5e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle svg {
    width: 28px;
    height: 28px;
    color: #a98b5e;
}

/* Responsive */
@media (max-width: 768px) {
    .parallax-section { background-attachment: scroll; }
    .img-decorated::before { display: none; }
    .stat-number { font-size: 32px; }
    .page-hero { min-height: 40vh; }
}
