:root {
    --bg-color: #FFFFFF;
    --bg-variant: #F9F9F9;
    --text-primary: #333333;
    --text-muted: #666666;
    --accent-gold: #F37021;
    /* Gradient Gold for "Hanayaka" feel */
    --accent-gradient: linear-gradient(135deg, #F37021 0%, #FFB74D 100%);
    --accent-dark-gold: #D65A10;
    --container-width: 1200px;
    --serif-font: 'Shippori Mincho', serif;
    --sans-font: 'Inter', 'Noto Sans JP', sans-serif;
    --transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Smoother interaction */
    --shadow-card: 0 15px 40px rgba(243, 112, 33, 0.08);
    /* Warm shadow */
    --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--sans-font);
    line-height: 2.0;
    /* Increased line-height for elegance */
    letter-spacing: 0.03em;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
.serif {
    font-family: var(--serif-font);
    font-weight: 500;
    /* Lighter weight for sophistication */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    /* More opaque for premium feel */
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(243, 112, 33, 0.1);
    /* Subtle orange border */
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    /* Ensure logo is visible on white */
    mix-blend-mode: multiply;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
    /* Reduced gap to fit more items */
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    /* Slightly smaller for Japanese text balance */
    transition: var(--transition);
    position: relative;
    font-family: var(--sans-font);
}

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-gold);
    transition: width 0.3s;
}

/* Navigation & Dropdown */
.nav-links li {
    position: relative;
    /* Context for absolute dropdown */
}

.dropdown-trigger .arrow {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s;
    display: inline-block;
}

.dropdown-item:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    /* Start slightly lower for animation */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
    border: 1px solid rgba(243, 112, 33, 0.1);
    display: block;
    /* Ensure it's a block for layout */
}

.dropdown-item:hover .dropdown-menu {
    top: 100%;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    text-align: left;
}

.dropdown-menu li a::after {
    display: none;
    /* Remove underline effect for dropdown items */
}

.dropdown-menu li a:hover {
    background: rgba(243, 112, 33, 0.05);
    /* Light orange hover */
    color: var(--accent-gold);
    padding-left: 25px;
    /* Subtle slide effect */
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
    /* Keep text white on hero image */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Brighter, more welcoming hero image */
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.sub-title {
    display: block;
    color: var(--accent-gold);
    letter-spacing: 3px;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.main-title {
    font-size: 4rem;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 50px;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 15px 50px;
    background: var(--accent-gold);
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(243, 112, 33, 0.4);
    transition: var(--transition);
}

.btn:hover {
    background: var(--accent-dark-gold);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(243, 112, 33, 0.5);
}

/* Concept Section (About) */
.section {
    padding: 100px 0;
}

.align-center {
    text-align: center;
}

.section-title {
    font-size: 1rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.highlight-text {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.concept-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Features Grid (Why RENESS) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(243, 112, 33, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Timeline (Flow) */
.timeline {
    margin-top: 60px;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    background: var(--accent-gold);
    opacity: 0.2;
}

.timeline-number {
    background: #fff;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 800;
}

.timeline-content h4 {
    color: var(--text-primary);
    font-weight: bold;
}

/* Diagram (One Stop) */
.diagram-box {
    background: #fff;
    border: 1px solid #eee;
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
}

.diagram-box.highlight {
    background: #FFF5F0;
    /* Very light orange */
    border: 2px solid var(--accent-gold);
}

.step {
    background: #f0f0f0;
    color: #555;
    font-weight: 500;
}

.step.error {
    background: #ffecec;
    color: #d32f2f;
}

.step.highlight-bg {
    background: var(--accent-gold);
    color: #fff;
}

/* Schedule Bar */
.schedule-container {
    background: #fff;
    box-shadow: var(--shadow-card);
    border: 1px solid #eee;
}

.schedule-bar {
    border-radius: 8px;
}

.phase:nth-child(1) {
    background: #EFEFEF;
    color: #777;
}

.phase:nth-child(2) {
    background: #FFCC80;
    color: #5d4037;
}

/* Lighter Orange */
.phase:nth-child(3) {
    background: var(--accent-gold);
    color: #fff;
}

.cost-block {
    border-top: 1px solid #eee;
}

.cost-list strong.highlight {
    background: linear-gradient(transparent 60%, rgba(243, 112, 33, 0.2) 60%);
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background-color: #fff;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    color: #fff;
    /* Text on image needs to be white */
    position: relative;
    overflow: hidden;
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.service-card p {
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    color: var(--text-primary);
}

.faq-answer p {
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #f9f9f9;
    color: var(--text-primary);
    padding: 80px 0;
    margin-top: 120px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-info p {
    color: var(--text-muted);
}

.copyright {
    text-align: center;
    margin-top: 60px;
    color: #aaa;
    font-size: 0.8rem;
}

/* Container */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.bg-dark-variant {
    background-color: var(--bg-variant);
}

.logo-img {
    height: 80px;
    /* Increased size for the new stacked logo format */
    width: auto;
    /* Removed Invert/Hue-rotate filter as the new SVG has correct colors */
    transition: var(--transition);
}

header.scrolled .logo-img {
    height: 50px;
}

@media (max-width: 768px) {

    .features-grid,
    .service-grid,
    .one-stop-diagram {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 2.5rem;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--sans-font);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: var(--serif-font);
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    align-items: center;
}

.section {
    padding: 120px 0;
}

.align-center {
    text-align: center;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.logo-text .accent {
    color: var(--accent-gold);
    font-family: var(--serif-font);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-dark-gold);
    transform: translateY(-5px);
}

.btn-outline {
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: #000;
}

/* Mega Menu for Contact */
.contact-dropdown {
    position: relative;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--accent-gold);
    padding: 30px;
    min-width: 400px;
    z-index: 1000;
}

.contact-dropdown:hover .mega-menu {
    display: flex;
    gap: 40px;
}

.mega-menu-column {
    min-width: 150px;
}

.mega-menu-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-family: var(--sans-font);
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 10px;
}

.mega-menu-column ul li a {
    font-size: 0.9rem;
    color: #333;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.mega-menu-column ul li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

/* Hero Section */
#hero {
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #333;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* White/warm modern house with soft lighting */
    background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&q=80&w=1920');
    background-color: #f5f0eb;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Add a subtle light overlay to ensure text readability without making it "dark" */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Reduced opacity to 0.6 max to prevent washout */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
    /* Overlay on top of image but below content */
}

.hero-content {
    position: relative;
    /* Ensure z-index works above bg */
    z-index: 5;
    /* Higher than bg and overlay */
    max-width: 800px;
    padding-left: 5%;
    /* Add some left padding */
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.25;
    margin-bottom: 30px;
    color: #222;
    /* Soft white shadow for visibility */
    text-shadow:
        0 0 20px #fff,
        0 0 40px #fff,
        0 0 60px rgba(255, 255, 255, 0.8);
}

.hero-content .sub-title {
    display: block;
    font-size: 1rem;
    font-family: var(--sans-font);
    color: var(--accent-gold);
    letter-spacing: 5px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: #444;
    /* Darker text */
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* About Section */
.section-title {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.highlight-text {
    font-size: 2.5rem;
    line-height: 1.4;
    margin-bottom: 30px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.image-wrapper {
    position: relative;
    padding-bottom: 120%;
    background: #1a1a1c;
    overflow: hidden;
}

.placeholder-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&q=80&w=800');
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.image-wrapper:hover .placeholder-img {
    transform: scale(1.05);
}

/* About Section Orange Line */
.orange-line-accent {
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    margin: 40px auto;
}

/* Link Cards Grid */
.link-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.link-card {
    display: block;
    padding: 40px 30px;
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-top: 3px solid var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.link-card-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.15em;
    margin-bottom: 10px;
    font-family: var(--sans-font);
}

.link-card-desc {
    display: block;
    font-size: 1.2rem;
    color: #333;
    font-family: var(--serif-font);
}

/* Page Hero Section */
.page-hero {
    padding: 150px 0 80px;
    background: #f8f8f8;
    text-align: center;
    border-bottom: 3px solid var(--accent-gold);
}

.page-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.2em;
    margin-bottom: 15px;
    font-family: var(--sans-font);
}

.page-subtitle {
    font-size: 2rem;
    color: #333;
    font-family: var(--serif-font);
}

@media (max-width: 768px) {
    .link-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: linear-gradient(rgba(18, 18, 20, 0.8), rgba(18, 18, 20, 0.95)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=600');
    background-size: cover;
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:nth-child(2) {
    background-image: linear-gradient(rgba(18, 18, 20, 0.8), rgba(18, 18, 20, 0.95)), url('https://images.unsplash.com/photo-1554469384-e58fac16e23a?auto=format&fit=crop&q=80&w=600');
}

.service-card:nth-child(3) {
    background-image: linear-gradient(rgba(18, 18, 20, 0.8), rgba(18, 18, 20, 0.95)), url('https://images.unsplash.com/photo-1581578731548-c64695cc6954?auto=format&fit=crop&q=80&w=600');
}

.service-card:nth-child(4) {
    background-image: linear-gradient(rgba(18, 18, 20, 0.8), rgba(18, 18, 20, 0.95)), url('https://images.unsplash.com/photo-1503387762-592dea58ef23?auto=format&fit=crop&q=80&w=600');
}

/* Company Table */
.company-info-table {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.table-row {
    display: flex;
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-row .label {
    width: 250px;
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.table-row .content {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Features Grid (Why RENESS) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    text-align: left;
    border: none;
    border-top: 3px solid var(--accent-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    width: 3px;
    height: 40px;
    background: var(--accent-gold);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.feature-icon-number {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--accent-gold);
    font-family: var(--sans-font);
    letter-spacing: 0.1em;
    display: block;
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* Timeline (Flow) */
.timeline {
    margin-top: 60px;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background: var(--accent-gold);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 30px;
}

.timeline-number {
    position: absolute;
    left: -15px;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--bg-color);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.timeline-content p {
    color: var(--text-muted);
}

/* Diagram (One Stop) */
.one-stop-diagram {
    margin-top: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.diagram-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.diagram-box.highlight {
    background: rgba(243, 112, 33, 0.05);
    border: 1px solid var(--accent-gold);
}

.diagram-label {
    display: block;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.diagram-box.highlight .diagram-label {
    color: var(--accent-gold);
}

.diagram-flow {
    gap: 15px;
}

.step {
    background: #FFFFFF;
    padding: 15px 30px;
    border-radius: 50px;
    /* Pillow shape for friendly vibe */
    font-size: 0.95rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #EEEEEE;
    color: #444;
}

.step.error {
    background: #FFF0F0;
    color: #E53935;
    border-color: #FFCDD2;
}

.step.highlight-bg {
    background: var(--accent-gold);
    color: #fff;
    font-weight: 600;
    border-color: var(--accent-gold);
    box-shadow: 0 5px 15px rgba(243, 112, 33, 0.3);
}

.step.wide {
    width: 100%;
}

.plus {
    color: #fff;
    /* White plus inside orange or dark plus? Context dependent. */
    font-weight: bold;
    margin: 0 5px;
}

.arrow {
    color: #ddd;
    font-size: 1.2rem;
}

.diagram-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.diagram-note.good {
    color: var(--accent-gold);
    font-weight: bold;
}

/* Schedule Bar */
.schedule-container {
    margin-top: 60px;
    background: #FAFAFA;
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.schedule-block h4,
.cost-block h4 {
    margin-bottom: 25px;
    font-size: 1.15rem;
    font-weight: 600;
}

.schedule-bar {
    display: flex;
    height: 60px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #444;
    font-weight: 500;
}

.phase:nth-child(1) {
    background: #F0F0F0;
}

.phase:nth-child(2) {
    background: #FFE0B2;
    /* Much lighter orange */
    color: #D84315;
}

.phase:nth-child(3) {
    background: var(--accent-gold);
    color: #fff;
    font-weight: bold;
}

.cost-block {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cost-list {
    list-style: disc;
    padding-left: 20px;
    color: var(--text-muted);
}

.cost-list li {
    margin-bottom: 10px;
}

.cost-list strong.highlight {
    color: var(--accent-gold);
    background: linear-gradient(transparent 60%, rgba(243, 112, 33, 0.1) 60%);
}

/* Accordion (FAQ) */
.faq-accordion {
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 25px 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question .icon {
    color: var(--accent-gold);
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-question.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 25px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Base Utility */
.bg-dark-variant {
    background-color: #F8F8FA;
    /* Light gray instead of dark */
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Split Layout (Concept) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-content {
    padding-right: 20px;
}

.image-wrapper.wide {
    padding-bottom: 28%;
    /* Landscape aspect ratio */
}

.image-wrapper-tall {
    position: relative;
    padding-bottom: 120%;
    /* Taller aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.image-wrapper-tall .placeholder-img {
    height: 100%;
}

/* Works Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 15px;
    margin-top: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Visual Diagram Styles */
.diagram-container {
    padding: 60px 0;
    background: #FFFFFF;
}

.diagram-card {
    background: #FFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-card);
    position: relative;
    border: 1px solid rgba(243, 112, 33, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.diagram-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gradient);
}

.comparison-table {
    display: table;
    width: 100%;
    margin-top: 30px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.comparison-row {
    display: table-row;
    transition: var(--transition);
}

.comparison-row:hover {
    transform: scale(1.01);
    background: rgba(243, 112, 33, 0.02);
}

.comparison-cell {
    display: table-cell;
    padding: 20px;
    background: #F9F9F9;
    vertical-align: middle;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.comparison-cell:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-left: 1px solid #eee;
    font-weight: 600;
    color: var(--text-muted);
    width: 20%;
}

.comparison-cell:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-right: 1px solid #eee;
    background: #FFF5F0;
    color: var(--accent-gold);
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.1);
}

/* Decorative Backgrounds */
.bg-decorative {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(243, 112, 33, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(243, 112, 33, 0.03) 0%, transparent 20%);
}

/* Titles with accents */
.section-title {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--accent-gold);
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent-gradient);
}

/* Responsive updates for new sections */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}

/* Responsive Update */
@media (max-width: 968px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 2;
        grid-row: auto;
        height: 250px;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition);
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Rich UI Enhancements */
.feature-card,
.service-card,
.diagram-card {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Softer base shadow */
}

.feature-card:hover,
.service-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(243, 112, 33, 0.15);
    /* Rich, colored glow */
}

/* Glassmorphism for cards */
.diagram-card,
.schedule-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Typography Polish */
h2.highlight-text {
    background: linear-gradient(135deg, #333 0%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
}

/* Scroll Indicator Pulse */
.scroll-indicator .line::after {
    background: var(--accent-gradient);
    box-shadow: 0 0 10px rgba(243, 112, 33, 0.5);
}

/* Smooth Parallax for Hero Text */
.hero-content {
    animation: heroFloat 3s ease-in-out infinite alternate;
}

@keyframes heroFloat {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-5px);
    }
}

/* Button Shine Effect */
.btn {
    overflow: hidden;
    position: relative;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

/* --- Visual Overhaul (My-Place Style) --- */

/* Theme Section (Lifestyle Grid) */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.theme-card {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.theme-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.theme-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.theme-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-family: var(--serif-font);
}

.theme-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

/* Hover Effects */
.theme-card:hover img {
    transform: scale(1.1);
}

.theme-card:hover {
    box-shadow: 0 20px 40px rgba(243, 112, 33, 0.2);
}

.theme-card:hover p {
    transform: translateY(0);
    opacity: 1;
}

/* Visual Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive */
    gap: 40px;
}

.service-card {
    padding: 0;
    /* Removing padding to let image fill */
    overflow: hidden;
    height: auto;
    /* Let content dictate height */
}

.service-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-content {
    padding: 30px;
}

.service-card:hover .service-thumb img {
    transform: scale(1.1);
}

/* Responsive Overrides */
@media (max-width: 768px) {

    .theme-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }
}