/* 
 * BRICK BREAD Landing Page Styles
 * Focus: Dark mode, Beige accents (#e4d5c7), Elegant and Modern feel.
 */

:root {
    --bg-dark: #0a0a0a;
    --bg-surface: #141414;
    --bg-surface-light: #222222;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --point-color: #e4d5c7;
    /* From logo image */
    --point-dark: #cbb49e;
    --border-color: #333333;

    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    word-break: keep-all;
    overflow-wrap: break-word;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    word-break: keep-all;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Utilities */
.point-color {
    color: var(--point-color);
}

.text-center {
    text-align: center;
}

.text-gray {
    color: var(--text-secondary);
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.w-100 {
    width: 100%;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--point-color);
    color: var(--bg-dark);
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 4px;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--point-dark);
    transform: translateY(-2px);
}

.btn-primary.is-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Animations (Scroll Fade-in) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding var(--transition-fast), background-color var(--transition-fast);
    padding: 20px 0;
}

.header.scrolled {
    padding: 12px 0;
    background-color: rgba(10, 10, 10, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.logo-box {
    background-color: #000;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.logo-b {
    color: var(--point-color);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

.gnb {
    display: flex;
    gap: 32px;
}

.gnb a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.gnb a:hover {
    color: var(--point-color);
}

.gnb a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--point-color);
    transition: width var(--transition-fast);
}

.gnb a:hover::after {
    width: 100%;
}

/* Sections Base */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.section-header .sub-copy {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
}

.mt-40 {
    margin-top: 40px;
}

/* Image Placeholder */
.img-placeholder {
    background-color: var(--bg-surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    aspect-ratio: 1 / 1;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* For parallax */
    background: radial-gradient(circle at center, var(--bg-surface) 0%, var(--bg-dark) 70%);
    z-index: -1;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.hero-content p {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 300;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Zero Gravity Animation */
@keyframes float1 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(2deg);
    }
}

.floating-obj {
    position: absolute;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.floating-obj img {
    width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
}

.obj-1 {
    top: 10%;
    left: 10%;
    animation: float1 6s ease-in-out infinite;
}

.obj-2 {
    bottom: 20%;
    right: 15%;
    animation: float2 5s ease-in-out infinite 1s;
}

.obj-3 {
    top: 30%;
    right: 30%;
    animation: float3 7s ease-in-out infinite 0.5s;
}

/* Consulting Section (VS Layout) */
.consulting {
    background-color: var(--bg-surface);
}

.vs-layout {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    background: var(--bg-dark);
    border-radius: 16px;
    padding: 2px;
    position: relative;
    border: 1px solid var(--border-color);
}

.vs-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: inherit;
    overflow: hidden;
}

.vs-img {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
}

.vs-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.vs-card:hover .vs-img img {
    transform: scale(1.05);
}

.vs-content {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
}

.vs-divider {
    width: 60px;
    height: 60px;
    background-color: var(--bg-surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-secondary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--border-color);
    z-index: 2;
}

.card-header {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-secondary);
    letter-spacing: -0.04em;
    word-break: keep-all;
}

.card-header.highlight {
    color: var(--point-color);
}

.icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    background-color: var(--bg-surface-light);
}

.error-icon {
    color: #ff5555;
}

.check-icon {
    color: var(--bg-dark);
    background-color: var(--point-color);
}

.vs-card p {
    text-align: center;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

.highlight-text {
    color: var(--point-color);
    font-weight: 500;
}

/* Product Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(228, 213, 199, 0.3);
}

.img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-surface-light);
    border-radius: 12px 12px 0 0;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform var(--transition-slow);
}

.product-card:hover .img-box img {
    transform: scale(1.05);
}

.info-box {
    padding: 24px;
}

.title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.title-wrap h3 {
    font-size: 1.25rem;
    color: var(--point-color);
    line-height: 1.2;
}

.title-wrap .spec {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.detail-list li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
}

.detail-list li:last-child {
    margin-bottom: 0;
}

.detail-list .label {
    display: inline-block;
    width: 32px;
    min-width: 32px;
    font-size: 0.75rem;
    padding: 3px 4px;
    background-color: var(--bg-surface-light);
    color: var(--point-color);
    border-radius: 4px;
    margin-right: 8px;
    text-align: center;
    line-height: 1.2;
    margin-top: 1px;
}

/* FAQ Section */
.faq {
    background-color: var(--bg-surface);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 24px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color var(--transition-fast);
}

.accordion-header:hover {
    color: var(--point-color);
}

.q-mark,
.a-mark {
    color: var(--point-color);
    font-weight: 700;
    margin-right: 8px;
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
}

.accordion-item.active .accordion-header {
    color: var(--point-color);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-item.active .accordion-content {
    /* Set visibly high enough to contain content, JS handles exact height smoothly or we use a large max-height */
    max-height: 500px;
}

.content-inner {
    padding-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 26px;
    /* align with text after Q. */
}

/* Contact Section */
.contact-wrap {
    display: flex;
    gap: 60px;
    background-color: var(--bg-surface);
    border-radius: 16px;
    padding: 60px;
    border: 1px solid var(--border-color);
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
}

.contact-details {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.detail-item {
    display: flex;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.detail-item .label {
    width: 80px;
    color: var(--text-secondary);
}

.detail-item .link {
    color: var(--point-color);
    font-weight: 500;
}

.contact-form-wrap {
    flex: 1;
    background-color: var(--bg-dark);
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group.row {
    display: flex;
    gap: 20px;
}

.form-group.row .col {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

input,
textarea {
    width: 100%;
    padding: 16px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--point-color);
}

textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--bg-surface-light);
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 3px;
    padding-top: 2px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}


.footer-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.tel-link {
    color: var(--point-color);
}

.footer-copyright {
    color: #555;
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    width: 100%;
    max-width: 600px;
}

/* Floating Action Button */
.floating-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: var(--point-color);
    color: var(--bg-dark);
    padding: 16px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 99;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.floating-btn:hover {
    transform: translateY(-5px);
    background-color: var(--point-dark);
}

/* Tech Section */
.tech {
    background-color: var(--bg-dark);
}

.tech-grid {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.tech-card {
    flex: 1;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    transition: transform var(--transition-slow);
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: rgba(228, 213, 199, 0.3);
}

.tech-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.tech-card h3 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    line-height: 1.4;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.04em;
    word-break: keep-all;
}

.tech-card p {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 2vw, 1rem);
    line-height: 1.6;
    letter-spacing: -0.02em;
}

/* Tab UI */
.tab-menu {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.tab-btn.active {
    background-color: var(--point-color);
    color: var(--bg-dark);
    border-color: var(--point-color);
    font-weight: 600;
}

.tab-pane {
    display: none;
    animation: fadeInTab 0.5s ease-out forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .contact-wrap {
        flex-direction: column;
        padding: 40px;
    }

    .gnb {
        display: none;
    }

    /* Simplified for mobile */
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .hero-visual {
        height: 300px;
        margin-top: 40px;
        width: 100%;
    }

    .obj-1 {
        left: 0;
        transform: scale(0.8);
    }

    .obj-2 {
        right: 0;
        bottom: 0;
        transform: scale(0.8);
    }

    .obj-3 {
        display: none;
    }

    .vs-layout {
        flex-direction: column;
    }

    .vs-divider {
        position: relative;
        transform: none;
        margin: -30px auto;
        top: 0;
        left: 0;
    }

    .form-group.row {
        flex-direction: column;
        gap: 0;
    }

    .floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
    }
}