﻿/* ============================================
 * Design Page Styles
 * Only loaded on the Design page
 * ============================================ */

/* ============================================
 * Section Spacing (aligned with homepage frontpage.css)
 * ============================================ */
.fp-first-pt   { padding-top: 4rem; }
.fp-section-pt { padding-top: 2.5rem; }
.fp-section-pb { padding-bottom: 2.5rem; }
.fp-pb-8       { padding-bottom: 4rem; }
@media (min-width: 1024px) {
    .fp-first-pt   { padding-top: 8rem; }
    .fp-section-pt { padding-top: 4rem; }
    .fp-section-pb { padding-bottom: 4rem; }
    .fp-pb-8       { padding-bottom: 4rem; }
    /* Design Philosophy — override fp-pb-8 to 6rem */
    .fp-pb-8:has(.design-phil-section) {
        padding-bottom: 6rem;
    }
    /* Design To Execution — increase gap to CTA section below */
    .fp-pb-8:has(.design-exec-section) {
        padding-bottom: 6rem;
    }
}

/* Tailwind补全 - mb-16 (4rem) */
.mb-16 { margin-bottom: 4rem; }

/* ============================================
 * Missing Tailwind arbitrary value utilities
 * These aren't compiled in tailwind.css
 * ============================================ */
.text-\[\#1a1a1a\] { color: #1a1a1a; }
.text-\[\#666\] { color: #666; }
.bg-black { background-color: #000; }

/* ============================================
 * Shared Section Typography (aligned with homepage)
 * ============================================ */
.design-section-subtitle {
    font-family: 'Google Sans Flex', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    color: #b71c1c;
}
.design-section-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 2rem;
    color: #1a1a1a;
    line-height: 1.2;
}
@media (min-width: 1024px) {
    .design-section-heading {
        font-size: 3.8rem;
        line-height: 4.1rem;
    }
}
.design-section-body {
    font-size: 1rem;
    color: #666;
    line-height: 1.625;
}
@media (min-width: 1024px) {
    .design-section-body {
        font-size: 1.25rem;
    }
}
.design-section-body-wrap {
    max-width: 100%;
}

/* Image hover lift + shadow (aligned with homepage .card-hover-img) */
.design-img-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.design-img-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* ============================================
 * Hero Banner 鈥?Full-width image with overlay
 * ============================================ */
.design-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.design-hero-img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}
@media (min-width: 1024px) {
    .design-hero-img { height: 630px; }
}
.design-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 1024px) {
    .design-hero-overlay {
        justify-content: flex-start;
        padding-left: 35vh;
    }
}
.design-hero-text-wrap {
    position: relative;
    z-index: 10;
}
.design-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
@media (min-width: 1024px) {
    .design-hero-title {
        font-size: 4.6rem;
        line-height: 1;
    }
}

/* ============================================
 * Design Philosophy 鈥?Text left, Image right
 * ============================================ */
.design-phil-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    width: 96%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 1024px) {
    .design-phil-section {
        display: grid;
        grid-template-columns: 42fr 58fr;
        gap: 6rem;
        align-items: center;
        width: 100%;
        max-width: none;
        padding: 0;
    }
    .design-phil-text {
        padding-left: 5.5vw;
    }
    .design-phil-image-wrap {
        padding-right: 0;
    }
    .design-phil-image {
        height: 650px;
    }
}
.design-phil-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    min-height: 200px;
}
@media (min-width: 1024px) {
    .design-phil-image {
        aspect-ratio: auto;
        height: 650px;
    }
}

/* ============================================
 * Design To Execution 鈥?Image left, Text right
 * ============================================ */
.design-exec-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    width: 96%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 1024px) {
    .design-exec-section {
        display: grid;
        grid-template-columns: 53fr 47fr;
        gap: 8rem;
        align-items: center;
        width: 100%;
        max-width: none;
        padding: 0;
    }
    .design-exec-image-wrap {
        padding-left: 0;
        position: relative;
    }
    .design-exec-image-wrap::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 20px;
        width: 100%;
        height: 100%;
        background: #f2f2f2;
        z-index: 0;
    }
    .design-exec-text {
        max-width: 80%;
    }
    .design-exec-image {
        height: 650px;
        position: relative;
        z-index: 1;
    }
}
.design-exec-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    min-height: 200px;
}
@media (min-width: 1024px) {
    .design-exec-image {
        aspect-ratio: auto;
        height: 650px;
    }
}

/* ============================================
 * Contact Button (Design To Execution section)
 * ============================================ */
.design-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: none;
    color: #1a1a1a;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.7s ease, border-color 0.7s ease;
}
.design-contact-btn::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    background: #b71c1c;
    border-radius: inherit;
    transition: transform 0.7s ease;
}
.design-contact-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #fff;
    border-radius: inherit;
}
.design-contact-btn:hover {
    color: #fff;
    border-color: #b71c1c;
}
.design-contact-btn:hover::before {
    transform: scaleX(1);
}

/* ============================================
 * CTA Section Typography (aligned with homepage CTA)
 * ============================================ */
.design-contact-subtitle {
    font-size: 1rem;
    color: #fff;
}
.design-cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
@media (min-width: 1024px) {
    .design-cta-title {
        font-size: 3.6rem;
    }
}
.design-cta-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}
@media (min-width: 1024px) {
    .design-cta-text {
        font-size: 1.25rem;
    }
}

/* ============================================
 * ContactUs Section 鈥?Full-width background image
 * ============================================ */
.design-contact-section {
    position: relative;
    background-image: url('../images/design_img_CTA.png');
    background-size: cover;
    background-position: center;
    min-height: 600px;
}
.design-contact-inner {
    padding: 0 1rem 5rem;
    width: 96%;
    max-width: 1920px;
    margin: 0 auto;
}
@media (min-width: 1024px) {
    .design-contact-inner {
        width: 89%;
        padding: 5rem 0 5rem 0;
    }
}
.design-contact-content {
    width: 100%;
}
@media (min-width: 1024px) {
    .design-contact-content {
        width: 50%;
        margin-left: auto;
    }
}

/* ============================================
 * ContactUs Form 鈥?CF7 overrides
 * ============================================ */
.design-contact-content .wpcf7-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.3rem !important;
    width: 100% !important;
    margin-top: 2rem;
}

/* Hide label text (keep inputs visible) */
.design-contact-content .wpcf7-form label {
    display: block !important;
    font-size: 0 !important;
    color: transparent !important;
}
.design-contact-content .wpcf7-form label .wpcf7-form-control-wrap {
    display: block !important;
    font-size: 1rem !important;
    color: inherit !important;
}

/* Two-column rows 鈥?single column on mobile */
.design-contact-content .wpcf7-form .form-row > p {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    margin: 0 !important;
}
.design-contact-content .wpcf7-form .form-row > p br {
    display: none !important;
}
@media (min-width: 1024px) {
    .design-contact-content .wpcf7-form .form-row > p {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
    .design-contact-content .wpcf7-form .form-row:first-of-type > p {
        grid-template-columns: 1fr 2fr !important;
    }
}

/* Single-column rows (textarea + submit) */
/* Target ALL direct <p> children uniformly */
.design-contact-content .wpcf7-form > p {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.design-contact-content .wpcf7-form > p br {
    display: none !important;
}

/* Specifically target the textarea wrapper by its label+textarea combination */
.design-contact-content .wpcf7-form > p:has(textarea) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.design-contact-content .wpcf7-form > p:has(textarea) label {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}
.design-contact-content .wpcf7-form > p:has(textarea) .wpcf7-form-control-wrap {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}
.design-contact-content .wpcf7-form > p:has(textarea) textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0.75rem 1rem !important;
}

/* Submit button 鈥?always centered, auto width */
.design-contact-content .wpcf7-form > p:has(.wpcf7-submit) {
    align-items: center !important;
}
.design-contact-content .wpcf7-form > p:has(.wpcf7-submit) .wpcf7-submit {
    width: auto !important;
    margin-top: 3rem !important;
}

/* Fallback for browsers without :has() */
.design-contact-content .wpcf7-form > p label {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}
.design-contact-content .wpcf7-form > p .wpcf7-form-control-wrap {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}
.design-contact-content .wpcf7-form > p textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}
.design-contact-content .wpcf7-form > p .wpcf7-submit {
    align-self: center !important;
    width: auto !important;
    margin-top: 3rem !important;
}

/* Input/textarea shared styles */
.design-contact-content .wpcf7-form input[type="text"],
.design-contact-content .wpcf7-form input[type="email"],
.design-contact-content .wpcf7-form textarea {
    width: 100% !important;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #1a1a1a;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease;
}
.design-contact-content .wpcf7-form input::placeholder,
.design-contact-content .wpcf7-form textarea::placeholder {
    color: #9ca3af;
}
.design-contact-content .wpcf7-form input:focus,
.design-contact-content .wpcf7-form textarea:focus {
    outline: none;
    border-color: #6b7280;
}
.design-contact-content .wpcf7-form textarea {
    resize: none;
    height: auto;
}

/* Submit button — sweep fill hover (aligned with homepage fp-section-btn) */
.design-contact-content .wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 6rem;
    font-size: 1.2rem;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3'/%3E%3C/svg%3E"), linear-gradient(to right, #b71c1c, #b71c1c);
    background-repeat: no-repeat, no-repeat;
    background-position: calc(50% + 5rem) center, left center;
    background-size: 1rem, 0% 100%;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-size 0.7s ease, color 0.7s ease;
}
.design-contact-content .wpcf7-form .wpcf7-submit:hover {
    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='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3'/%3E%3C/svg%3E"), linear-gradient(to right, #b71c1c, #b71c1c);
    background-size: 1rem, 100% 100%;
    color: #fff;
}

/* Validation */
.design-contact-content .wpcf7-not-valid-tip {
    color: #fca5a5;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}
.design-contact-content .wpcf7-response-output {
    color: #fff;
    border-color: #4ade80 !important;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
 * What We Support 鈥?Card Grid
 * ============================================ */
.ds-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: #e5e5e5;
}
@media (min-width: 768px) {
    .ds-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .ds-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 4rem;
    }
}

.ds-card {
    background: #f5f5f5;
    padding: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
@media (min-width: 1024px) {
    .ds-card {
        padding: 2rem;
    }
}
.ds-card:hover {
    background: #000;
}

/* Card 2 鈥?always dark (hover state example) */
.ds-card-dark {
    background: #000;
}

.ds-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ds-card-icon img {
    width: 2rem;
    height: 2rem;
    display: block;
    filter: brightness(0);
    transition: filter 0.3s ease;
}
.ds-card:hover .ds-card-icon img {
    filter: brightness(0) invert(1);
}
.ds-card-dark .ds-card-icon img {
    filter: brightness(0) invert(1);
}

.ds-card-title {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 1.6625rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}
@media (min-width: 64rem) {
    .ds-card-title {
        font-size: 1.725rem;
    }
}
.ds-card:hover .ds-card-title {
    color: #fff;
}
.ds-card-dark .ds-card-title {
    color: #fff;
}

.ds-card-desc {
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 1.2375rem;
    color: #666;
    line-height: 1.6;
    transition: color 0.3s ease;
}
.ds-card:hover .ds-card-desc {
    color: rgba(255, 255, 255, 0.7);
}
.ds-card-dark .ds-card-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile: cards — white bg, smaller font, more row gap */
@media (max-width: 767px) {
    .ds-cards-grid {
        gap: 0.75rem;
        background: transparent;
    }
    .ds-card {
        background: #fff;
    }
    .ds-card-title {
        font-size: 1.25rem;
    }
    .ds-card-desc {
        font-size: 0.95rem;
    }

    /* CTA submit button — tighter on mobile, arrow right-aligned */
    .design-contact-content .wpcf7-form .wpcf7-submit {
        padding: 0.75rem 2.5rem 0.75rem 1.5rem;
        font-size: 1rem;
        background-position: right 0.75rem center, left center;
    }
}

