/**
 * 옥상 방수 페이지 스타일
 * 근영방수 - rooftop.css
 */

/* ========================================
   Page Variables
======================================== */
.rooftop-page {
    --rooftop-primary: var(--primary-blue);
    --rooftop-primary-dark: var(--primary-blue-dark);
    --rooftop-accent: var(--pantone-yellow);
}

.rooftop-page[data-target="business"] {
    --rooftop-primary: var(--primary-purple);
    --rooftop-primary-dark: #5a3aa3;
}
/* ========================================
   SECTION 1: HERO
======================================== */
.rooftop-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
}

.hero-slider {
    position: relative;
    flex: 1;
    min-height: 0; /* flex 자식 요소 shrink 허용 */
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 통계 영역 */
.hero-stats {
    flex-shrink: 0;
    background: var(--white);
    border-top: 4px solid var(--rooftop-accent, var(--pantone-yellow));
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.slide-content {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    padding: 0 2rem;
    color: var(--white);
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
	color:white;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: inline-flex;
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
}

.hero-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.hero-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* Hero Stats */
.hero-stats {
    background: var(--white);
    border-top: 4px solid var(--rooftop-accent);
}

.stats-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

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

.stat-number {
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rooftop-primary);
}

.stat-suffix {
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rooftop-primary);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--medium-gray);
}

/* ========================================
   SECTION 2: PROBLEM
======================================== */
.rooftop-problem {
    padding: 6rem 2rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.problem-card {
    background: var(--white);
    border: 2px solid var(--medium-gray);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.problem-card:hover {
    border-color: var(--rooftop-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.problem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.problem-card:hover .problem-image img {
    transform: scale(1.05);
}

.problem-text {
    padding: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-black);
    text-align: center;
}

/* ========================================
   SECTION 3: CAUSE
======================================== */
.rooftop-cause {
    padding: 6rem 2rem;
}

.cause-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.cause-card {
    background: var(--white);
    border: 2px solid var(--medium-gray);
    padding: 2rem;
    transition: all var(--transition-normal);
}

.cause-card:hover {
    border-color: var(--rooftop-primary);
    box-shadow: var(--shadow-md);
}

.cause-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--rooftop-primary);
}

.cause-icon svg {
    width: 100%;
    height: 100%;
}

.cause-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-black);
}

.cause-desc {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cause-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
}

.cause-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cause Highlight */
.cause-highlight {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border: 2px solid var(--rooftop-primary);
    border-left-width: 6px;
}

.highlight-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    color: var(--rooftop-primary);
}

.highlight-icon svg {
    width: 100%;
    height: 100%;
}

.highlight-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-black);
    margin: 0;
}

.highlight-text strong {
    color: var(--rooftop-primary);
}

/* ========================================
   SECTION 4: COMPANY
======================================== */
.rooftop-company {
    padding: 6rem 2rem;
}

.company-features {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 4rem;
}

.company-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.company-feature.reverse {
    direction: rtl;
}

.company-feature.reverse > * {
    direction: ltr;
}

.feature-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 2px solid var(--medium-gray);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    padding: 1rem;
}

.feature-number {
    display: inline-block;
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--rooftop-primary);
    margin-bottom: 0.5rem;
}

.feature-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.feature-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* Company Stats */
.company-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem;
    background: var(--light-gray);
    border: 2px solid var(--medium-gray);
}

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

.stat-year {
    display: block;
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rooftop-primary);
}

.stat-big {
    display: block;
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rooftop-primary);
}

.stat-unit {
    font-size: 1.5rem;
}

.company-stat .stat-label {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-top: 0.5rem;
}

/* ========================================
   SECTION 5: SOLUTION
======================================== */
.rooftop-solution {
    padding: 6rem 2rem;
}

.solution-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.solution-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.solution-tab:hover {
    border-color: var(--rooftop-primary);
    color: var(--rooftop-primary);
}

.solution-tab.active {
    background: var(--rooftop-primary);
    border-color: var(--rooftop-primary);
    color: var(--white);
}

.tab-icon {
    width: 24px;
    height: 24px;
}

.tab-icon svg {
    width: 100%;
    height: 100%;
}

/* Solution Content */
.solution-content {
    display: none;
}

.solution-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.solution-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    padding: 2rem;
}

.solution-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-black);
}

.solution-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.solution-specs {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-black);
}

.solution-fits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.solution-fits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-black);
}

.solution-fits li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--rooftop-primary);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Solution Compare */
.solution-compare {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border: 2px solid var(--medium-gray);
}

.compare-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-black);
}

.compare-table-wrap {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--medium-gray);
}

.compare-table th {
    background: var(--light-gray);
    font-weight: 700;
    color: var(--text-black);
}

.compare-table td {
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.compare-table td strong {
    color: var(--rooftop-primary);
}

.compare-table tbody tr:hover {
    background: var(--light-gray);
}

/* ========================================
   SECTION 6: PROCESS
======================================== */
.rooftop-process {
    padding: 6rem 2rem;
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--medium-gray);
    position: relative;
}

.process-step:last-child {
    border-bottom: none;
}

.process-step.highlight {
    background: linear-gradient(90deg, rgba(0, 71, 171, 0.05) 0%, transparent 100%);
    margin: 0 -2rem;
    padding: 2rem;
}

.step-number {
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rooftop-primary);
    width: 60px;
    flex-shrink: 0;
}

.step-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    flex: 1;
    align-items: center;
}

.step-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-black);
}

.step-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.step-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--rooftop-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Process Keypoints */
.process-keypoints {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.keypoint-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-gray);
    border: 2px solid var(--medium-gray);
}

.keypoint-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--rooftop-primary);
}

.keypoint-icon svg {
    width: 100%;
    height: 100%;
}

.keypoint-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-black);
}

.keypoint-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin: 0;
}

/* ========================================
   SECTION 7: PORTFOLIO
======================================== */
.rooftop-portfolio {
    padding: 6rem 2rem;
}

.portfolio-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-track {
    overflow: hidden;
}

.portfolio-slide {
    display: none;
    background: var(--white);
    border: 2px solid var(--medium-gray);
}

.portfolio-slide.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.portfolio-ba {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--medium-gray);
}

.ba-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: rgba(0, 0, 0, 0.7);
}

.ba-after .ba-label {
    background: var(--rooftop-primary);
}

.portfolio-info {
    padding: 2rem;
}

.portfolio-location {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-black);
}

.portfolio-desc {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.portfolio-work {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-work li {
    padding: 0.25rem 0.75rem;
    background: var(--light-gray);
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* Portfolio Controls */
.portfolio-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-100%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
}

.portfolio-arrow:hover {
    border-color: var(--rooftop-primary);
    color: var(--rooftop-primary);
}

.portfolio-prev {
    left: -60px;
}

.portfolio-next {
    right: -60px;
}

.portfolio-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.portfolio-dot {
    width: 12px;
    height: 12px;
    background: var(--medium-gray);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.portfolio-dot.active {
    background: var(--rooftop-primary);
}

/* ========================================
   SECTION 8: TRUST
======================================== */
.rooftop-trust {
    padding: 6rem 2rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.trust-card {
    padding: 2rem;
    background: var(--light-gray);
    border: 2px solid var(--medium-gray);
    text-align: center;
    transition: all var(--transition-normal);
}

.trust-card:hover {
    border-color: var(--rooftop-primary);
    background: var(--white);
}

.trust-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--rooftop-primary);
}

.trust-icon svg {
    width: 100%;
    height: 100%;
}

.trust-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-black);
}

.trust-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

/* Trust Projects */
.trust-projects {
    padding: 2rem;
    background: var(--light-gray);
    border: 2px solid var(--medium-gray);
    text-align: center;
}

.projects-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 1rem;
}

.projects-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-item {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    font-size: 0.875rem;
    color: var(--dark-gray);
}

/* ========================================
   SECTION 9: FAQ
======================================== */
.rooftop-faq {
    padding: 6rem 2rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 2px solid var(--medium-gray);
    background: var(--white);
    margin-bottom: 1rem;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-black);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.faq-question:hover {
    color: var(--rooftop-primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin: 0;
}

/* ========================================
   SECTION 10: CTA
======================================== */
.rooftop-cta {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.95) 0%, rgba(0, 53, 128, 0.95) 100%);
}

.rooftop-page[data-target="business"] .cta-bg::after {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.95) 0%, rgba(90, 58, 163, 0.95) 100%);
}

.rooftop-cta .section-container {
    position: relative;
    z-index: 1;
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-title {
	color:white;
    font-family: 'Gmarket Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cta-phone,
.cta-contact {
    min-width: 200px;
}

.btn-icon {
    width: 22px;
    height: 22px;
}

.cta-hours {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   Responsive Design
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .stats-container {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cause-grid {
        grid-template-columns: 1fr;
    }
    
    .company-feature {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .company-feature.reverse {
        direction: ltr;
    }
    
    .solution-layout {
        grid-template-columns: 1fr;
    }
    
    .step-content {
        grid-template-columns: 150px 1fr;
        gap: 1.5rem;
    }
    
    .process-keypoints {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-prev {
        left: 10px;
    }
    
    .portfolio-next {
        right: 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .slide-content {
        padding: 0 1.5rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .cause-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .company-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .solution-tabs {
        flex-direction: column;
    }
    
    .solution-tab {
        justify-content: center;
    }
    
    .solution-specs {
        flex-direction: column;
        gap: 1rem;
    }
    
    .process-step {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-number {
        width: auto;
    }
    
    .step-content {
        grid-template-columns: 1fr;
    }
    
    .portfolio-ba {
        grid-template-columns: 1fr;
    }
    
    .portfolio-arrow {
        display: none;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-phone,
    .cta-contact {
        width: 100%;
        max-width: 300px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .keypoint-card {
        flex-direction: column;
        text-align: center;
    }
    
    .projects-list {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   Animations
======================================== */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}



/* rooftop.css에 추가/수정 */

/* ========================================
   MOBILE RESPONSIVE FIXES
======================================== */

/* Hero Section Mobile Fix */
@media (max-width: 768px) {
    .rooftop-hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh; /* 모바일 주소창 고려 */
    }
    
    .hero-slider {
        min-height: 70vh;
        min-height: 70dvh;
    }
    
    .slide-content {
        bottom: 25%;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        word-break: keep-all;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-cta {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Hero Controls 모바일 */
    .hero-controls {
        bottom: 1rem;
        gap: 1rem;
    }
    
    .hero-arrow {
        width: 40px;
        height: 40px;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
    
    /* Stats 모바일 - 가로 스크롤 방지 */
    .hero-stats {
        overflow-x: hidden;
    }
    
    .stats-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 2rem;
        padding: 1.25rem 1rem;
    }
    
    .stat-item {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-suffix {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .slide-content {
        bottom: 20%;
    }
    
    .stats-container {
        gap: 0.75rem 1.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
}


/* Problem Section Mobile Fix */
@media (max-width: 768px) {
    .rooftop-problem {
        padding: 4rem 1rem;
    }
    
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .problem-card {
        width: 100%;
    }
    
    .problem-image {
        aspect-ratio: 4/3;
    }
    
    .problem-text {
        padding: 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .problem-card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .problem-image {
        /* flex: 0 0 120px; */
        aspect-ratio: 1/1;
    }
    
    .problem-text {
        flex: 1;
        text-align: left;
        padding: 0.75rem 1rem;
    }
}
/* Cause Section Mobile Fix */
@media (max-width: 768px) {
    .rooftop-cause {
        padding: 4rem 1rem;
    }
    
    .cause-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cause-card {
        padding: 1.5rem;
    }
    
    .cause-title {
        font-size: 1.1rem;
    }
    
    .cause-desc {
        font-size: 0.9rem;
    }
    
    .cause-image {
        margin-top: 1rem;
    }
    
    /* Highlight 박스 */
    .cause-highlight {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .highlight-icon {
        width: 48px;
        height: 48px;
    }
    
    .highlight-text {
        font-size: 1rem;
        line-height: 1.6;
    }
}



/* Company Section Mobile Fix */
@media (max-width: 768px) {
    .rooftop-company {
        padding: 4rem 1rem;
    }
    
    .company-features {
        gap: 3rem;
    }
    
    .company-feature,
    .company-feature.reverse {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        direction: ltr;
    }
    
    .feature-image {
        order: 1;
        aspect-ratio: 16/9;
    }
    
    .feature-content {
        order: 2;
        padding: 0;
    }
    
    .feature-number {
        font-size: 0.875rem;
    }
    
    .feature-title {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-desc {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Company Stats */
    .company-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .stat-year,
    .stat-big {
        font-size: 2rem;
    }
    
    .stat-unit {
        font-size: 1.25rem;
    }
}
/* Solution Section Mobile Fix */
@media (max-width: 768px) {
    .rooftop-solution {
        padding: 4rem 1rem;
    }
    
    .solution-tabs {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .solution-tab {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    .solution-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .solution-image {
        aspect-ratio: 16/9;
    }
    
    .solution-name {
        font-size: 1.35rem;
    }
    
    .solution-desc {
        font-size: 0.95rem;
    }
    
    .solution-specs {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .spec-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .spec-label {
        font-size: 0.875rem;
    }
    
    .spec-value {
        font-size: 0.95rem;
    }
    
    /* Compare Table */
    .solution-compare {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .compare-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .compare-table {
        min-width: 500px;
        font-size: 0.85rem;
    }
    
    .compare-table th,
    .compare-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Process Section Mobile Fix */
@media (max-width: 768px) {
    .rooftop-process {
        padding: 4rem 1rem;
    }
    
    .process-step {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.5rem 0;
    }
    
    .process-step.highlight {
        margin: 0 -1rem;
        padding: 1.5rem 1rem;
        border-radius: 0;
    }
    
    .step-number {
        font-size: 1.25rem;
        width: auto;
    }
    
    .step-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-image {
        aspect-ratio: 16/9;
        order: 1;
    }
    
    .step-info {
        order: 2;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-desc {
        font-size: 0.9rem;
    }
    
    .step-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Keypoints */
    .process-keypoints {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .keypoint-card {
    	align-items:center;
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .keypoint-icon {
        width: 40px;
        height: 40px;
    }
    
    .keypoint-title {
        font-size: 1rem;
    }
    
    .keypoint-desc {
        font-size: 0.875rem;
    }
}


/* Trust Section Mobile Fix */
@media (max-width: 768px) {
    .rooftop-trust {
        padding: 4rem 1rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trust-card {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
    
    .trust-icon {
        width: 40px;
        height: 40px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .trust-card > div {
        flex: 1;
    }
    
    .trust-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .trust-desc {
        font-size: 0.85rem;
    }
}

/* FAQ Section Mobile Fix */
@media (max-width: 768px) {
    .rooftop-faq {
        padding: 4rem 1rem;
    }
    
    .faq-item {
        margin-bottom: 0.75rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .faq-question span {
        padding-right: 1rem;
    }
    
    .faq-icon {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* CTA Section Mobile Fix */
@media (max-width: 768px) {
    .rooftop-cta {
        padding: 4rem 1rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
        line-height: 1.4;
        word-break: keep-all;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .cta-phone,
    .cta-contact {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .cta-hours {
        font-size: 0.8rem;
        margin-top: 1.5rem;
    }
}









/* ========================================
   rooftop-mobile.css
   옥상 방수 페이지 모바일 반응형 전체
======================================== */

/* ========== Tablet (1024px 이하) ========== */
@media (max-width: 1024px) {
    .rooftop-hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-container {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cause-grid {
        grid-template-columns: 1fr;
    }
    
    .company-feature {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .company-feature.reverse {
        direction: ltr;
    }
    
    .solution-layout {
        grid-template-columns: 1fr;
    }
    
    .step-content {
        grid-template-columns: 150px 1fr;
        gap: 1.5rem;
    }
    
    .process-keypoints {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-prev {
        left: 10px;
    }
    
    .portfolio-next {
        right: 10px;
    }
}

/* ========== Mobile (768px 이하) ========== */
@media (max-width: 768px) {
    /* === Hero Section === */
    .rooftop-hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-slider {
        min-height: 65vh;
        min-height: 65dvh;
    }
    
    .slide-content {
        bottom: 22%;
        padding: 0 1.25rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        word-break: keep-all;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-controls {
        bottom: 1rem;
        gap: 1rem;
    }
    
    .hero-arrow {
        width: 36px;
        height: 36px;
    }
    
    .hero-arrow svg {
        width: 18px;
        height: 18px;
    }
    
    .hero-dot {
        width: 8px;
        height: 8px;
    }
    
    /* Stats */
    .hero-stats {
        border-top-width: 3px;
    }
    
    .stats-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 1rem;
        padding: 1.25rem 1rem;
    }
    
    .stat-item {
        flex: 0 0 30%;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-suffix {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
        margin-top: 0.125rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    /* === Problem Section === */
    .rooftop-problem {
        padding: 3.5rem 1rem;
    }
    
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .problem-image {
        aspect-ratio: 1/1;
    }
    
    .problem-text {
        padding: 0.875rem;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* === Cause Section === */
    .rooftop-cause {
        padding: 3.5rem 1rem;
    }
    
    .cause-grid {
        gap: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .cause-card {
        padding: 1.25rem;
    }
    
    .cause-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.75rem;
    }
    
    .cause-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .cause-desc {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .cause-highlight {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        text-align: center;
    }
    
    .highlight-icon {
        width: 44px;
        height: 44px;
    }
    
    .highlight-text {
        font-size: 0.95rem;
    }
    
    /* === Company Section === */
    .rooftop-company {
        padding: 3.5rem 1rem;
    }
    
    .company-features {
        gap: 2.5rem;
        margin-bottom: 2.5rem;
    }
    
    .company-feature,
    .company-feature.reverse {
        gap: 1rem;
    }
    
    .feature-image {
        aspect-ratio: 16/9;
    }
    
    .feature-content {
        padding: 0;
    }
    
    .feature-number {
        font-size: 0.85rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
        margin-bottom: 0.625rem;
    }
    
    .feature-desc {
        font-size: 0.95rem;
        line-height: 1.65;
    }
    
    .company-stats {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.75rem 1.5rem;
    }
    
    .stat-year,
    .stat-big {
        font-size: 2rem;
    }
    
    .stat-unit {
        font-size: 1.25rem;
    }
    
    .company-stat .stat-label {
        font-size: 0.85rem;
    }
    
    /* === Solution Section === */
    .rooftop-solution {
        padding: 3.5rem 1rem;
    }
    
    .solution-tabs {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.75rem;
    }
    
    .solution-tab {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .tab-icon {
        width: 20px;
        height: 20px;
    }
    
    .solution-layout {
        gap: 1.5rem;
        padding: 1.25rem;
    }
    
    .solution-name {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .solution-desc {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .solution-specs {
        flex-direction: column;
        gap: 0;
        margin-bottom: 1.25rem;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .spec-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.625rem 0;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .spec-label {
        font-size: 0.8rem;
    }
    
    .spec-value {
        font-size: 0.9rem;
    }
    
    .solution-fits {
        gap: 0.625rem;
    }
    
    .solution-fits li {
        font-size: 0.875rem;
    }
    
    .solution-fits li::before {
        width: 18px;
        height: 18px;
        background-size: 10px;
    }
    
    /* Compare Table */
    .solution-compare {
        padding: 1.25rem 0.75rem;
        margin-top: 1.75rem;
    }
    
    .compare-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .compare-table-wrap {
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .compare-table {
        min-width: 480px;
        font-size: 0.8rem;
    }
    
    .compare-table th,
    .compare-table td {
        padding: 0.625rem 0.5rem;
    }
    
    /* === Process Section === */
    .rooftop-process {
        padding: 3.5rem 1rem;
    }
    
    .process-step {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 0;
    }
    
    .process-step.highlight {
        margin: 0 -1rem;
        padding: 1.25rem 1rem;
    }
    
    .step-number {
        font-size: 1.15rem;
    }
    
    .step-content {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .step-image {
        aspect-ratio: 16/9;
    }
    
    .step-title {
        font-size: 1.05rem;
        margin-bottom: 0.375rem;
    }
    
    .step-desc {
        font-size: 0.875rem;
        line-height: 1.55;
    }
    
    .step-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        margin-top: 0.5rem;
    }
    
    /* Keypoints */
    .process-keypoints {
        gap: 1.25rem;
        margin-top: 2rem;
    }
    
    .keypoint-card {
    	align-items:center;
        flex-direction: column;
        gap: 0.875rem;
        padding: 1.25rem;
        text-align: center;
    }
    
    .keypoint-icon {
        width: 36px;
        height: 36px;
    }
    
    .keypoint-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .keypoint-desc {
        font-size: 0.85rem;
        line-height: 1.55;
    }
    
    /* === Portfolio Section === */
    .rooftop-portfolio {
        padding: 3.5rem 1rem;
    }
    
    .portfolio-ba {
        grid-template-columns: 1fr;
    }
    
    .ba-image {
        aspect-ratio: 16/10;
    }
    
    .ba-label {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .portfolio-info {
        padding: 1.25rem;
    }
    
    .portfolio-location {
        font-size: 0.8rem;
        margin-bottom: 0.375rem;
    }
    
    .portfolio-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .portfolio-desc {
        font-size: 0.875rem;
        margin-bottom: 0.875rem;
    }
    
    .portfolio-work li {
        padding: 0.2rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .portfolio-arrow {
        display: none;
    }
    
    .portfolio-dots {
        margin-top: 1.25rem;
    }
    
    .portfolio-dot {
        width: 10px;
        height: 10px;
    }
    
    /* === Trust Section === */
    .rooftop-trust {
        padding: 3.5rem 1rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        margin-bottom: 2rem;
    }
    
    .trust-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem;
        text-align: left;
    }
    
    .trust-icon {
        width: 36px;
        height: 36px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .trust-content {
        flex: 1;
    }
    
    .trust-title {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
    }
    
    .trust-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* === FAQ Section === */
    .rooftop-faq {
        padding: 3.5rem 1rem;
    }
    
    .faq-item {
        margin-bottom: 0.625rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .faq-question span {
        flex: 1;
        padding-right: 0.75rem;
        line-height: 1.4;
    }
    
    .faq-icon {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* === CTA Section === */
    .rooftop-cta {
        padding: 3.5rem 1rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
        line-height: 1.35;
        margin-bottom: 0.75rem;
        word-break: keep-all;
    }
    
    .cta-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.625rem;
    }
    
    .cta-phone,
    .cta-contact {
        width: 100%;
        max-width: 260px;
        padding: 0.95rem 1.5rem;
        font-size: 0.95rem;
        justify-content: center;
    }
    
    .btn-icon {
        width: 18px;
        height: 18px;
    }
    
    .cta-hours {
        font-size: 0.8rem;
        margin-top: 1.25rem;
    }
}

/* ========== Small Mobile (480px 이하) ========== */
@media (max-width: 480px) {
    /* Hero */
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .slide-content {
        bottom: 18%;
        padding: 0 1rem;
    }
    
    .stats-container {
        padding: 1rem 0.75rem;
    }
    
    .stat-item {
        flex: 0 0 28%;
    }
    
    .stat-number {
        font-size: 1.35rem;
    }
    
    .stat-suffix {
        font-size: 0.9rem;
    }
    
    /* Problem */
    .problem-grid {
        gap: 0.625rem;
    }
    
    .problem-text {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 1.35rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Cause */
    .cause-card {
        padding: 1rem;
    }
    
    .cause-title {
        font-size: 1rem;
    }
    
    /* Company */
    .feature-title {
        font-size: 1.15rem;
    }
    
    .feature-desc {
        font-size: 0.9rem;
    }
    
    /* Solution */
    .solution-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .solution-layout {
        padding: 1rem;
    }
    
    .solution-name {
        font-size: 1.15rem;
    }
    
    /* Process */
    .process-step.highlight {
        margin: 0 -0.75rem;
        padding: 1rem 0.75rem;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    /* CTA */
    .cta-title {
        font-size: 1.35rem;
    }
    
    .cta-phone,
    .cta-contact {
        max-width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ========== Touch Device Improvements ========== */
@media (hover: none) and (pointer: coarse) {
    /* 터치 영역 최소 44px 확보 */
    .btn,
    .solution-tab,
    .faq-question,
    .hero-arrow,
    .portfolio-dot,
    .hero-dot {
        min-height: 44px;
    }
    
    .hero-dot,
    .portfolio-dot {
        min-width: 44px;
        padding: 15px;
    }
    
    /* Hover 효과 제거 */
    .problem-card:hover,
    .cause-card:hover,
    .trust-card:hover {
        transform: none;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* ========== Landscape Mobile ========== */
@media (max-width: 768px) and (orientation: landscape) {
    .rooftop-hero {
        min-height: 100vh;
    }
    
    .hero-slider {
        min-height: 80vh;
    }
    
    .slide-content {
        bottom: 15%;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .stats-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 2rem;
    }
    
    .stat-item {
        flex: 0 0 auto;
    }
}

/* ========== Safe Area (노치 대응) ========== */
@supports (padding: max(0px)) {
    .rooftop-cta {
        padding-bottom: max(3.5rem, env(safe-area-inset-bottom));
    }
    
    .cta-buttons {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
/* ========================================
   SECTION 7: PORTFOLIO (시공 사례 연결)
======================================== */
.rooftop-portfolio {
    padding: 6rem 2rem;
    background: var(--light-gray);
}

.portfolio-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* 카드 */
.portfolio-case-card {
    display: block;
    background: var(--white);
    border: 2px solid var(--medium-gray);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.portfolio-case-card:hover {
    border-color: var(--rooftop-primary);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

/* 이미지 */
.portfolio-case-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

.portfolio-case-card:hover .portfolio-case-image img {
    transform: scale(1.05);
}

.portfolio-case-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
}

.portfolio-case-card:hover .portfolio-case-overlay {
    opacity: 1;
}

.portfolio-case-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.95);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-black);
    backdrop-filter: blur(8px);
}

/* 정보 */
.portfolio-case-info {
    padding: 1.5rem;
}

.portfolio-case-location {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.portfolio-case-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 0.625rem;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.portfolio-case-card:hover .portfolio-case-title {
    color: var(--rooftop-primary);
}

.portfolio-case-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-case-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--rooftop-primary);
    transition: gap 0.2s ease;
}

.portfolio-case-card:hover .portfolio-case-more {
    gap: 0.625rem;
}

/* 전체 보기 버튼 */
.portfolio-case-all {
    text-align: center;
    margin-top: 3rem;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--white);
    border: 2px solid var(--rooftop-primary);
    color: var(--rooftop-primary);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--rooftop-primary);
    color: var(--white);
}

.btn-view-all svg {
    transition: transform 0.2s ease;
}

.btn-view-all:hover svg {
    transform: translateX(4px);
}

/* ── 반응형 ── */
@media (max-width: 768px) {
    .rooftop-portfolio {
        padding: 3.5rem 1rem;
    }
    
    .portfolio-case-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .portfolio-case-info {
        padding: 1.25rem;
    }
    
    .portfolio-case-title {
        font-size: 1.1rem;
    }
    
    .portfolio-case-desc {
        font-size: 0.85rem;
    }
    
    .portfolio-case-all {
        margin-top: 2rem;
    }
    
    .btn-view-all {
        width: 100%;
        justify-content: center;
        padding: 0.95rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .portfolio-case-image {
        aspect-ratio: 16 / 9;
    }
    
    .portfolio-case-info {
        padding: 1rem;
    }
    
    .portfolio-case-title {
        font-size: 1rem;
    }
}
