/*
Theme Name: The Oak's
Theme URI: https://oaks.dusita-office.ch
Author: The Oak's
Description: Block theme for The Oak's guesthouse in Chiang Rai. Ink, evening blue, brass and ivory, with the oak leaf as ornament.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: theoaks
*/

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
em { font-style: italic; }

/* Small uppercase label above headings */
.oaks-eyebrow { font-size: 13px !important; letter-spacing: 0.3em; text-transform: uppercase; color: var(--wp--preset--color--brass-dark); margin-bottom: 0 !important; }
.has-navy-background-color .oaks-eyebrow, .oaks-on-dark .oaks-eyebrow { color: var(--wp--preset--color--gold); }
.oaks-muted { color: var(--wp--preset--color--muted); }
.has-navy-background-color .oaks-muted { color: #DCD6C8; }
h1 em, h2 em { color: var(--wp--preset--color--brass-dark); }
.has-navy-background-color h1 em, .has-navy-background-color h2 em { color: var(--wp--preset--color--gold); }

/* Header */
.oaks-header { border-bottom: 1px solid #E2D7C2; }
.oaks-brand { display: flex; align-items: center; gap: 14px; text-decoration: none !important; }
.oaks-brand img { width: 40px; height: 44px; }
.oaks-brand .oaks-word { display: flex; flex-direction: column; line-height: 1.15; }
.oaks-brand .oaks-name { font-family: var(--wp--preset--font-family--body); font-weight: 500; font-size: 24px; letter-spacing: 0.16em; color: var(--wp--preset--color--ink); }
.oaks-brand .oaks-place { font-size: 10px; letter-spacing: 0.34em; color: #5A5446; }
.oaks-header .wp-block-navigation a { text-decoration: none; }
.oaks-header .wp-block-button__link { padding: 12px 24px; }

/* Buttons */
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--navy); border: 1px solid var(--wp--preset--color--navy); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--ivory); }
.wp-block-button.is-style-brass .wp-block-button__link { background: var(--wp--preset--color--brass); color: var(--wp--preset--color--ink); }

/* Images */
.wp-block-image.is-style-frame { padding: 10px; border: 1px solid var(--wp--preset--color--brass); border-radius: 32px; box-sizing: border-box; }
.wp-block-image.is-style-frame img { border-radius: 24px; width: 100%; object-fit: cover; display: block; }
.has-navy-background-color .wp-block-image.is-style-frame { border-color: var(--wp--preset--color--gold); }
.wp-block-image.is-style-soft img { border-radius: 28px; width: 100%; object-fit: cover; display: block; }
.wp-block-image.is-style-circle { padding: 10px; border: 1px solid var(--wp--preset--color--gold); border-radius: 50%; aspect-ratio: 1 / 1; box-sizing: border-box; max-width: 440px; margin-inline: auto; }
.wp-block-image.is-style-circle img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; display: block; }
.oaks-h-600 img { height: 600px; } .oaks-h-560 img { height: 560px; } .oaks-h-520 img { height: 520px; }
.oaks-h-440 img { height: 440px; } .oaks-h-400 img { height: 400px; }

/* Oak leaf ornaments */
.oaks-divider { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0; }
.oaks-divider::before, .oaks-divider::after { content: ""; height: 1px; flex: 0 1 120px; background: var(--wp--preset--color--brass); }
.oaks-divider span { width: 64px; height: 34px; background: url(assets/leaf-divider.svg) center / contain no-repeat; }
.oaks-divider.is-left { justify-content: flex-start; }
.oaks-divider.is-left::before { display: none; }
.oaks-divider.is-wide::before, .oaks-divider.is-wide::after { flex-basis: 360px; }
.oaks-watermark { position: relative; overflow: hidden; }
.oaks-watermark > * { position: relative; z-index: 1; }
.oaks-watermark::before { content: ""; position: absolute; z-index: 0; pointer-events: none; background: url(assets/leaf-brass.svg) center / contain no-repeat; opacity: 0.12; width: 620px; height: 930px; left: -170px; top: -120px; }
.oaks-watermark.is-right::before { left: auto; right: -140px; top: auto; bottom: -220px; transform: rotate(-24deg); }
.oaks-watermark.is-gold::before { background-image: url(assets/leaf-gold.svg); opacity: 0.08; }
.oaks-watermark.is-form::before { opacity: 0.16; width: 560px; height: 840px; left: auto; right: 2%; top: 50%; transform: translateY(-50%) rotate(22deg); }
.oaks-hero-image { position: relative; }
.oaks-hero-image::before { content: ""; position: absolute; right: -110px; top: -70px; width: 460px; height: 690px; background: url(assets/leaf-outline.svg) center / contain no-repeat; transform: rotate(18deg); z-index: 0; }
.oaks-hero-image > * { position: relative; z-index: 1; }

/* Rating medallion */
.oaks-medallion { position: absolute; left: 0; bottom: 40px; z-index: 2; width: 150px; height: 150px; border-radius: 50%; background: var(--wp--preset--color--navy); color: #F5F0E6; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--wp--preset--color--sand), 0 0 0 7px var(--wp--preset--color--brass); text-align: center; }
.oaks-medallion b { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 46px; line-height: 1; }
.oaks-medallion small { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wp--preset--color--gold); margin-top: 6px; }
.oaks-medallion span { font-size: 12px; color: #CFC7B6; }

/* Cards, facts, reviews */
.oaks-card { background: var(--wp--preset--color--sand); border-radius: 32px; padding: 14px 14px 36px !important; }
.oaks-card h3, .oaks-card p { padding-inline: 18px; }
.oaks-fact { background: var(--wp--preset--color--sand); border-radius: 18px; padding: 20px 22px !important; }
.oaks-fact .oaks-num { font-family: var(--wp--preset--font-family--display); font-size: 32px; line-height: 1.1; margin: 0; }
.oaks-fact p { margin: 0; }
.oaks-review { border: 1px solid #3C4A5E; border-radius: 24px; padding: 36px 30px !important; }
.oaks-review blockquote, .oaks-review p.oaks-quote { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 24px; line-height: 1.4; margin: 0; }
.oaks-review cite, .oaks-review .oaks-who { font-style: normal; font-size: 15px; color: #CFC7B6; }
.oaks-score { font-family: var(--wp--preset--font-family--display); font-size: 80px; line-height: 1; color: var(--wp--preset--color--gold); margin: 0; }
.oaks-leaf-list { list-style: none; padding: 0; }
.oaks-leaf-list li { padding-left: 28px; margin-bottom: 10px; background: url(assets/leaf-brass.svg) left 0.45em / 13px 19px no-repeat; }
.has-navy-background-color .oaks-leaf-list li { background-image: url(assets/leaf-gold.svg); }
.oaks-facts dl, dl.oaks-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
dl.oaks-details > div { border-top: 1px solid #E2D7C2; padding: 14px 0; }
dl.oaks-details dt { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #5A5446; }
dl.oaks-details dd { margin: 2px 0 0; }

/* Gallery */
.oaks-gallery .wp-block-image img { border-radius: 22px; aspect-ratio: 4 / 3; object-fit: cover; }

/* Request form */
.oaks-form { background: rgba(251, 248, 242, 0.92); box-shadow: 0 20px 50px rgba(31, 43, 61, 0.08); border-radius: 28px; padding: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.oaks-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
.oaks-form .oaks-full { grid-column: 1 / -1; }
.oaks-form input, .oaks-form textarea { font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; padding: 12px 16px; border: 1px solid #CFC3AC; border-radius: 12px; background: #fff; color: var(--wp--preset--color--ink); }
.oaks-form button { justify-self: start; font: inherit; background: var(--wp--preset--color--brass); color: var(--wp--preset--color--ink); border: 0; padding: 15px 30px; border-radius: 999px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.oaks-form button:hover { background: var(--wp--preset--color--gold); }
.oaks-form .oaks-hp { position: absolute; left: -9999px; }
.oaks-notice { grid-column: 1 / -1; padding: 14px 18px; border-radius: 12px; background: #E9F0E4; }
.oaks-notice.is-error { background: #F6E2DC; }

/* Footer */
.oaks-footer a { color: #CFC7B6; }
.oaks-footer .oaks-divider span { background-image: url(assets/leaf-divider.svg); }
.oaks-footer .oaks-brand .oaks-name { color: #F5F0E6; font-size: 26px; }
.oaks-footer .oaks-brand img { width: 48px; height: 53px; }

/* Blog */
.oaks-post-card img { border-radius: 22px; aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 781px) {
  .oaks-h-600 img, .oaks-h-560 img, .oaks-h-520 img { height: 420px; }
  .oaks-hero-image::before { display: none; }
  .oaks-medallion { width: 120px; height: 120px; bottom: 16px; }
  .oaks-medallion b { font-size: 36px; }
  .oaks-form { grid-template-columns: 1fr; padding: 24px; }
  dl.oaks-details { grid-template-columns: 1fr; }
  .oaks-watermark::before { opacity: 0.08; }
}

/* Layout helpers */
.oaks-section { padding-top: 104px !important; padding-bottom: 104px !important; }
.oaks-section-sm { padding-top: 64px !important; padding-bottom: 64px !important; }
.oaks-center { text-align: center; }
.oaks-center .oaks-divider, .oaks-center .wp-block-buttons { justify-content: center; }
.oaks-narrow { max-width: 620px; margin-inline: auto !important; }
.wp-site-blocks > main { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
@media (max-width: 781px) { .oaks-section { padding-top: 64px !important; padding-bottom: 64px !important; } }

/* 1.0.1 fixes */
.wp-block-post-content > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-block-post-content > .wp-block-columns { margin-block: 0 !important; }
dl.oaks-details { margin-top: 28px; }
.oaks-fact h3 { font-size: 26px; margin: 14px 0 10px; line-height: 1.2; }
.oaks-fact { padding: 26px 30px 30px !important; }
