/*
Theme Name: Peemhee Pool Villa
Theme URI: https://peemhee.com
Author: Peemhee
Description: ธีมเว็บไซต์พี่หมี พูลวิลล่าพัทยา — Playful Tropical design for pool villa rental service
Version: 4.0.0
Text Domain: peemhee
*/

/* ===========================
   DESIGN TOKENS — Playful Tropical
   =========================== */
:root {
    /* Brand palette */
    --sea-900: #062a33;
    --sea-700: #0e7c8e;
    --sea-500: #24a9bd;
    --sea-300: #8fd3dd;
    --sea-100: #e2f4f7;

    --coral-700: #d94e2e;
    --coral-500: #ff6b4a;
    --coral-300: #ffa088;
    --coral-100: #ffe3db;

    --sand-900: #3a2e1e;
    --sand-500: #b89868;
    --sand-300: #e4ceab;
    --sand-100: #fff8ee;

    --ink: #0a2540;
    --ink-soft: #465668;
    --mute: #7c8a9c;
    --line: #e6ecf1;
    --cloud: #f5f8fb;
    --white: #ffffff;

    /* Semantic */
    --bg: var(--sand-100);
    --surface: var(--white);
    --text: var(--ink);
    --text-soft: var(--ink-soft);
    --primary: var(--sea-700);
    --primary-dark: var(--sea-900);
    --accent: var(--coral-500);
    --accent-dark: var(--coral-700);

    /* Typography */
    --font-heading: 'Prompt', 'Sarabun', sans-serif;
    --font-body: 'Sarabun', 'Prompt', sans-serif;

    /* Sizing */
    --container: 1240px;
    --container-wide: 1400px;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
    --shadow: 0 12px 32px rgba(10, 37, 64, 0.1);
    --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.16);
    --shadow-coral: 0 14px 32px rgba(255, 107, 74, 0.35);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --tr-fast: 160ms var(--ease);
    --tr: 280ms var(--ease);
    --tr-slow: 520ms var(--ease);
}

/* ===========================
   BASE RESET
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, iframe {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--tr-fast);
}

a:hover {
    color: var(--primary-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.6em;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1em; }

::selection {
    background: var(--coral-300);
    color: var(--ink);
}

/* ===========================
   LAYOUT UTILITIES
   =========================== */
/* Unified container — every section uses the same outer width so
   left/right edges align across the whole site (covers, heroes, grids).
   Inner content max-widths still cap narrower blocks (e.g. hero__inner 880,
   page-cover__inner 820, post-content 720). */
.container {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

.container--wide {
    max-width: var(--container-wide);
}

.section {
    padding: clamp(36px, 5vw, 72px) 0;
}

.section--tight {
    padding: clamp(24px, 3vw, 48px) 0;
}

.section__head {
    max-width: 820px;
    margin: 0 auto clamp(20px, 3vw, 36px) 0; /* left-align with container edge */
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--sea-100);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.section__title {
    margin-bottom: 12px;
}

.section__subtitle {
    color: var(--text-soft);
    font-size: 1.05rem;
    margin: 0;
}

/* Mobile: shrink section headings + base text */
@media (max-width: 560px) {
    h1 { font-size: 1.55rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.05rem; }
    .section__eyebrow { font-size: 0.7rem; padding: 4px 10px; margin-bottom: 8px; }
    .section__subtitle { font-size: 0.88rem; }
    .section__head { margin-bottom: 16px; }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius-pill);
    transition: all var(--tr);
    white-space: nowrap;
    cursor: pointer;
}

.btn--primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-coral);
}

.btn--primary:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(217, 78, 46, 0.4);
}

.btn--secondary {
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    background: var(--sea-100);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover {
    background: var(--white);
    color: var(--ink);
    border-color: var(--white);
}

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

.btn--dark:hover {
    background: var(--sea-700);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn--sm {
    padding: 10px 20px;
    font-size: 0.88rem;
}

.btn__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ===========================
   CARDS (generic)
   =========================== */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--tr);
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

/* ===========================
   FORM ELEMENTS (base)
   =========================== */
.input, .select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.input:focus, .select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--sea-100);
}

/* ===========================
   ACCESSIBILITY
   =========================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--ink);
    color: var(--white);
    padding: 12px 20px;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
    color: var(--white);
}

/* ===========================
   ADMIN BAR (WordPress)
   =========================== */
html[lang] .admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
    html[lang] .admin-bar .site-header { top: 46px; }
}
