/*
Theme Name: 360xBali Elegant
Theme URI: https://360xbali.com
Author: 360xBali
Author URI: https://360xbali.com
Description: A polished, corporate, SEO-optimized theme for 360xBali — a Bali-based studio producing 360° virtual tours for hotels, villas, restaurants, cafes and gyms, published to Google Maps & Search. Built to be fast, fully responsive and conversion-focused with clear calls to action.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: 360xbali
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	/* --gold / --gold-dark are the brand accent tokens — now red, name kept to avoid a repo-wide rename */
	--ink: #0a0a0a;
	--ink-2: #1a1a1a;
	--ink-soft: #4d4d4d;
	--gold: #c8102e;
	--gold-dark: #96091f;
	--cream: #ffffff;
	--cream-2: #f5f5f5;
	--white: #ffffff;
	--line: #e2e2e2;
	--success: #2f7d5a;
	--error: #96091f;

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

	--radius-sm: 8px;
	--radius: 16px;
	--radius-lg: 28px;
	--shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.45);
	--shadow-sm: 0 8px 20px -10px rgba(0, 0, 0, 0.3);
	--container: 1200px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.6em;
	color: var(--ink);
	letter-spacing: -0.01em;
}
p { margin: 0 0 1.2em; color: var(--ink-soft); }
button { font-family: inherit; cursor: pointer; }
.x360-icon { width: 20px; height: 20px; flex-shrink: 0; }
input, textarea { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip-link {
	position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
	padding: 12px 20px; z-index: 10000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
section { position: relative; }
.section-pad { padding: clamp(1.5rem, 3vw, 3rem) 0; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--gold-dark); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold); display: inline-block; }
.section-head { max-width: 680px; margin: 0 0 1.8rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.section-head p { font-size: 1.08rem; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px 30px; border-radius: 100px; font-weight: 700; font-size: 0.98rem;
	border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
	white-space: nowrap;
}
.btn .x360-icon { width: 18px; height: 18px; }
.btn-primary { background: var(--gold); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 900;
	padding: 18px 0;
	transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(14px);
	box-shadow: 0 4px 24px rgba(0,0,0,0.08);
	padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; z-index: 2; }
.site-branding img { height: 70px; width: auto; transition: height .3s ease; }
.site-header.is-scrolled .site-branding img { height: 48px; }
.site-branding .site-title {
	font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--ink);
}
.site-branding .logo-light { display: none; }
body.is-home .site-header:not(.is-scrolled) .logo-dark { display: none; }
body.is-home .site-header:not(.is-scrolled) .logo-light { display: block; }
.primary-nav { display: flex; align-items: center; gap: 2.5rem; }
.primary-nav ul { display: flex; gap: 2.2rem; }
.primary-nav a {
	font-weight: 600; font-size: 0.98rem; position: relative; padding: 4px 0; color: var(--ink);
}
.primary-nav a::after {
	content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: var(--gold);
	transition: width .25s ease;
}
.primary-nav a:hover::after, .primary-nav a.current::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .btn { padding: 12px 22px; font-size: 0.92rem; }
.header-call {
	display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem;
}
.header-call .x360-icon { width: 18px; height: 18px; color: var(--gold-dark); }

.nav-toggle {
	display: none; background: none; border: none; padding: 6px; color: inherit; z-index: 2;
}
.nav-toggle .x360-icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* Transparent header on homepage hero, solid elsewhere handled via body classes */
body.is-home .site-header:not(.is-scrolled) { background: transparent; box-shadow: none; }
body.is-home .site-header:not(.is-scrolled) .primary-nav a,
body.is-home .site-header:not(.is-scrolled) .header-call,
body.is-home .site-header:not(.is-scrolled) .nav-toggle { color: #fff; }
body.is-home .site-header:not(.is-scrolled) .primary-nav a::after { background: var(--gold); }
body:not(.is-home) .site-header { background: rgba(255, 255, 255, 0.96); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }

/* ==========================================================================
   5. Mobile nav
   ========================================================================== */
@media (max-width: 960px) {
	.primary-nav {
		position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center;
		transform: translateX(100%); transition: transform .35s ease; padding: 2rem;
	}
	.primary-nav.is-open { transform: translateX(0); }
	.primary-nav ul { flex-direction: column; align-items: center; gap: 1.8rem; }
	.primary-nav a { color: #fff; font-size: 1.4rem; }
	.primary-nav .header-cta { flex-direction: column; margin-top: 2rem; }
	.nav-toggle { display: block; }
	body.is-home .site-header .nav-toggle,
	.site-header .nav-toggle { color: var(--ink); }
	body.is-home .site-header:not(.is-scrolled) .nav-toggle { color: #fff; }
	body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
	position: relative; min-height: 100vh; display: flex; align-items: center;
	color: #fff; overflow: hidden; background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video, .hero-media img {
	width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
}
.hero-media::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.72) 55%, rgba(0,0,0,0.92) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; padding-top: 130px; }
.hero-content h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); color: #fff; margin-bottom: 0.5em; }
.hero-content .lede { font-size: 1.2rem; color: rgba(255,255,255,0.88); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 2rem 0 2.4rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1.6rem 2rem; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; color: rgba(255,255,255,0.92); }
.hero-points .x360-icon { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
/* ==========================================================================
   7. Trust badges strip
   ========================================================================== */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); padding: 2rem 0; }
.trust-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.6rem 3.6rem; }
.trust-strip img { height: 62px; width: auto; opacity: 0.95; }
.trust-strip .trust-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* ==========================================================================
   8. How it works
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 2.4rem 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.step-num {
	width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff;
	display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.3rem;
	margin-bottom: 1.4rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step-connector { display: none; }

/* ==========================================================================
   9. Benefit cards
   ========================================================================== */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
#choose-us .benefits { grid-template-columns: repeat(3, 1fr); }
.benefit-card {
	background: var(--white); border-radius: var(--radius); padding: 2.2rem 1.8rem; border: 1px solid var(--line);
	transition: transform .25s ease, box-shadow .25s ease;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.benefit-icon {
	width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(145deg, var(--gold), var(--gold-dark));
	display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.benefit-icon .x360-icon { width: 26px; height: 26px; color: #fff; }
.benefit-card h3 { font-size: 1.12rem; }
.benefit-card p { font-size: 0.96rem; margin-bottom: 0; }

/* ==========================================================================
   10. Portfolio grid + lightbox
   ========================================================================== */
.portfolio-section { background: var(--ink); color: #fff; }
.portfolio-section .section-head h2 { color: #fff; }
.portfolio-section .section-head p { color: rgba(255,255,255,0.72); }
.portfolio-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2.4rem; }
.portfolio-filter button {
	background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.85);
	padding: 9px 18px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; transition: all .2s ease;
}
.portfolio-filter button:hover, .portfolio-filter button.is-active { background: var(--gold); border-color: var(--gold); color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.portfolio-card {
	position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: #000;
	border: none; padding: 0; display: block; width: 100%;
}
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-card::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.92) 100%);
}
.portfolio-card .card-label {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.1rem 1.2rem;
	text-align: left;
}
.portfolio-card .card-label span.loc { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; margin-bottom: 2px; }
.portfolio-card .card-label span.name { display: block; font-weight: 700; font-size: 0.98rem; color: #fff; }
.portfolio-card .zoom-hint {
	position: absolute; top: 12px; right: 12px; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
	background: rgba(255,255,255,0.15); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
	opacity: 0; transform: translateY(-6px); transition: all .25s ease;
}
.portfolio-card:hover .zoom-hint { opacity: 1; transform: translateY(0); }
.zoom-hint .x360-icon { width: 16px; height: 16px; color: #fff; }
.portfolio-more { text-align: center; margin-top: 2.6rem; }

.lightbox {
	position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.94);
	display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
	opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img { border-radius: var(--radius); max-height: 82vh; margin: 0 auto; width: auto; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 1rem; font-weight: 600; }
.lightbox-close {
	position: absolute; top: 24px; right: 24px; background: rgba(255,255,255,0.1); border: none; color: #fff;
	width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.lightbox-close .x360-icon { width: 22px; height: 22px; }

/* ==========================================================================
   11. CTA banner
   ========================================================================== */
.cta-banner {
	background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
	color: #fff; border-radius: var(--radius-lg); padding: clamp(2.4rem, 5vw, 4.5rem);
	display: flex; align-items: center; justify-content: space-between; gap: 2.4rem; flex-wrap: wrap;
	position: relative; overflow: hidden;
}
.cta-banner::before {
	content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%;
	background: radial-gradient(circle, rgba(200,16,46,0.35), transparent 70%);
	top: -180px; right: -140px;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 560px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 520px; position: relative; }
.cta-banner .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 4.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 40px; margin-bottom: 1.2rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.94rem; }
.footer-social { display: flex; gap: 10px; margin-top: 1rem; }
.footer-social a {
	width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
	display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.footer-social a:hover { background: var(--gold); color: #fff; }
.footer-social .x360-icon { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: 0.98rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.2rem; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 1rem; font-size: 0.94rem; }
.footer-contact .x360-icon { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.6rem 0; font-size: 0.85rem; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--gold); }

/* ==========================================================================
   13. Floating WhatsApp button
   ========================================================================== */
.whatsapp-float {
	position: fixed; bottom: 24px; right: 24px; z-index: 800;
	width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(0,0,0,0.25);
	transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .x360-icon { width: 30px; height: 30px; }
.whatsapp-float .pulse {
	position: absolute; inset: 0; border-radius: 50%; background: #25D366; opacity: 0.6;
	animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.9); opacity: 0; } }

/* ==========================================================================
   14. Inner page header (Portfolio, Contact, generic pages, 404)
   ========================================================================== */
.page-hero {
	background: var(--ink); color: #fff; padding: clamp(8rem, 16vw, 11rem) 0 clamp(3rem, 6vw, 4.5rem);
	text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
	content: ''; position: absolute; inset: 0;
	background: radial-gradient(circle at 20% 20%, rgba(200,16,46,0.18), transparent 55%);
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); position: relative; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; position: relative; }
.breadcrumbs { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 1rem; position: relative; }
.breadcrumbs a:hover { color: var(--gold); }

.entry-content { max-width: 820px; margin: 0 auto; padding: 4rem var(--gutter); }
.entry-content h2 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); }

/* ==========================================================================
   15. Contact page
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: start; }
.contact-cards { display: grid; gap: 1.2rem; margin-bottom: 2rem; }
.contact-card {
	display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 1.4rem 1.6rem;
}
.contact-card .icon-wrap {
	width: 46px; height: 46px; border-radius: 12px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card .icon-wrap .x360-icon { width: 22px; height: 22px; color: var(--gold-dark); }
.contact-card h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-card a, .contact-card span.value { font-weight: 600; color: var(--ink); }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 280px; border: 0; display: block; }

.contact-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.form-group input, .form-group textarea {
	width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
	background: var(--cream); transition: border-color .2s ease, background .2s ease;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); background: #fff; outline: none; }
.form-group textarea { resize: vertical; min-height: 140px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1rem; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-weight: 600; font-size: 0.94rem; }
.form-alert.success { background: #e4f3ec; color: var(--success); }
.form-alert.error { background: #fbe9e4; color: var(--error); }

/* ==========================================================================
   16. Utility / scroll animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* 404 */
.error-404 { text-align: center; padding: 6rem var(--gutter); }
.error-404 .code { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 8rem); color: var(--gold); line-height: 1; }

/* ==========================================================================
   17. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.benefits, #choose-us .benefits { grid-template-columns: repeat(2, 1fr); }
	.portfolio-grid { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.steps { grid-template-columns: 1fr; }
	.contact-layout { grid-template-columns: 1fr; }
	.header-call { display: none; }
}
@media (max-width: 720px) {
	.portfolio-grid { grid-template-columns: repeat(2, 1fr); }
	.form-row { grid-template-columns: 1fr; }
	.cta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
	.trust-strip img { height: 42px; }
}
@media (max-width: 560px) {
	.benefits, #choose-us .benefits { grid-template-columns: 1fr; }
	.portfolio-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.hero-content { padding-top: 100px; }
	.whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
	.site-branding img { height: 52px; }
}
