/*
Theme Name: Vitalis White Sands
Theme URI: https://vitaliswhitesands.com
Author: Vitalis White Sands
Author URI: https://vitaliswhitesands.com
Description: A custom WordPress theme for Vitalis White Sands resort, inspired by the WaveRide hotel template with a coastal, contemporary design.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vitalis-white-sands
Tags: hotel, resort, custom-header, custom-logo, full-width-template, one-column, two-columns, three-columns
*/

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Roboto:ital,wght@0,400;0,500;0,700;1,400&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
    /* Colors */
    --color-bg:           #ffffff;
    --color-body-text:    #333333;
    --color-heading:      #222222;
    --color-accent:       #0de9df;
    --color-accent-dark:  #0bc8bf;
    --color-dark:         #313131;
    --color-topbar-bg:    #ffffff;
    --color-topbar-text:  #333333;
    --color-footer-bg:    #1a1a1a;
    --color-footer-text:  #aaaaaa;
    --color-border:       #e8e8e8;
    --color-overlay:      rgba(0, 0, 0, 0.45);

    /* Typography */
    --font-body:          'Roboto', sans-serif;
    --font-heading:       'Josefin Sans', sans-serif;
    --font-accent:        'Josefin Sans', sans-serif;

    /* Font Sizes */
    --fs-body:            16px;
    --fs-small:           14px;
    --fs-xs:              12px;
    --fs-h1:              90px;
    --fs-h2:              70px;
    --fs-h3:              56px;
    --fs-h4:              32px;
    --fs-h5:              28px;
    --fs-h6:              26px;

    /* Font Weights */
    --fw-light:           300;
    --fw-regular:         400;
    --fw-semibold:        600;
    --fw-bold:            700;

    /* Spacing */
    --spacing-xs:         8px;
    --spacing-sm:         16px;
    --spacing-md:         24px;
    --spacing-lg:         40px;
    --spacing-xl:         60px;
    --spacing-xxl:        90px;

    /* Layout */
    --container-max:      1200px;
    --header-height:      106px;
    --topbar-height:      40px;
    --border-radius:      4px;
    --border-radius-lg:   8px;

    /* Transitions */
    --transition-fast:    0.2s ease;
    --transition-base:    0.3s ease;
    --transition-slow:    0.5s ease;

    /* Shadows */
    --shadow-sm:          0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:          0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg:          0 8px 40px rgba(0,0,0,0.16);
}

/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: 30px;
    letter-spacing: 1px;
    font-style: normal;
    text-decoration: none;
    text-transform: none;
    color: var(--color-body-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================================
   HEADINGS
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Josefin Sans', sans-serif;
    color: rgb(34, 34, 34);
    font-weight: 600;
    margin-bottom: 0.6em;
    letter-spacing: 3.2px;
    text-transform: uppercase;
    line-height: 48px;
    font-style: normal;
    text-decoration: none;
}

h1 {
    font-size: 90px;
    line-height: 78px;
}

h2 {
    font-size: 70px;
    line-height: 58px;
}

h3 {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: 2px;
}

h4 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 1.5px;
}

h5 {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: 1px;
}

h6 {
    font-size: 25px;
    line-height: 32px;
    letter-spacing: 1px;
}

/* ============================================================
   LINKS
   ============================================================ */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-accent-dark);
    text-decoration: none;
    outline: none;
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================================
   PARAGRAPHS & INLINE ELEMENTS
   ============================================================ */
p {
    margin-bottom: 1.2em;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 30px;
    letter-spacing: 1px;
    font-style: normal;
    text-decoration: none;
    text-transform: none;
    color: rgb(133, 133, 133);
}

/* 
p:last-child {
    margin-bottom: 0;
}
*/

strong, b {
    font-weight: var(--fw-bold);
    color: var(--color-dark);
}

em, i {
    font-style: italic;
}

small {
    font-size: var(--fs-xs);
}

/* ============================================================
   LISTS
   ============================================================ */
ul, ol {
    margin: 0 0 1.2em 1.5em;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

li {
    margin-bottom: 0.4em;
    line-height: 1.7;
}

/* ============================================================
   IMAGES & MEDIA
   ============================================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 0;
}

figcaption {
    font-size: var(--fs-small);
    color: var(--color-body-text);
    margin-top: 8px;
    font-style: italic;
}

/* ============================================================
   FORMS
   ============================================================ */
input,
textarea,
select,
button {
    font-family: var(--font-body);
    font-size: var(--fs-body);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: #fff;
    color: var(--color-dark);
    font-size: var(--fs-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(13, 233, 223, 0.15);
}

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

/* ============================================================
   HORIZONTAL RULE
   ============================================================ */
hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--spacing-lg) 0;
}

/* ============================================================
   BLOCKQUOTE
   ============================================================ */
blockquote {
    border-left: 4px solid var(--color-accent);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) var(--spacing-lg);
    margin: var(--spacing-md) 0;
    background: #f9f9f9;
    font-style: italic;
    color: var(--color-dark);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: var(--fs-small);
    font-style: normal;
    color: var(--color-body-text);
}

/* ============================================================
   CODE
   ============================================================ */
code, pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--color-dark);
}

pre {
    background: #f4f4f4;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 1.2em;
}

/* ============================================================
   TABLE
   ============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    color: var(--color-heading);
    background: #f8f8f8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--fs-small);
}

tr:hover {
    background: rgba(13, 233, 223, 0.04);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.screen-reader-text:focus {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    clip: auto !important;
    color: var(--color-heading);
    display: block;
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip to content */
.skip-link {
    background: var(--color-accent);
    color: var(--color-dark);
    font-weight: var(--fw-bold);
    left: 0;
    padding: 12px 20px;
    position: absolute;
    top: -100px;
    z-index: 999999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ============================================================
   WORDPRESS ALIGNMENT CLASSES
   ============================================================ */
.alignleft {
    float: left;
    margin: 0 var(--spacing-md) var(--spacing-sm) 0;
}

.alignright {
    float: right;
    margin: 0 0 var(--spacing-sm) var(--spacing-md);
}

.aligncenter {
    display: block;
    margin: 0 auto var(--spacing-sm);
}

.alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.alignwide {
    width: calc(100% + 80px);
    margin-left: -40px;
}

/* ============================================================
   WORDPRESS CAPTION
   ============================================================ */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--fs-small);
    color: var(--color-body-text);
    font-style: italic;
    margin-top: 6px;
}

/* ============================================================
   STICKY POST
   ============================================================ */
.sticky {
    border: 2px solid var(--color-accent);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
    display: grid;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   COMMENT FORM
   ============================================================ */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-author {
    font-weight: var(--fw-bold);
    color: var(--color-heading);
}

.comment-meta {
    font-size: var(--fs-small);
    color: var(--color-body-text);
    margin-bottom: var(--spacing-xs);
}
