/* ═══════════════════════════════════════════════════
   싱크대 상판수리 전문 테마 - Main Stylesheet
   클린디데이 (CleanDDay) Professional Theme
   ═══════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
    --primary: #1B3A5C;
    --primary-light: #2A5A8C;
    --primary-dark: #0F2440;
    --accent: #D4A853;
    --accent-light: #E8C97A;
    --accent-dark: #B8903D;
    --success: #2E7D32;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #F0F2F5;
    --gray: #6C757D;
    --dark-gray: #343A40;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-light: #868E96;
    --border-color: #DEE2E6;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Noto Sans KR', sans-serif;
    --font-secondary: 'Nanum Gothic', sans-serif;
    --container-max: 1200px;
    --header-height: 70px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* ─── Selection Color ─── */
::selection {
    background: var(--accent);
    color: var(--white);
}

/* ═══════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
    height: var(--header-height);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

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

.site-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-logo .logo-main {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.site-logo .logo-sub {
    font-size: 0.7rem;
    color: var(--accent-dark);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    padding: 8px 16px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: rgba(27,58,92,0.06);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 60%;
}

/* Header CTA Buttons */
.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-header-phone:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-header-quote {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-header-quote:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════ */
.hero-slider-section {
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 50vh;
    min-height: 350px;
    max-height: 550px;
}

.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease-out;
}

.swiper-slide-active .hero-slide-bg {
    transform: scale(1.08);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,36,64,0.75) 0%, rgba(27,58,92,0.55) 50%, rgba(0,0,0,0.35) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(212,168,83,0.9);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    animation: fadeInDown 0.8s ease;
}

.hero-slide-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-slide-content p {
    font-size: 1.05rem;
    font-weight: 300;
    opacity: 0.92;
    max-width: 600px;
    line-height: 1.6;
    animation: fadeInUp 1s ease;
}

.hero-cta-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    animation: fadeInUp 1.2s ease;
}

.hero-cta-group .btn-primary {
    padding: 12px 32px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-cta-group .btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,168,83,0.4);
}

.hero-cta-group .btn-outline {
    padding: 12px 32px;
    border: 2px solid rgba(255,255,255,0.7);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-cta-group .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* Swiper Navigation & Pagination */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: var(--white);
    opacity: 0.7;
    transition: var(--transition);
    width: 44px;
    height: 44px;
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 18px;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    opacity: 1;
}

.hero-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--white);
    opacity: 0.5;
    transition: var(--transition);
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* ═══════════════════════════════════════
   TRUST BAR (Under Slider)
   ═══════════════════════════════════════ */
.trust-bar {
    background: var(--primary);
    padding: 16px 0;
    overflow: hidden;
}

.trust-bar-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    color: var(--white);
    font-size: 0.9rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.trust-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

.trust-item strong {
    font-weight: 600;
}

/* ═══════════════════════════════════════
   SECTION STYLES (Common)
   ═══════════════════════════════════════ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(27,58,92,0.08);
    color: var(--primary);
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.35;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ═══════════════════════════════════════
   SERVICE OVERVIEW SECTION
   ═══════════════════════════════════════ */
.service-section {
    background: var(--off-white);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   FAQ / KNOWLEDGE BASE SECTION
   ═══════════════════════════════════════ */
.faq-section {
    background: var(--white);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--white);
    transition: var(--transition);
    gap: 12px;
}

.faq-question:hover {
    background: var(--off-white);
}

.faq-question .q-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
}

.faq-item.active .faq-question .q-icon {
    background: var(--accent);
}

.faq-question .q-text {
    flex: 1;
}

.faq-question .q-toggle {
    font-size: 1.1rem;
    color: var(--gray);
    transition: var(--transition);
    min-width: 20px;
}

.faq-item.active .faq-question .q-toggle {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    padding-left: 70px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ═══════════════════════════════════════
   COST CALCULATOR SECTION
   ═══════════════════════════════════════ */
.calculator-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.calculator-wrap {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.calc-form-group {
    margin-bottom: 24px;
}

.calc-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.calc-form-group select,
.calc-form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: var(--transition);
    background: var(--white);
    color: var(--text-primary);
}

.calc-form-group select:focus,
.calc-form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,58,92,0.1);
}

.calc-result {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    color: var(--white);
    margin-top: 24px;
}

.calc-result .result-label {
    font-size: 0.88rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

.calc-result .result-price {
    font-size: 2rem;
    font-weight: 800;
}

.calc-result .result-note {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 6px;
}

.btn-calculate {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-calculate:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════
   ARTICLES / INFORMATION SECTION
   ═══════════════════════════════════════ */
.articles-section {
    background: var(--white);
}

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

.article-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.article-thumb {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}

.article-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.article-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 2;
}

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

.article-body h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-body p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-light);
}

.article-read-more {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.article-read-more:hover {
    color: var(--accent);
    gap: 8px;
}

/* ═══════════════════════════════════════
   PROCESS SECTION
   ═══════════════════════════════════════ */
.process-section {
    background: var(--off-white);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 24px 12px;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 48px;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.process-step:last-child::after {
    display: none;
}

.process-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.process-step h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════
   CTA BANNER SECTION
   ═══════════════════════════════════════ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(212,168,83,0.1);
    border-radius: 50%;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
}

.cta-text p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

.btn-cta-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-cta-phone:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,168,83,0.4);
}

.btn-cta-quote {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: 2px solid rgba(255,255,255,0.6);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-cta-quote:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* ═══════════════════════════════════════
   MATERIAL COMPARISON TABLE
   ═══════════════════════════════════════ */
.material-section {
    background: var(--white);
}

.material-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.material-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.material-table thead th {
    background: var(--primary);
    color: var(--white);
    padding: 16px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.material-table tbody td {
    padding: 14px 20px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.material-table tbody tr:hover {
    background: var(--off-white);
}

.material-table tbody tr:last-child td {
    border-bottom: none;
}

.difficulty-badge {
    padding: 3px 10px;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-block;
}

.difficulty-badge.easy {
    background: #d4edda;
    color: #155724;
}

.difficulty-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.difficulty-badge.hard {
    background: #f8d7da;
    color: #721c24;
}

/* ═══════════════════════════════════════
   FLOATING SIDE BUTTONS
   ═══════════════════════════════════════ */
.floating-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
}

.float-btn:hover {
    transform: scale(1.12);
    box-shadow: var(--shadow-lg);
}

.float-btn .float-tooltip {
    position: absolute;
    right: 62px;
    background: var(--dark-gray);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.float-btn:hover .float-tooltip {
    opacity: 1;
}

.float-btn.phone-btn {
    background: #2E7D32;
}

.float-btn.blog-btn {
    background: #03C75A;
}

.float-btn.youtube-btn {
    background: #FF0000;
}

.float-btn.top-btn {
    background: var(--primary);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.float-btn.top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
}

.footer-top {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-brand .footer-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand .footer-logo span {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

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

.footer-col ul li a {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-col ul li a i {
    font-size: 0.75rem;
    color: var(--accent);
}

.footer-info-list li {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    display: flex;
    gap: 6px;
    line-height: 1.5;
}

.footer-info-list li strong {
    min-width: 65px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════
   ONLINE QUOTE PAGE
   ═══════════════════════════════════════ */
.quote-page {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.quote-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 50px 0;
    text-align: center;
    color: var(--white);
}

.quote-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.quote-hero p {
    font-size: 1rem;
    opacity: 0.85;
}

.quote-form-wrap {
    max-width: 800px;
    margin: -30px auto 60px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 50px 40px;
    position: relative;
    z-index: 1;
}

.quote-form-title {
    text-align: center;
    margin-bottom: 36px;
}

.quote-form-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.quote-form-title p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group label .required {
    color: #dc3545;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-family: var(--font-primary);
    transition: var(--transition);
    background: var(--white);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27,58,92,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Privacy Agreement */
.privacy-section {
    margin-top: 24px;
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.privacy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.privacy-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.privacy-view-btn {
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: underline;
    background: none;
    border: none;
}

.privacy-view-btn:hover {
    color: var(--accent);
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.privacy-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--primary);
    cursor: pointer;
}

.privacy-check span {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.btn-submit-quote {
    width: 100%;
    margin-top: 28px;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-quote:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-submit-quote:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ═══════════════════════════════════════
   PRIVACY MODAL
   ═══════════════════════════════════════ */
.privacy-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.privacy-modal-overlay.active {
    display: flex;
}

.privacy-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s ease;
}

.privacy-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.privacy-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.privacy-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray);
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
}

.privacy-modal-close:hover {
    background: var(--off-white);
    color: var(--text-primary);
}

.privacy-modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.privacy-modal-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 16px 0 8px;
}

.privacy-modal-body h4:first-child {
    margin-top: 0;
}

.privacy-modal-body ul {
    padding-left: 20px;
    margin: 8px 0;
}

.privacy-modal-body ul li {
    list-style: disc;
    margin-bottom: 4px;
}

.privacy-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.privacy-modal-footer .privacy-modal-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.privacy-modal-footer .privacy-modal-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.privacy-modal-footer .privacy-modal-check span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-privacy-confirm {
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-privacy-confirm:hover {
    background: var(--primary-light);
}

/* ═══════════════════════════════════════
   SINGLE POST PAGE
   ═══════════════════════════════════════ */
.single-post-page {
    margin-top: var(--header-height);
    padding: 50px 0 80px;
}

.post-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-header {
    margin-bottom: 36px;
}

.post-category-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.post-header h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 14px;
}

.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.post-meta-bar span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-featured-image {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: var(--shadow-md);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-primary);
}

.post-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 30px 0 12px;
}

.post-content p {
    margin-bottom: 18px;
}

.post-content ul, .post-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.post-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}

.post-content ol li {
    list-style: decimal;
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--off-white);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.post-content table th {
    background: var(--primary);
    color: var(--white);
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
}

.post-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.post-content table tr:hover {
    background: var(--off-white);
}

/* Post Navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.post-nav-item {
    padding: 16px 20px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.post-nav-item:hover {
    background: var(--light-gray);
}

.post-nav-item .nav-label {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.post-nav-item .nav-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .process-step:nth-child(3)::after {
        display: none;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .main-nav,
    .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Menu */
    .mobile-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 20px;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    .mobile-menu a {
        display: block;
        padding: 14px 16px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-primary);
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu a:hover {
        color: var(--primary);
        background: var(--off-white);
    }

    .mobile-menu .mobile-cta {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-menu .mobile-cta a {
        text-align: center;
        border-radius: var(--radius-sm);
        border: none;
    }

    .mobile-menu .mobile-cta .btn-m-phone {
        background: var(--primary);
        color: var(--white);
        font-weight: 600;
    }

    .mobile-menu .mobile-cta .btn-m-quote {
        background: var(--accent);
        color: var(--white);
        font-weight: 600;
    }

    /* Hero */
    .hero-swiper {
        height: 45vh;
        min-height: 280px;
    }

    .hero-slide-content h2 {
        font-size: 1.5rem;
    }

    .hero-slide-content p {
        font-size: 0.9rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .hero-cta-group .btn-primary,
    .hero-cta-group .btn-outline {
        padding: 10px 24px;
        font-size: 0.88rem;
    }

    /* Trust Bar */
    .trust-bar-inner {
        gap: 16px;
        font-size: 0.8rem;
    }

    /* Sections */
    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    /* Services */
    .service-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 24px 16px;
    }

    /* Articles */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card {
        flex-direction: row;
    }

    .article-thumb {
        width: 140px;
        min-width: 140px;
        padding-top: 0;
        height: auto;
    }

    .article-thumb img {
        position: static;
        width: 100%;
        height: 100%;
    }

    /* Process */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .process-step {
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: 16px;
        padding: 16px 0;
    }

    .process-step::after {
        display: none;
    }

    .process-number {
        margin: 0;
        min-width: 42px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .process-step-content {
        flex: 1;
    }

    /* CTA */
    .cta-banner {
        padding: 40px 0;
    }

    .cta-text h2 {
        font-size: 1.35rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta-phone, .btn-cta-quote {
        justify-content: center;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Floating Buttons */
    .floating-buttons {
        right: 12px;
        gap: 8px;
    }

    .float-btn {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .float-btn .float-tooltip {
        display: none;
    }

    /* Quote Page */
    .quote-form-wrap {
        padding: 30px 20px;
        margin: -20px 16px 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Single Post */
    .post-header h1 {
        font-size: 1.45rem;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    /* Material Table */
    .material-table-wrap {
        margin: 0 -20px;
        border-radius: 0;
    }

    /* FAQ */
    .faq-question {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .faq-answer-inner {
        padding-left: 58px;
    }

    /* Calculator */
    .calculator-wrap {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-swiper {
        height: 40vh;
        min-height: 250px;
    }

    .hero-slide-content h2 {
        font-size: 1.3rem;
    }

    .hero-badge {
        font-size: 0.72rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .article-card {
        flex-direction: column;
    }

    .article-thumb {
        width: 100%;
        min-width: auto;
        padding-top: 55%;
    }

    .article-thumb img {
        position: absolute;
    }

    .trust-bar-inner {
        flex-direction: column;
        gap: 10px;
    }
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Antigravity floating effect for decorative elements */
@keyframes antigravityFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(1deg);
    }
    50% {
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

.antigravity-float {
    animation: antigravityFloat 6s ease-in-out infinite;
}

.antigravity-float-delay {
    animation: antigravityFloat 6s ease-in-out infinite;
    animation-delay: -2s;
}

.antigravity-float-slow {
    animation: antigravityFloat 8s ease-in-out infinite;
    animation-delay: -4s;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gray);
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark-gray);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    z-index: 10001;
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-lg);
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: #dc3545;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
