﻿/* Tokens + reset + base element defaults */
:root {
    --awc-brand: #1b6f6a;
    --awc-brand-2: #89c5c1;
    --awc-accent: #e7b75f;
    --awc-dark: #1d1f20;
    --awc-muted: #6b7376;
    --awc-light: #f7f9f9;
    --awc-radius: .75rem;
    --awc-space-1: .25rem;
    --awc-space-2: .5rem;
    --awc-space-3: 1rem;
    --awc-space-4: 1.5rem;
    --awc-space-5: 2rem;
    --awc-font-sans: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --awc-font-serif: "Playfair Display", Georgia, serif;
    /* Semantic aliases (map to your current palette) */
    --awc-ink: var(--awc-dark);
    --awc-surface: #ffffff;
    --awc-border: #e7ecec;
    /* Subtle accent surface for chips/pills/cards */
    --awc-accent-bg: color-mix(in srgb, var(--awc-brand-2) 14%, #fff);
    /* Radii & shapes */
    --awc-radius-lg: 1rem;
    --awc-radius-pill: 999px;
    /* Elevation tokens for components */
    --awc-shadow-sm: 0 2px 8px rgba(0, 0, 0, .04);
    --awc-shadow-md: 0 6px 24px rgba(0, 0, 0, .08);
    --awc-shadow-lg: 0 10px 30px rgba(0, 0, 0, .12);
    /* Spacing aliases (keeps your existing scale intact) */
    --awc-section-y: clamp(48px, 6vw, 96px);
    /* Sticky header offset for in-page anchors */
    --awc-sticky-offset: 72px;
    /* Navigation height */
    --awc-header-height: 80px;
}

/* Ensure in-page anchors don't hide behind sticky header */
section[id] {
    scroll-margin-top: var(--awc-sticky-offset);
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Ensure buttons/links get a consistent focus ring (uses your accent) */
:where(a, button):focus-visible {
    outline: 2px solid var(--awc-accent);
    outline-offset: 2px;
}

html, body {
    height: 100%;
}

/* Provide a neutral surface utility token for components to consume */
html {
    color-scheme: light;
}

body {
    margin: 0;
    color: var(--awc-dark);
    background: var(--awc-light);
    font-family: var(--awc-font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: var(--awc-header-height);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-underline-offset: 2px;
    text-decoration-thickness: from-font;
}

    a:focus-visible, button:focus-visible {
        outline: 2px solid var(--awc-accent);
        outline-offset: 2px;
    }

/* Motion + focus improvements (respects user prefs) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Booking loader overlay */
#awc-booking-wrapper {
    min-height: 320px; /* ensures some space while loading */
}

#awc-booking-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 10;
    transition: opacity 0.3s ease;
}

    #awc-booking-loader.is-hidden {
        opacity: 0;
        pointer-events: none;
    }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .spinner-border {
        animation: none !important;
    }
}
/* Square booking widget iframe */
#awc-booking-wrapper iframe {
    width: 100%;
    min-height: 2100px !important;
    border: 0;
}

