/*
Theme Name: Flower Garden
Theme URI: https://flowergarden.sc
Author: Flower Garden Self-Catering Apartments
Description: A custom one-page theme for Flower Garden Self-Catering Apartments, Beau Vallon, Seychelles. Built around four one-bedroom apartments, a guest-review wall (Booking.com + Google) and a spam-protected reservation enquiry form. Signature visual motif: organic "granite boulder" photo frames referencing Beau Vallon's beach boulders, and a five-petal flower mark referencing the Flower Garden name.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: flower-garden
*/

/* =========================================================
   0. DESIGN TOKENS
   ========================================================= */
:root {
	--fg-ink: #17241D;        /* deep tropical charcoal-green */
	--fg-forest: #1F4D3D;     /* primary — deep palm green */
	--fg-forest-dark: #123128;
	--fg-teal: #0F6E73;       /* lagoon teal accent */
	--fg-hibiscus: #C43E20;   /* signature coral-hibiscus accent */
	--fg-hibiscus-dark: #A22F16;
	--fg-gold: #C79A46;       /* stars / rating */
	--fg-sand: #F3EEE1;       /* page background */
	--fg-cream: #FBF8F2;      /* card background */
	--fg-line: rgba(23,36,29,0.12);

	--fg-font-display: 'Fraunces', Georgia, serif;
	--fg-font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--fg-radius: 22px;
	--fg-container: 1200px;
	--fg-shadow: 0 20px 45px -25px rgba(18, 49, 40, 0.45);
}

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
	margin: 0;
	font-family: var(--fg-font-body);
	color: var(--fg-ink);
	background: var(--fg-sand);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}
.fg-skip-link {
	position: absolute; left: -999px; top: 0; z-index: 1000;
	background: var(--fg-ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.fg-skip-link:focus { left: 0; }

:focus-visible {
	outline: 3px solid var(--fg-hibiscus);
	outline-offset: 3px;
}

h1, h2, h3, h4 {
	font-family: var(--fg-font-display);
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 0.5em;
	color: var(--fg-forest-dark);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.fg-container { max-width: var(--fg-container); margin: 0 auto; padding: 0 28px; }

.fg-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--fg-font-body);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fg-hibiscus);
	margin-bottom: 14px;
}
.fg-eyebrow-light { color: #E8C79A; }
.fg-eyebrow svg { flex-shrink: 0; }

.fg-section { padding: 100px 0; position: relative; }
.fg-section-tint { background: var(--fg-cream); }
.fg-section-dark { background: var(--fg-forest-dark); color: #F3EEE1; }
.fg-section-dark h2, .fg-heading-light { color: #FBF8F2; }
.fg-section-lead { max-width: 640px; font-size: 1.08rem; color: #45564C; }

/* =========================================================
   2. BUTTONS
   ========================================================= */
.fg-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
	border: 2px solid transparent;
	white-space: nowrap;
}
.fg-btn-primary { background: var(--fg-hibiscus); color: #fff; box-shadow: var(--fg-shadow); }
.fg-btn-primary:hover { background: var(--fg-hibiscus-dark); transform: translateY(-2px); }
.fg-btn-ghost { border-color: var(--fg-forest); color: var(--fg-forest); }
.fg-btn-ghost:hover { background: var(--fg-forest); color: #fff; transform: translateY(-2px); }
.fg-btn-light { background: #F3EEE1; color: var(--fg-forest-dark); }
.fg-btn-light:hover { background: #fff; transform: translateY(-2px); }
.fg-btn-outline-light { border-color: rgba(243,238,225,0.5); color: #F3EEE1; }
.fg-btn-outline-light:hover { border-color: #F3EEE1; background: rgba(243,238,225,0.08); }

/* =========================================================
   3. HEADER
   ========================================================= */
.fg-site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(251,248,242,0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--fg-line);
}
.fg-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; gap: 20px; }
.fg-logo { display: flex; align-items: center; gap: 10px; }
.fg-logo-mark { color: var(--fg-hibiscus); display: inline-flex; }
.fg-logo-mark svg path, .fg-logo-mark svg circle { fill: currentColor; }
.fg-logo-text { font-family: var(--fg-font-display); font-size: 1.35rem; font-weight: 600; color: var(--fg-forest-dark); }
.fg-logo-img { height: 84px; width: auto; }

.fg-primary-nav { display: flex; align-items: center; gap: 28px; }
.fg-nav-menu { display: flex; gap: 26px; }
.fg-nav-menu a {
	font-weight: 500; font-size: 0.98rem; color: var(--fg-ink);
	padding: 6px 2px; border-bottom: 2px solid transparent;
	transition: border-color 0.15s ease, color 0.15s ease;
}
.fg-nav-menu a:hover { color: var(--fg-hibiscus); border-color: var(--fg-hibiscus); }
.fg-nav-cta { padding: 11px 22px; font-size: 0.9rem; }

.fg-nav-toggle {
	display: none; flex-direction: column; gap: 5px;
	background: none; border: none; padding: 8px;
}
.fg-nav-toggle span { width: 24px; height: 2px; background: var(--fg-ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.fg-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fg-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fg-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   4. HERO
   ========================================================= */
.fg-hero { padding: 72px 0 0; overflow: hidden; }
.fg-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-bottom: 70px; }
.fg-hero-copy h1 { margin-bottom: 0.4em; }
.fg-hero-text { font-size: 1.12rem; color: #45564C; max-width: 520px; }
.fg-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 34px; }
.fg-hero-rating { display: flex; align-items: center; gap: 16px; font-size: 0.92rem; color: #45564C; }
.fg-score { font-family: var(--fg-font-display); font-size: 2.2rem; color: var(--fg-forest); background: var(--fg-cream); border: 1px solid var(--fg-line); border-radius: 14px; padding: 6px 16px; }

.fg-hero-visual { position: relative; }
.fg-hero-blob { width: 100%; height: auto; }
.fg-hero-badge {
	position: absolute; bottom: 6%; left: -6%;
	background: #fff; border-radius: 999px; padding: 12px 20px;
	display: inline-flex; align-items: center; gap: 8px;
	font-weight: 600; font-size: 0.85rem;
	box-shadow: var(--fg-shadow);
	color: var(--fg-hibiscus);
}
.fg-hero-badge svg { color: var(--fg-hibiscus); }

/* =========================================================
   5. DIVIDER (signature flower motif)
   ========================================================= */
.fg-divider { position: relative; height: 1px; background: var(--fg-line); margin: 0 auto; max-width: var(--fg-container); }
.fg-divider span {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	background: var(--fg-sand); padding: 0 18px; color: var(--fg-hibiscus); display: inline-flex;
}
.fg-section-tint + .fg-section .fg-divider span,
.fg-divider-v2 span { background: var(--fg-cream); }
.fg-divider-v3 span { background: var(--fg-sand); }

/* =========================================================
   6. APARTMENTS — boulder-blob photo frames
   ========================================================= */
.fg-apartment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; margin-top: 50px; }
.fg-card { background: var(--fg-cream); border-radius: var(--fg-radius); padding: 26px; border: 1px solid var(--fg-line); }

.fg-blob-frame { position: relative; width: 100%; aspect-ratio: 1 / 1; margin-bottom: 18px; overflow: hidden; }
.fg-blob-frame img { width: 100%; height: 100%; object-fit: cover; }
.fg-blob-v1 { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.fg-blob-v2 { border-radius: 58% 42% 39% 61% / 55% 38% 62% 45%; }
.fg-blob-v3 { border-radius: 38% 62% 55% 45% / 46% 55% 45% 54%; }
.fg-blob-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--fg-teal), var(--fg-forest));
	color: rgba(255,255,255,0.85);
}

.fg-apartment-card h3 { margin-bottom: 4px; }
.fg-apartment-meta { font-size: 0.88rem; color: var(--fg-teal); font-weight: 600; margin-bottom: 10px; }
.fg-apartment-excerpt { font-size: 0.92rem; color: #45564C; }
.fg-showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin: 50px 0 44px; }
.fg-showcase-photo { aspect-ratio: 1 / 1; }
.fg-showcase-photo img { width: 100%; height: 100%; object-fit: cover; }
.fg-showcase-grid .fg-showcase-photo:first-child { grid-column: span 2; grid-row: span 2; }
.fg-amenity-list-wide { display: grid; grid-template-columns: repeat(6, auto); justify-content: start; gap: 12px 32px; margin-top: 8px; }
.fg-amenity-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.fg-amenity-list li { font-size: 0.88rem; padding-left: 20px; position: relative; color: var(--fg-ink); }
.fg-amenity-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--fg-hibiscus); }
.fg-amenity-list-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; margin: 24px 0; }
.fg-placeholder-note { margin-top: 14px; font-size: 0.78rem; color: #8A9A8F; font-style: italic; }

/* =========================================================
   7. FACILITIES
   ========================================================= */
.fg-facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.fg-facility { padding: 30px 8px; border-top: 2px solid var(--fg-hibiscus); }
.fg-facility-icon { font-size: 1.8rem; display: block; margin-bottom: 14px; }
.fg-facility p { font-size: 0.92rem; color: #45564C; margin: 0; }

/* =========================================================
   8. GALLERY
   ========================================================= */
.fg-gallery-item { width: 300px; height: 300px; flex: 0 0 auto; border-radius: 16px; overflow: hidden; background: var(--fg-cream); border: 1px solid var(--fg-line); transition: transform 0.2s ease; }
.fg-gallery-item a { display: block; width: 100%; height: 100%; }
.fg-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.fg-gallery-item:hover img { transform: scale(1.04); }
.fg-gallery-more { margin-top: 24px; }
.fg-gallery-more a { font-weight: 600; color: var(--fg-hibiscus); }

.fg-marquee-wrap {
	overflow: hidden;
	margin-top: 12px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.fg-marquee-track { display: flex; gap: 20px; width: max-content; padding: 0 28px; animation: fg-marquee 42s linear infinite; }
.fg-marquee-track.fg-marquee-reverse { animation-direction: reverse; animation-duration: 55s; }
.fg-marquee-track:hover { animation-play-state: paused; }
@keyframes fg-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .fg-marquee-track { animation: none; } }

.fg-lightbox-overlay {
	position: fixed; inset: 0; background: rgba(18,49,40,0.92); z-index: 999;
	display: flex; align-items: center; justify-content: center; padding: 40px;
	opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.fg-lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }
.fg-lightbox-overlay img { max-width: 90vw; max-height: 85vh; border-radius: 12px; }
.fg-lightbox-close { position: absolute; top: 28px; right: 34px; background: none; border: none; color: #fff; font-size: 2rem; line-height: 1; }

/* =========================================================
   9. REVIEWS
   ========================================================= */
.fg-rating-summary { display: flex; align-items: center; gap: 20px; margin: 34px 0 46px; }
.fg-score-light { background: rgba(255,255,255,0.06); color: #FBF8F2; border-color: rgba(255,255,255,0.15); }
.fg-rating-summary p { margin: 4px 0 0; color: rgba(251,248,242,0.75); font-size: 0.92rem; }

.fg-stars { display: inline-flex; gap: 2px; color: var(--fg-gold); }
.fg-star { width: 16px; height: 16px; }

.fg-review-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 18px; padding: 26px;
	width: 380px; flex: 0 0 auto;
}
.fg-review-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fg-badge { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; }
.fg-badge-booking { background: #003580; color: #fff; }
.fg-badge-google { background: #fff; color: #4285F4; }
.fg-badge-direct { background: var(--fg-hibiscus); color: #fff; }
.fg-review-text { font-family: var(--fg-font-display); font-size: 1.05rem; line-height: 1.5; color: #FBF8F2; }
.fg-review-author { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: rgba(251,248,242,0.65); margin-top: 16px; }
.fg-review-author strong { color: #FBF8F2; }
.fg-review-link { display: inline-block; margin-top: 10px; font-size: 0.8rem; font-weight: 600; color: #E8C79A; }
.fg-review-empty { grid-column: 1 / -1; background: rgba(255,255,255,0.05); border-radius: 16px; padding: 40px; text-align: center; color: rgba(251,248,242,0.75); }
.fg-review-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 46px; }

/* =========================================================
   10. LOCATION
   ========================================================= */
.fg-location-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.fg-location-line { font-weight: 600; margin: 6px 0; }
.fg-map-frame { border-radius: var(--fg-radius); overflow: hidden; box-shadow: var(--fg-shadow); border: 1px solid var(--fg-line); }
.fg-map-frame iframe { display: block; }

/* =========================================================
   11. BOOK / CONTACT FORM
   ========================================================= */
.fg-book-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.fg-form-card { background: var(--fg-cream); border: 1px solid var(--fg-line); border-radius: var(--fg-radius); padding: 34px; box-shadow: var(--fg-shadow); }
.fg-contact-form h3 { margin-bottom: 20px; }
.fg-form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.fg-form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg-form-row label { font-size: 0.85rem; font-weight: 600; color: var(--fg-forest-dark); }
.fg-form-row input, .fg-form-row select, .fg-form-row textarea {
	font-family: var(--fg-font-body); font-size: 0.96rem;
	padding: 12px 14px; border-radius: 10px; border: 1px solid var(--fg-line);
	background: #fff; color: var(--fg-ink);
}
.fg-form-row input:focus, .fg-form-row select:focus, .fg-form-row textarea:focus { border-color: var(--fg-teal); }
.fg-form-submit { width: 100%; margin-top: 6px; }
.fg-form-fine-print { font-size: 0.76rem; color: #8A9A8F; margin-top: 14px; }
.fg-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fg-form-notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: 0.92rem; font-weight: 600; }
.fg-form-success { background: rgba(15,110,115,0.12); color: var(--fg-teal); }
.fg-form-error { background: rgba(196,62,32,0.1); color: var(--fg-hibiscus-dark); }

/* =========================================================
   12. FOOTER
   ========================================================= */
.fg-site-footer { background: var(--fg-forest-dark); color: rgba(251,248,242,0.8); padding: 64px 0 0; }
.fg-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.fg-footer-brand .fg-logo-mark { color: #E8C79A; }
.fg-footer-name { font-family: var(--fg-font-display); font-size: 1.2rem; color: #fff; margin: 10px 0 6px; }
.fg-footer-tag { font-size: 0.88rem; }
.fg-footer-col h3 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; font-family: var(--fg-font-body); font-weight: 700; letter-spacing: 0.03em; }
.fg-footer-col p { font-size: 0.9rem; margin-bottom: 8px; }
.fg-footer-col a:hover { color: #E8C79A; }
.fg-footer-bottom { padding: 22px 0; font-size: 0.8rem; text-align: center; color: rgba(251,248,242,0.5); }

/* =========================================================
   13. GENERIC PAGE FALLBACK
   ========================================================= */
.fg-page-main { padding: 90px 0; }
.fg-page-content { max-width: 800px; }
.fg-single-image { border-radius: var(--fg-radius); overflow: hidden; margin: 20px 0; }

/* =========================================================
   14. SCROLL REVEAL
   ========================================================= */
.fg-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fg-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   15. RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
	.fg-hero-grid, .fg-location-grid, .fg-book-grid { grid-template-columns: 1fr; }
	.fg-hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
	.fg-apartment-grid { grid-template-columns: repeat(2, 1fr); }
	.fg-facility-grid { grid-template-columns: repeat(2, 1fr); }
	.fg-showcase-grid { grid-template-columns: repeat(3, 1fr); }
	.fg-showcase-grid .fg-showcase-photo:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 2/1; }
	.fg-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.fg-nav-toggle { display: flex; }
	.fg-primary-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--fg-cream); border-bottom: 1px solid var(--fg-line);
		flex-direction: column; align-items: stretch; padding: 20px 28px 28px;
		display: none; gap: 18px;
	}
	.fg-primary-nav.is-open { display: flex; }
	.fg-nav-menu { flex-direction: column; gap: 14px; }
	.fg-nav-cta { text-align: center; }
	.fg-logo-img { height: 58px; }

	.fg-section { padding: 64px 0; }
	.fg-apartment-grid { grid-template-columns: 1fr; }
	.fg-showcase-grid { grid-template-columns: repeat(2, 1fr); }
	.fg-showcase-grid .fg-showcase-photo:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 2/1; }
	.fg-amenity-list-wide { grid-template-columns: repeat(2, auto); }
	.fg-facility-grid { grid-template-columns: 1fr; }
	.fg-gallery-item { width: 220px; height: 220px; }
	.fg-review-card { width: 300px; }
	.fg-form-row-split { grid-template-columns: 1fr; }
	.fg-footer-grid { grid-template-columns: 1fr; }
	.fg-hero-badge { left: 0; bottom: -18px; }
}
