/* --- Brand Definition Section --- */
.brand-def-section {
    padding: 6rem 1rem;
    background-color: var(--clr-beige);
    text-align: center;
}

.brand-def-content {
    max-width: 1200px;
    margin: 0 auto;
}

.brand-def-text {
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.8;
    color: var(--text-dark);
}

.brand-def-text strong {
    color: var(--clr-green);
}

.brand-def-sub-text {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 100;
    line-height: 1.6;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .brand-def-section {
        padding: 2rem 1rem;
    }

    .brand-def-text {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .brand-def-sub-text {
        font-size: 0.95rem;
    }
}

/* --- Contact Section --- */
.contact-hero-section {
    padding: 6rem 1rem;
    background-color: #fff;
}

/* Specific Contact Styling if different from common (currently mostly common, but layout might differ) */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-info {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-details {
    margin-top: 2rem;
    background: var(--clr-beige);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid var(--clr-beige);
}

.contact-details p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-green);
    box-shadow: 0 0 0 3px rgba(115, 183, 171, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* --- About Grid Section --- */
.about-grid {
    display: grid;
    /* Default: Mobile 1 column */
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

/* Tablet / Small Desktop: 2 columns to avoid orphans */
@media (min-width: 600px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Desktop: 4 columns */
@media (min-width: 1200px) {
    .about-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.about-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}

.about-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.about-icon {
    width: 70px;
    height: 70px;
    padding: 10px;
    background: var(--clr-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-green);
    margin-bottom: 0.5rem;
}

.about-icon svg {
    width: 32px;
    height: 32px;
}

.about-card span {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 1.05rem;
}

/* --- About Story Section --- */
.about-story {
    margin-top: 4rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.about-story::before {
    content: '';
    display: block;
    width: 124px;
    height: 14px;
    margin: 0 auto 1rem;
    background-image: url("data:image/svg+xml,%3Csvg width='124' height='14' viewBox='0 0 124 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 2 2 C 12 2, 12 12, 22 12 S 32 2, 42 2 S 52 12, 62 12 S 72 2, 82 2 S 92 12, 102 12 S 112 2, 122 2' stroke='%2373b7ab' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.story-quote {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--clr-green);
    font-style: italic;
    line-height: 1.6;
}

.story-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.story-footer {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1rem;
}

/* --- Compact Team Section --- */
.compact-team-section {
    background-color: #fff;
    padding: 0 1rem 6rem 1rem;
}

.compact-team-content {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 2rem;
    position: relative;
}

.compact-team-content::before {
    content: '';
    display: block;
    width: 124px;
    height: 14px;
    margin: 0 auto 3rem;
    background-image: url("data:image/svg+xml,%3Csvg width='124' height='14' viewBox='0 0 124 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 2 2 C 12 2, 12 12, 22 12 S 32 2, 42 2 S 52 12, 62 12 S 72 2, 82 2 S 92 12, 102 12 S 112 2, 122 2' stroke='%2373b7ab' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.compact-team-intro {
    font-size: 1.15rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.compact-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.compact-team-member {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--clr-beige);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.compact-team-member:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.compact-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.compact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-info h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
    font-weight: 700;
}

.compact-info p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .compact-team-grid {
        grid-template-columns: 1fr;
    }
    .compact-team-content {
        padding-top: 3rem;
    }
    .compact-team-member {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* ============================================
   Scroll-Reveal Animations
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for child elements */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}