/*
Theme Name: Hone Zone
Author: Fahri
Description: Tema Situs Hone Zone.
Version: 1.0
*/

:root {
    --primary: #607d8b;
    --primary-light: #b8cdd8;
    --secondary: #eceff1;
    --accent: #009688;
    --accent-light: #40e0d0;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #263238;
    --text-light: #777;
    --text-dark: #222;
    --text-muted: #bdc3c7;
    --link-active: #0073aa;
    --white: #fff;
    --border-light: #ddd;
    --border-footer: #34495e;
    --gray-light: #f0f0f0;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --transition-speed: 0.3s;
    --shadow-soft: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
	--spacing-sm: 0.5rem;
    --max-width: 1200px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    background: linear-gradient(rgba(240, 250, 250, 0.925), rgba(250, 240, 250, 0.925)), url("https://honezone.id/wp-content/uploads/2025/09/page_background.png");
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

/* Navigation Bar */
.desktop-only {
    display: none;
}

.mobile-only {
    display: block;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: var(--white);
    box-shadow: 0 4px 12px var(--shadow-hover);
    font-family: var(--font-family);
    color: var(--text-dark);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform var(--transition-speed) ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo {
    height: 40px;
    width: auto;
    display: block;
}

.site-title,
.mobile-header .header-left {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
}

.header-nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.header-nav .menu-item a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    /* transition: color var(--transition-speed) ease; */
}

.header-nav .current-menu-item>a,
.header-nav .current-menu-parent>a,
.header-nav .current-menu-ancestor>a {
    color: var(--link-active) !important;
}

.header-nav .menu-underline {
    position: absolute;
    bottom: -4px;
    height: 2px;
    background: var(--link-active);
    transition: all var(--transition-speed) ease;
}

.header-right {
    position: relative;
}

.kebab-menu-btn {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.25rem 0.5rem;
    transition: color var(--transition-speed) ease;
}

.kebab-menu-btn:hover,
.kebab-menu-btn:focus {
    color: var(--link-active);
}

.mobile-menu {
    position: absolute;
    top: 2.5rem;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    box-shadow: 0 4px 8px var(--shadow-soft);
    transform-origin: top right;
    width: 160px;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    animation-fill-mode: forwards;
}

.mobile-menu.show {
    animation: zoomFadeIn 0.3s forwards;
    pointer-events: auto;
}

.mobile-menu:not(.show) {
    animation: zoomFadeOut 0.3s forwards;
    pointer-events: none;
}

.mobile-menu .menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.mobile-menu .menu-item a {
    display: block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: background-color var(--transition-speed) ease;
}

.mobile-menu .menu-item a:hover,
.mobile-menu .menu-item a:focus {
    background-color: var(--gray-light);
}

/* Typography */
h1,
h2,
h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}

.fa-language {
  font-size: 4em !important;
}

/* Contact Button */
.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-icon {
    filter: brightness(0) invert(1);
}

.modern-btn .btn-text {
    position: relative;
}

.sticky-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Section Box */
.section-box {
    padding: 60px 20px;
    text-align: center;
}

.section-box h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 40px;
    position: relative;
    border-bottom: 2px solid var(--text);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.value-prop {
    padding: 4rem 1rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Featured Programs */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:focus {
    outline: 3px solid #4a90e2;
    outline-offset: 2px;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.card i {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 15px;
    display: block;
    transition: color 0.3s ease;
}

.card:hover i {
    color: #357abd;
}

.card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.card .description {
    color: #666;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    text-align: center;
    margin-bottom: 20px;
}

.card.article {
    padding: 0;
    align-items: stretch;
}

.card.article a {
    text-decoration: none;
    color: inherit;
}

.card, .card img {
    max-width: 400px;
}

.card img {
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

.card h3, 
.card .description {
    padding-left: 20px;
    padding-right: 20px;
}

.section-box:has(#featured-programs-title) .card div {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-box:has(#top-articles) a {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.section-box:has(#top-articles) a div:has(.description) {
    flex: 1;
    display: grid;
    place-items: center;
}

.section-box:has(#top-articles) .description {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    line-clamp: 10;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-box:has(#top-articles) .description .title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 6px var(--shadow-soft);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background-color var(--transition-speed);
}

.btn:hover,
.btn:focus-visible {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-hover);
    outline-offset: 3px;
}

.btn:focus-visible {
    outline-style: solid;
}

.btn-primary {
    background-color: var(--primary);
}

.btn-accent {
    background-color: var(--accent-light);
    color: var(--text);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 0.8rem 2rem;
}

.btn-accent:hover,
.btn-accent:focus-visible {
    /*color: var(--white);*/
    transform: translateY(-2px);
    outline: none;
    /*box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);*/
}

.cta-btn {
	/*width: 100%;*/
	padding: var(--spacing-sm);
	background: var(--primary);
	color: white;
	border: none;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-size: 1rem;
    font-weight: 700;
	text-decoration: none;
	transition: var(--transition);
}

.cta-btn:hover/*,
.cta-btn:focus*/ {
	/*background: #0056b3;*/
	transform: translateY(-1px);
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Call to Action */
.call-to-action {
    padding: 4rem 2rem;
    background-color: var(--primary);
    border-radius: var(--border-radius);
    text-align: center;
    margin: 3rem 0;
    animation: fadeSlideUp 1s ease forwards;
    animation-delay: 1.9s;
}

.call-to-action h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1.8rem;
    color: var(--white);
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Footer */
footer {
    /*background: var(--dark);*/
    color: var(--white);
    /*padding: 3rem 0 1rem;*/
    position: relative;
    padding-top: 120px; /* ruang untuk wave */
    overflow: hidden;
}

.footer-bg-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
}

.footer-bg-wave svg {
    width: max(100%, var(--max-width));
    height: 100%;
    display: block;
    object-fit: none;
    object-position: right;
    transform: translateY(5px);
}

.footer-container {
    position: relative;
    z-index: 2;
    background-color: var(--dark);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-footer);
    color: var(--white) !important;
}

@media (max-width: 480px) {
    .value-prop h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .cards {
        display: grid;
        grid-template-columns: 1fr;
        /* gap: var(--spacing-md); */
    }

    .card {
        padding: 25px 15px;
        margin: 0 auto;
        width: 100%;
    }

    .card i {
        font-size: 2.5rem;
    }

    .call-to-action {
        padding: 2.5rem 1.5rem;
    }

    .call-to-action h2 {
        font-size: 1.6rem;
    }
}

/* Tablet: 2 kolom */
@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }

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

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #90a4ae;
    --primary-light: #455a64;
    --secondary: #1e272e;
    --accent: #26a69a;
    --accent-light: #4dd0c8;

    --light: #121212;
    --dark: #eceff1;

    --text: #e0e0e0;
    --text-light: #b0bec5;
    --text-dark: #ffffff;
    --text-muted: #78909c;

    --link-active: #4fc3f7;
    --white: #1a1a1a;

    --border-light: #2c2c2c;
    --border-footer: #263238;

    --gray-light: #1c1c1c;

    --shadow-soft: rgba(0, 0, 0, 0.6);
    --shadow-hover: rgba(0, 0, 0, 0.8);
  }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary: #455a64;
        --accent: #f44336;
        --shadow-soft: rgba(0, 0, 0, 0.3);
    }

    .card {
        border: 1px solid var(--primary-light);
    }
}

@keyframes zoomFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}