/* ==============================================================================
   SynSpirits / TEQUILA SPIRITS - Official Theme Stylesheet
   Based on class-blue.com (SynSpirits) Design System
   ============================================================================== */

/* Base Variables */
:root {
    --primary-color: #964B00;
    --primary-color-rgb: 150, 75, 0;
    --secondary-color: #4682B4;
    --secondary-color-rgb: 70, 130, 180;
    --background-color: #f9f5f0;
    --dark-color: #111111;
    --text-color: #333333;
    --light-text: #ffffff;
    --card-bg: #ffffff;
    --transition: all 0.3s ease;
    --tq-border: #e8ded0;
    --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
    --font-serif: 'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles (class-blue.com style) */
.btn {
    display: inline-block;
    padding: 12px 34px;
    background: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.btn:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-more {
    background-color: var(--primary-color);
    color: var(--light-text);
    margin-top: 40px;
    font-size: 15px;
}

.btn-more:hover {
    background-color: #7a3900;
}

.btn-read-more {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 8px;
    transition: var(--transition);
}

.btn-read-more:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.text-center {
    text-align: center;
}

/* ==============================================================================
   Header Styles (class-blue.com style)
   ============================================================================== */
#header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 20px 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
}

#header.scrolled {
    background-color: rgba(17, 17, 17, 0.96);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin: 0;
    padding: 0;
}

.logo a {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a span.brand-accent {
    color: #dfaa35;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--light-text);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 6px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: var(--light-text);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.nav-highlight {
    background: rgba(150, 75, 0, 0.85);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.nav-links a.nav-highlight:hover {
    background: var(--secondary-color);
}

.nav-links a.nav-highlight::after {
    display: none;
}

/* Mobile Nav Toggle */
#navBtn {
    display: none;
    position: relative;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1100;
}

#navBtn span,
#navBtn span:before,
#navBtn span:after {
    content: '';
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: var(--light-text);
    transition: var(--transition);
    border-radius: 2px;
}

#navBtn span {
    top: 50%;
    transform: translateY(-50%);
}

#navBtn span:before {
    top: -9px;
}

#navBtn span:after {
    bottom: -9px;
}

#navBtn.active span {
    background-color: transparent;
}

#navBtn.active span:before {
    transform: rotate(45deg);
    top: 0;
}

#navBtn.active span:after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ==============================================================================
   Hero Section (class-blue.com style)
   ============================================================================== */
.hero {
    height: 85vh;
    min-height: 540px;
    display: flex;
    align-items: center;
    color: var(--light-text);
    text-align: left;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    background-color: #0d1a16;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    animation: heroZoom 24s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    max-width: 820px;
    margin: 0;
    padding-top: 40px;
}

.hero-tag {
    display: inline-block;
    background: rgba(150, 75, 0, 0.8);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 24px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 2px 2px 14px rgba(0, 0, 0, 0.6);
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 4px;
    background: var(--primary-color);
    bottom: -12px;
    left: 0;
    border-radius: 2px;
}

.hero p {
    font-size: 20px;
    line-height: 1.8;
    margin-top: 24px;
    margin-bottom: 32px;
    color: #f0f0f0;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==============================================================================
   Featured Articles Section (class-blue.com style)
   ============================================================================== */
.featured-articles {
    margin-top: -70px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border-bottom: 3px solid transparent;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--secondary-color);
}

.article-image {
    height: 190px;
    overflow: hidden;
    position: relative;
    background-color: #222;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-content .article-cat {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.article-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.45;
    font-weight: 700;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* ==============================================================================
   About Section (class-blue.com style)
   ============================================================================== */
.about {
    padding: 90px 0;
    text-align: center;
    background-color: var(--background-color);
    position: relative;
}

.about h2 {
    font-size: 40px;
    margin-bottom: 24px;
    color: #222;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about p {
    max-width: 840px;
    margin: 28px auto 40px;
    font-size: 17px;
    line-height: 2.1;
    color: #444;
    text-align: left;
}

.about p strong {
    color: #111;
}

/* ==============================================================================
   Recent Posts Section (class-blue.com style)
   ============================================================================== */
.recent-posts {
    padding: 80px 0 100px;
    background: #ffffff;
}

.recent-posts h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 48px;
    font-weight: 700;
    position: relative;
}

.recent-posts h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.post-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eef0f2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.post-image {
    height: 210px;
    overflow: hidden;
    position: relative;
    background-color: #f4f4f4;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.06);
}

.post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-content .post-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.post-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.5;
    font-weight: 700;
    color: #222;
}

.post-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* ==============================================================================
   Single Article / Page Styling
   ============================================================================== */
.main-page-wrap {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: 80vh;
}

.tq-article-container {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.tq-single-header {
    margin-bottom: 36px;
    text-align: center;
}

.tq-single-header h1 {
    font-size: 32px;
    line-height: 1.45;
    font-weight: 700;
    color: #1a1a1a;
    margin: 16px 0 20px;
}

.tq-single-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 24px;
}

.tq-single-meta span {
    margin: 0 8px;
}

.tq-single-featured-img {
    margin-bottom: 36px;
    border-radius: 8px;
    overflow: hidden;
}

.tq-single-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

.tq-article-body {
    font-size: 16px;
    line-height: 2.0;
    color: #333;
}

.tq-article-body h2 {
    font-size: 24px;
    color: #111;
    margin: 40px 0 20px;
    padding-left: 16px;
    border-left: 5px solid var(--primary-color);
    line-height: 1.4;
}

.tq-article-body h3 {
    font-size: 20px;
    color: #222;
    margin: 32px 0 16px;
    line-height: 1.4;
}

.tq-article-body p {
    margin-bottom: 24px;
}

.tq-article-body ul,
.tq-article-body ol {
    margin: 0 0 24px 24px;
    padding: 0;
}

.tq-article-body li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.tq-article-body .wp-block-group {
    background: #fdfbf7;
    border: 1px solid var(--tq-border);
    border-radius: 8px;
    padding: 24px;
    margin: 28px 0;
}

/* ==============================================================================
   Footer Styles (class-blue.com style)
   ============================================================================== */
#footer {
    background-color: var(--dark-color);
    color: #cfd8d4;
    padding: 70px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--light-text);
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: #aaa;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbb;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid #282828;
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

.tq-legal-notice {
    background: #1a1a1a;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 30px;
    font-size: 12px;
    line-height: 1.8;
    color: #999;
    text-align: center;
    border: 1px solid #333;
}

/* Page Top Button */
#pageTop {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 990;
}

#pageTop a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    font-size: 20px;
}

#pageTop a:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
}

/* ==============================================================================
   Responsive Queries
   ============================================================================== */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero {
        height: auto;
        min-height: 480px;
        padding: 120px 0 60px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .featured-articles {
        margin-top: 20px;
    }
    #navBtn {
        display: block;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(17, 17, 17, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
    .nav-links.active {
        display: flex;
    }
    .tq-article-container {
        padding: 24px 18px;
    }
}
