/*
Theme Name: Kijani Stone Residence
Theme URI: https://kijanistone.local
Author: Kijani Stone & Hemingways Collection Design System
Description: A luxury sanctuary theme powered by the Hemingways Collection Design System tokens.
Version: 2.0.0
License: GPL v2 or later
Text Domain: kijani-stone
*/

/* ==========================================================================
   HEMINGWAYS COLLECTION DESIGN SYSTEM TOKENS
   ========================================================================== */

:root {
    /* ------------------------------------------------------------------------
       1. Colors
       ------------------------------------------------------------------------ */
    --color-beige: #E8DCCB;
    --color-black: #000000;
    --color-gray-200: #4A4A4A;
    --color-gray-100: #56575C;
    --color-gray-600: #666366;
    --color-gray-300: #6C6969;
    --color-orange: #8B4A27;
    --color-green: #345B51;
    --color-gray-400: #D9D9D9;
    --color-white: #FFFFFF;

    /* Semantic Roles */
    --color-surface: var(--color-beige);
    --color-surface-light: #F7F3EE;
    --color-background-dark: var(--color-green);
    --color-accent: var(--color-orange);
    --color-text-primary: var(--color-black);
    --color-text-body: var(--color-gray-200);
    --color-text-muted: var(--color-gray-600);
    --color-text-light: var(--color-white);
    --color-border: var(--color-gray-400);

    /* ------------------------------------------------------------------------
       2. Typography
       ------------------------------------------------------------------------ */
    --font-serif: 'New Reason', 'FK Roman Standard Trial', 'FK Roman Standard', 'Playfair Display', 'Cormorant Garamond', 'Georgia', serif;
    --font-serif-italic: 'FK Roman Standard Italic', 'Playfair Display', 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: ui-sans-serif, system-ui, -apple-system, 'Plus Jakarta Sans', BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Type Scale & Line Heights */
    --text-xs: 14px;
    --line-height-xs: 21px;

    --text-sm: 16px;
    --line-height-sm: 24px;

    --text-base: 20px;
    --line-height-base: 30px;

    --text-lg: 45px;
    --line-height-lg: 60px;

    --text-xl: 80px;
    --line-height-xl: 80px;

    /* Weight Scale */
    --weight-200: 200;
    --weight-300: 300;
    --weight-400: 400;
    --weight-500: 500;
    --weight-600: 600;

    /* ------------------------------------------------------------------------
       3. Spacing (Base unit: 4px)
       ------------------------------------------------------------------------ */
    --space-1: 7px;
    --space-2: 12px;
    --space-3: 15px;
    --space-4: 20px;
    --space-5: 25px;
    --space-6: 40px;
    --space-7: 50px;
    --space-8: 80px;
    --space-9: 95px;
    --space-10: 175px;
    --space-11: 290px;
    --space-12: 319px;
    --space-13: 344px;

    /* ------------------------------------------------------------------------
       4. Shapes / Border Radius
       ------------------------------------------------------------------------ */
    --radius-sm: 9999px; /* 2.68435e+07px pill radius */
    --radius-md: 4px;

    /* ------------------------------------------------------------------------
       5. Motion
       ------------------------------------------------------------------------ */
    --duration-fast: all 0.15s ease;
    --duration-base: 0.2s linear;
    --duration-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   GLOBAL BASE & RESET
   ========================================================================== */

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-white);
    color: var(--color-gray-200);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    line-height: var(--line-height-sm);
    margin: 0;
    padding: 0;
}

/* Headings: Editorial Luxury Serif */
h1, h2, h3, h4, h5, h6,
.font-display-lg,
.font-headline-lg,
.font-headline-md,
.font-headline-sm {
    font-family: var(--font-serif);
    color: var(--color-green);
    font-weight: var(--weight-400);
    letter-spacing: -0.01em;
}

h1, .font-display-lg {
    font-size: clamp(38px, 6vw, var(--text-xl));
    line-height: 1.05;
    font-weight: var(--weight-300);
}

h2, .font-headline-lg {
    font-size: clamp(28px, 4vw, var(--text-lg));
    line-height: var(--line-height-lg);
    font-weight: var(--weight-400);
}

h3, .font-headline-md {
    font-size: 32px;
    line-height: 40px;
    font-weight: var(--weight-400);
}

h4, .font-headline-sm {
    font-size: 24px;
    line-height: 30px;
    font-weight: var(--weight-400);
}

/* Editorial Italic Accents */
em, i, .font-serif-italic {
    font-family: var(--font-serif-italic);
    font-style: italic;
}

/* Paragraphs / Body text */
p, .font-body-md {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    line-height: var(--line-height-sm);
    color: var(--color-gray-200);
}

.font-body-lg {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--line-height-base);
    color: var(--color-gray-200);
}

/* Labels and Metadata (Uppercase, tracked) */
.font-label-md, .label-tracking {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    line-height: var(--line-height-xs);
    font-weight: var(--weight-500);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-orange);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--duration-smooth);
}

a:hover {
    color: var(--color-orange);
}

/* ==========================================================================
   HEMINGWAYS COMPONENT LIBRARY
   ========================================================================== */

/* 1. BUTTONS */
/* Primary Action Button (Pill, Luxury Green) */
.btn-hemingways-primary,
a.btn-hemingways-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-green);
    color: var(--color-white) !important;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: var(--weight-500);
    line-height: var(--line-height-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: var(--radius-sm); /* Pill: 9999px */
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--duration-smooth);
    text-align: center;
}

.btn-hemingways-primary:hover,
a.btn-hemingways-primary:hover {
    background-color: var(--color-orange);
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

.btn-hemingways-primary:active,
a.btn-hemingways-primary:active {
    transform: translateY(0);
}

/* Accent Action Button (Pill, Warm Safari Terracotta) */
.btn-hemingways-accent,
a.btn-hemingways-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-orange);
    color: var(--color-white) !important;
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: var(--weight-500);
    line-height: var(--line-height-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: var(--radius-sm); /* Pill: 9999px */
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--duration-smooth);
    text-align: center;
}

.btn-hemingways-accent:hover,
a.btn-hemingways-accent:hover {
    background-color: var(--color-green);
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

/* Secondary / Outline Button */
.btn-hemingways-outline,
a.btn-hemingways-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--color-green) !important;
    border: 1px solid var(--color-green);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: var(--weight-500);
    line-height: var(--line-height-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: var(--radius-sm); /* Pill: 9999px */
    cursor: pointer;
    transition: var(--duration-smooth);
}

.btn-hemingways-outline:hover,
a.btn-hemingways-outline:hover {
    background-color: var(--color-green);
    color: var(--color-white) !important;
}

/* 2. CARDS & CONTAINERS */
.hemingways-card {
    background-color: var(--color-beige);
    border-radius: var(--radius-md); /* 4px */
    border: 1px solid rgba(108, 105, 105, 0.15);
    padding: var(--space-5);
    transition: var(--duration-smooth);
}

.hemingways-card:hover {
    border-color: var(--color-orange);
}

/* 3. LUXURY EDITORIAL SURFACES */
.bg-hemingways-beige {
    background-color: var(--color-beige) !important;
}

.bg-hemingways-green {
    background-color: var(--color-green) !important;
    color: var(--color-white);
}

.bg-hemingways-dark {
    background-color: #27453D !important;
    color: var(--color-white);
}

.text-hemingways-green {
    color: var(--color-green) !important;
}

.text-hemingways-orange {
    color: var(--color-orange) !important;
}

.text-hemingways-black {
    color: var(--color-black) !important;
}

.border-hemingways-gray {
    border-color: var(--color-gray-400) !important;
}

.border-hemingways-orange {
    border-color: var(--color-orange) !important;
}

/* Image styling adhering to 4px radius */
img.rounded-sm,
.rounded-sm img,
.hemingways-card img {
    border-radius: var(--radius-md) !important;
}

/* Accessible Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 3px;
}


/* ==========================================================================
   MOTOPRESS HOTEL BOOKING & FORM CONTROLS (HEMINGWAYS ALIGNMENT)
   ========================================================================== */

.mphb_sc_search-wrapper,
.mphb-checkout-form,
.booking-engine {
    font-family: var(--font-sans);
}

.mphb_sc_search-wrapper input[type="text"],
.mphb_sc_search-wrapper select,
.mphb-checkout-form input[type="text"],
.mphb-checkout-form input[type="email"],
.mphb-checkout-form input[type="tel"],
.mphb-checkout-form select,
.mphb-checkout-form textarea {
    border: 1px solid var(--color-gray-400);
    border-radius: var(--radius-md) !important;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-black);
    background-color: var(--color-white);
    transition: var(--duration-smooth);
}

.mphb_sc_search-wrapper input:focus,
.mphb-checkout-form input:focus,
.mphb-checkout-form select:focus,
.mphb-checkout-form textarea:focus {
    border-color: var(--color-orange);
    outline: 2px solid rgba(139, 74, 39, 0.2);
}

.mphb_sc_search-submit-button-wrapper input[type="submit"],
.mphb_sc_search-submit-button-wrapper button,
.mphb-reserve-btn,
.mphb_checkout-submit-wrapper input[type="submit"],
.mphb-confirm-reservation {
    background-color: var(--color-orange) !important;
    color: var(--color-white) !important;
    font-family: var(--font-sans) !important;
    font-size: var(--text-xs) !important;
    font-weight: var(--weight-500) !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 14px 32px !important;
    border-radius: var(--radius-sm) !important; /* Pill */
    border: none !important;
    cursor: pointer !important;
    transition: var(--duration-smooth) !important;
    box-shadow: none !important;
}

.mphb_sc_search-submit-button-wrapper input[type="submit"]:hover,
.mphb-reserve-btn:hover,
.mphb_checkout-submit-wrapper input[type="submit"]:hover {
    background-color: var(--color-green) !important;
    transform: translateY(-1px);
}

/* ------------------------------------------------------------------------
   RESPONSIVE SAFETY & FLUID CLAMPS
   ------------------------------------------------------------------------ */
html, body {
    overflow-x: hidden;
    width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Fluid responsive typography */
h1, .font-display-lg {
    font-size: clamp(34px, 7vw, 76px) !important;
    line-height: 1.15 !important;
}

h2, .font-headline-lg {
    font-size: clamp(26px, 4.5vw, 45px) !important;
    line-height: 1.25 !important;
}

h3, .font-headline-md {
    font-size: clamp(22px, 3.5vw, 32px) !important;
    line-height: 1.3 !important;
}

h4, .font-headline-sm {
    font-size: clamp(18px, 2.8vw, 24px) !important;
    line-height: 1.35 !important;
}

/* Break words for emails / phone links to prevent mobile overflow */
.break-words-mobile {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}
