/*
Theme Name: Sudut Wisata
Theme URI: https://sudutwisata.com/
Author: Sudut Wisata
Description: Tema WordPress ringan, responsif, dan SEO-friendly untuk portal wisata Indonesia dengan nuansa hijau toska.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sudutwisata
Tags: blog, news, travel, custom-logo, featured-images, threaded-comments, translation-ready
*/

:root {
	--sw-ink: #172033;
	--sw-muted: #667085;
	--sw-brand: #0f766e;
	--sw-brand-dark: #115e59;
	--sw-brand-light: #e8f7f4;
	--sw-soft: #f5f9f8;
	--sw-line: #e5e9ee;
	--sw-white: #fff;
	--sw-radius: 18px;
	--sw-shadow: 0 16px 42px rgba(23, 32, 51, .08);
	--sw-max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	color: var(--sw-ink);
	background: var(--sw-white);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sw-brand); text-decoration: none; }
a:hover { color: var(--sw-brand-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 3px solid #f59e0b;
	outline-offset: 3px;
}
button, input, textarea { font: inherit; }
p { margin: 0 0 1.1rem; }
.container { width: min(calc(100% - 36px), var(--sw-max)); margin-inline: auto; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	position: fixed; top: 12px; left: 12px; z-index: 99999;
	width: auto; height: auto; padding: 12px 16px; margin: 0;
	clip: auto; background: #fff; color: var(--sw-ink); box-shadow: var(--sw-shadow);
}
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--sw-line);
}
.admin-bar .site-header { top: 32px; }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.custom-logo-link img { max-height: 48px; width: auto; }
.logo { color: var(--sw-ink); font-size: 22px; font-weight: 900; letter-spacing: -1px; line-height: 1.2; }
.logo span { color: var(--sw-brand); }
.site-description { margin: 4px 0 0; color: var(--sw-muted); font-size: 11px; line-height: 1.4; }
.primary-navigation { display: flex; align-items: center; gap: 22px; }
.primary-navigation .menu, .primary-navigation ul {
	display: flex; align-items: center; gap: 22px; padding: 0; margin: 0; list-style: none;
}
.primary-navigation a { color: var(--sw-ink); font-size: 14px; font-weight: 750; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--sw-brand); }
.menu-toggle {
	display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
	border: 1px solid var(--sw-line); border-radius: 12px; color: var(--sw-ink); background: #fff;
	cursor: pointer; font-size: 22px;
}
.button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 19px; border: 0; border-radius: 12px; background: var(--sw-brand);
	color: #fff; font-weight: 800; line-height: 1.4; cursor: pointer; transition: .2s ease;
}
.button:hover, .wp-block-button__link:hover { background: var(--sw-brand-dark); color: #fff; transform: translateY(-1px); }
.button-light { background: #fff; color: var(--sw-brand); border: 1px solid var(--sw-line); }
.button-light:hover { background: var(--sw-brand-light); color: var(--sw-brand-dark); }
.hero { overflow: hidden; padding: 78px 0 72px; background: linear-gradient(135deg, #e9f8f4 0%, #f7fbfa 55%, #eef4ff 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 54px; align-items: center; }
.eyebrow { display: inline-block; color: var(--sw-brand); font-size: 12px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 14px 0 20px; font-size: clamp(38px, 5.7vw, 66px); line-height: 1.06; letter-spacing: -2.7px; }
.hero h1 span { color: var(--sw-brand); }
.hero-copy { max-width: 650px; color: #526071; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-panel {
	position: relative; padding: 30px; border: 1px solid rgba(255,255,255,.8); border-radius: 26px;
	background: rgba(255,255,255,.8); box-shadow: var(--sw-shadow);
}
.hero-panel:before { content: "✦"; position: absolute; top: -18px; right: 25px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: #fff; background: var(--sw-brand); font-size: 24px; transform: rotate(8deg); }
.hero-panel h2 { margin: 0 0 10px; font-size: 23px; line-height: 1.3; }
.hero-panel p { color: var(--sw-muted); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-tags span { padding: 7px 11px; border-radius: 99px; background: var(--sw-brand-light); color: var(--sw-brand-dark); font-size: 12px; font-weight: 800; }
.section { padding: 68px 0; }
.section-soft { background: var(--sw-soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(27px, 3.5vw, 36px); letter-spacing: -1.2px; line-height: 1.2; }
.section-heading p { max-width: 650px; margin: 8px 0 0; color: var(--sw-muted); }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.category-link { display: flex; flex-direction: column; gap: 8px; min-height: 126px; padding: 20px; border: 1px solid var(--sw-line); border-radius: 16px; background: #fff; transition: .2s ease; }
.category-link:hover { border-color: #a8d9d2; box-shadow: var(--sw-shadow); transform: translateY(-3px); }
.category-icon { font-size: 25px; line-height: 1.2; }
.category-link strong { color: var(--sw-ink); font-size: 15px; }
.category-link small { color: var(--sw-muted); font-size: 12px; line-height: 1.5; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { min-width: 0; overflow: hidden; border: 1px solid var(--sw-line); border-radius: var(--sw-radius); background: #fff; transition: .2s ease; }
.post-card:hover { box-shadow: var(--sw-shadow); transform: translateY(-3px); }
.post-card-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #dff3ef, #dbeafe); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--sw-brand); font-size: 14px; font-weight: 900; }
.post-card-body { padding: 22px; }
.post-meta { margin-bottom: 9px; color: var(--sw-muted); font-size: 12px; }
.post-meta a { color: var(--sw-brand); font-weight: 750; }
.post-card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.32; letter-spacing: -.4px; }
.post-card h3 a { color: var(--sw-ink); }
.post-card h3 a:hover { color: var(--sw-brand); }
.post-card p { color: var(--sw-muted); font-size: 14px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--sw-brand); font-size: 14px; font-weight: 850; }
.read-more:hover { color: var(--sw-brand-dark); }
.empty-state { padding: 30px; border: 1px dashed var(--sw-line); border-radius: 16px; color: var(--sw-muted); }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 36px; border-radius: 24px; background: var(--sw-brand); color: #fff; }
.cta-panel h2 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; }
.cta-panel p { max-width: 690px; margin: 0; color: rgba(255,255,255,.84); }
.cta-panel .button { flex-shrink: 0; background: #fff; color: var(--sw-brand-dark); }
.archive-header { padding: 54px 0 28px; }
.archive-header h1 { margin: 8px 0; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; letter-spacing: -1.8px; }
.archive-header p { color: var(--sw-muted); }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 35px 0 55px; }
.page-numbers { padding: 9px 14px; border: 1px solid var(--sw-line); border-radius: 10px; color: var(--sw-ink); }
.page-numbers.current, .page-numbers:hover { border-color: var(--sw-brand); background: var(--sw-brand); color: #fff; }
.content-wrap { max-width: 820px; margin-inline: auto; padding-bottom: 70px; }
.entry-header { padding: 48px 0 25px; }
.entry-title { margin: 10px 0 16px; font-size: clamp(35px, 5vw, 56px); line-height: 1.08; letter-spacing: -2px; }
.entry-featured-image { overflow: hidden; margin: 0 0 30px; border-radius: 20px; }
.entry-featured-image img { width: 100%; height: auto; }
.entry-content { overflow-wrap: anywhere; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.8em; margin-bottom: .6em; line-height: 1.3; letter-spacing: -.5px; }
.entry-content h2 { font-size: clamp(25px, 3.5vw, 32px); }
.entry-content h3 { font-size: 23px; }
.entry-content p, .entry-content li { font-size: 17px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { margin: 28px 0; padding: 14px 22px; border-left: 4px solid var(--sw-brand); border-radius: 0 12px 12px 0; background: var(--sw-soft); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--sw-line); text-align: left; }
.entry-content .alignwide { width: min(100% + 120px, 940px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0; padding-top: 25px; border-top: 1px solid var(--sw-line); }
.post-navigation a { font-weight: 800; }
.comments-area { margin-top: 45px; padding-top: 30px; border-top: 1px solid var(--sw-line); }
.comment-list { padding-left: 22px; }
.comment-body { margin-bottom: 20px; padding: 18px; border: 1px solid var(--sw-line); border-radius: 14px; }
.comment-form input:not([type="submit"]), .comment-form textarea, .search-form input[type="search"] {
	width: 100%; padding: 12px 14px; border: 1px solid var(--sw-line); border-radius: 10px; background: #fff;
}
.comment-form label { display: block; margin-bottom: 6px; font-weight: 700; }
.comment-form input[type="submit"], .search-form button { padding: 11px 16px; border: 0; border-radius: 10px; background: var(--sw-brand); color: #fff; font-weight: 800; cursor: pointer; }
.search-form { display: flex; gap: 10px; margin: 24px 0; }
.search-form label { flex: 1; }
.site-footer { margin-top: 25px; padding: 54px 0 24px; background: #111827; color: #d1d5db; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 42px; }
.site-footer h2, .site-footer h3 { margin: 0 0 14px; color: #fff; font-size: 17px; }
.site-footer p { color: #b7c0ce; font-size: 14px; }
.footer-links { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.site-footer a { color: #d1d5db; }
.site-footer a:hover { color: #8de0d3; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 35px; padding-top: 20px; border-top: 1px solid #374151; color: #9ca3af; font-size: 13px; }
.footer-bottom p { margin: 0; }
.alignleft { float: left; margin: .5em 1.5em .8em 0; }
.alignright { float: right; margin: .5em 0 .8em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--sw-muted); font-size: 13px; }
.sticky { display: block; }
.bypostauthor { display: block; }
@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr  .8fr; gap: 28px; }
	.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.post-grid { gap: 17px; }
	.post-card-body { padding: 18px; }
	.primary-navigation .menu, .primary-navigation ul { gap: 14px; }
}
@media (max-width: 760px) {
	.admin-bar .site-header { top: 46px; }
	.nav { min-height: 68px; }
	.menu-toggle { display: inline-flex; }
	.primary-navigation { display: none; position: absolute; top: calc(100% + 1px); left: 16px; right: 16px; padding: 14px; border: 1px solid var(--sw-line); border-radius: 14px; background: #fff; box-shadow: var(--sw-shadow); }
	.primary-navigation.is-open { display: block; }
	.primary-navigation .menu, .primary-navigation ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.primary-navigation li a { display: block; padding: 11px 9px; }
	.hero { padding: 54px 0; }
	.hero-grid { grid-template-columns: 1fr; }
	.hero h1 { letter-spacing: -1.8px; }
	.hero-panel { margin-top: 5px; }
	.section { padding: 52px 0; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
	.cta-panel { align-items: flex-start; flex-direction: column; padding: 28px; }
}
@media (max-width: 540px) {
	.container { width: min(calc(100% - 28px), var(--sw-max)); }
	.site-description { display: none; }
	.logo { font-size: 20px; }
	.hero h1 { font-size: 40px; }
	.hero-copy { font-size: 16px; }
	.hero-panel { padding: 24px; }
	.section-heading { display: block; }
	.category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.category-link { min-height: 112px; padding: 16px; }
	.post-grid { grid-template-columns: 1fr; }
	.post-card-body { padding: 20px; }
	.archive-header { padding-top: 38px; }
	.entry-header { padding-top: 34px; }
	.entry-title { letter-spacing: -1.2px; }
	.entry-content p, .entry-content li { font-size: 16px; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-grid > :first-child { grid-column: auto; }
	.footer-bottom { flex-direction: column; }
	.post-navigation { grid-template-columns: 1fr; }
	.entry-content .alignwide { width: 100%; margin-left: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
