/* ==========================================================================
   Homepage Styles — HospiDirect v3.0
   Complete section styles for the 7-section homepage.
   All values use CSS custom properties from main.css design system.
   ========================================================================== */


/* ==========================================================================
   Body Override
   ========================================================================== */

body.home {
    padding-top: 0; /* Full-viewport hero behind fixed navbar */
}


/* ==========================================================================
   Shared Animation Classes
   ========================================================================== */

@keyframes hd-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes hd-bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}


/* ==========================================================================
   Section 1: Hero
   Full-viewport hero with background image, overlays, and centered content.
   Source: Stitch screen_10 hero section (exact CSS from research).
   ========================================================================== */

.hd-hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--hd-slate-900);
}

/* --- Hero background layers --- */

.hd-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hd-hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hd-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 1;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
}

.hd-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), transparent 50%, rgba(15, 23, 42, 0.8));
    z-index: 1;
}

/* --- Hero content --- */

.hd-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--hd-container-max);
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
    margin-top: 5rem;
}

/* Badge pill */
.hd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--hd-radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--hd-shadow-glass);
    color: var(--hd-white);
    font-family: var(--hd-font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.hd-hero-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--hd-primary);
    animation: hd-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 10px rgba(197, 157, 95, 0.8);
}

/* Title */
.hd-hero-title {
    font-family: var(--hd-font-display);
    font-size: 5rem;
    font-weight: 500;
    color: var(--hd-white);
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hd-hero-title-accent {
    font-style: italic;
    background: linear-gradient(135deg, #C59D5F, #E8D5B5, #A68248);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--hd-primary); /* fallback */
}

/* Subtitle */
.hd-hero-subtitle {
    font-family: var(--hd-font-sans);
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* CTA buttons */
.hd-hero-ctas {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hd-hero-cta-primary {
    height: 3.5rem;
    padding: 0 2.5rem;
    font-size: 0.875rem;
}

.hd-hero-cta-outline {
    height: 3.5rem;
    padding: 0 2.5rem;
    border-radius: var(--hd-radius-full);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: var(--hd-white);
    font-family: var(--hd-font-sans);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--hd-transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
}

.hd-hero-cta-outline:hover {
    background: var(--hd-white);
    color: var(--hd-slate-900);
    transform: translateY(-4px);
}

/* Scroll indicator */
.hd-hero-scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    opacity: 0.8;
}

.hd-hero-scroll-text {
    font-family: var(--hd-font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

.hd-hero-scroll-arrow {
    color: var(--hd-primary);
    filter: drop-shadow(0 0 5px rgba(197, 157, 95, 0.8));
    animation: hd-bounce 1s infinite;
}


/* ==========================================================================
   Section 2: About (#about)
   2-column layout: company info (left) + image grid (right).
   Background: off-white. Padding: 6rem.
   ========================================================================== */

.hd-about-section {
    background-color: var(--hd-bg-off-white);
    padding: 6rem 0;
}

.hd-about-container {
    max-width: var(--hd-container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.hd-about-grid {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* --- Left column: Text content --- */

.hd-about-left {
    flex: 1;
    min-width: 0;
}

.hd-about-subtitle {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hd-primary);
    margin-bottom: 1rem;
}

.hd-about-heading {
    font-family: var(--hd-font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hd-about-heading em {
    font-style: italic;
    color: var(--hd-slate-400);
}

.hd-about-text {
    font-family: var(--hd-font-sans);
    font-size: 1rem;
    color: var(--hd-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Stat panels (glass-style) */
.hd-about-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hd-about-stat {
    background: var(--hd-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--hd-radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.hd-about-stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hd-bg-off-white);
    border-radius: var(--hd-radius-sm);
    color: var(--hd-primary);
}

.hd-about-stat-icon .material-symbols-outlined {
    font-size: 20px;
}

.hd-about-stat-value {
    font-family: var(--hd-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    line-height: 1.2;
}

.hd-about-stat-label {
    font-family: var(--hd-font-sans);
    font-size: 0.75rem;
    color: var(--hd-text-muted);
}

/* About CTAs */
.hd-about-ctas {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hd-about-link {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hd-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--hd-transition-fast);
}

.hd-about-link:hover {
    color: var(--hd-primary-dark);
}

.hd-about-link .material-symbols-outlined {
    font-size: 18px;
    transition: transform var(--hd-transition-fast);
}

.hd-about-link:hover .material-symbols-outlined {
    transform: translateX(4px);
}

/* --- Right column: Image grid --- */

.hd-about-right {
    flex: 1;
    min-width: 0;
}

.hd-about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.hd-about-images > div {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hd-about-image-staggered {
    transform: translateY(2rem);
}

.hd-about-image-wrap {
    border-radius: var(--hd-radius-lg);
    overflow: hidden;
    box-shadow: var(--hd-shadow-layered);
}

.hd-about-image-wrap img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    display: block;
    transition: transform 700ms ease;
}

.hd-about-image-wrap:hover img {
    transform: scale(1.05);
}


/* ==========================================================================
   Section 3: Products (#products)
   Centered heading + 2-column product card grid.
   Background: white. Padding: 6rem.
   ========================================================================== */

.hd-products-section {
    background-color: var(--hd-white);
    padding: 6rem 0;
}

.hd-products-container {
    max-width: var(--hd-container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Heading block */
.hd-products-header {
    text-align: center;
    margin-bottom: 4rem;
}

.hd-products-subtitle {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hd-primary);
    margin-bottom: 1rem;
}

.hd-products-heading {
    font-family: var(--hd-font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    margin-bottom: 1rem;
}

.hd-products-description {
    font-family: var(--hd-font-sans);
    font-size: 1rem;
    color: var(--hd-text-muted);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* Card grid */
.hd-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

/* Product card */
.hd-product-card {
    background: var(--hd-bg-off-white);
    border-radius: 2rem;
    padding: 1.5rem;
    border: 1px solid transparent;
    transition: all var(--hd-transition-base);
}

.hd-product-card:hover {
    background: var(--hd-white);
    border-color: #e2e8f0;
    transform: translateY(-4px);
    box-shadow: var(--hd-shadow-layered-hover);
}

/* Card image container */
.hd-product-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--hd-white);
    border-radius: var(--hd-radius-md);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.hd-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 700ms ease;
}

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

/* Best Seller badge */
.hd-product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--hd-gradient-metallic-gold);
    color: var(--hd-white);
    font-family: var(--hd-font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.375rem 0.75rem;
    border-radius: var(--hd-radius-full);
    box-shadow: var(--hd-shadow-gold);
}

/* Card content */
.hd-product-content {
    padding: 0 0.5rem;
}

.hd-product-name {
    font-family: var(--hd-font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    margin-bottom: 0.5rem;
}

.hd-product-desc {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    color: var(--hd-text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hd-product-series {
    font-family: var(--hd-font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--hd-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.hd-product-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.625rem 1.5rem;
    border-radius: var(--hd-radius-full);
    background: var(--hd-gradient-metallic-gold);
    color: var(--hd-white);
    box-shadow: var(--hd-shadow-gold);
    transition: all var(--hd-transition-base);
}

.hd-product-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--hd-shadow-glow);
    color: var(--hd-white);
}

.hd-product-cta .material-symbols-outlined {
    font-size: 18px;
    transition: transform var(--hd-transition-fast);
}

.hd-product-cta:hover .material-symbols-outlined {
    transform: translateX(4px);
}


/* ==========================================================================
   Section 4: Why Choose Us (#why-choose-us)
   2-column layout: features (left) + how it works card (right).
   Background: surface-offset. Padding: 6rem.
   ========================================================================== */

.hd-why-us-section {
    background-color: var(--hd-surface-offset);
    padding: 6rem 0;
}

.hd-why-us-container {
    max-width: var(--hd-container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.hd-why-us-grid {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* --- Left column: Features --- */

.hd-why-us-left {
    flex: 1;
    min-width: 0;
}

.hd-why-us-subtitle {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hd-primary);
    margin-bottom: 1rem;
}

.hd-why-us-heading {
    font-family: var(--hd-font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hd-why-us-heading em {
    font-style: italic;
    background: linear-gradient(135deg, #C59D5F, #E8D5B5, #A68248);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--hd-primary);
}

.hd-why-us-text {
    font-family: var(--hd-font-sans);
    font-size: 1rem;
    color: var(--hd-text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Feature items */
.hd-why-us-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.hd-why-us-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.hd-why-us-feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    min-width: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hd-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--hd-radius-md);
    color: var(--hd-primary-dark);
    transition: all var(--hd-transition-base);
}

.hd-why-us-feature-icon .material-symbols-outlined {
    font-size: 22px;
}

.hd-why-us-feature:hover .hd-why-us-feature-icon {
    background: var(--hd-primary);
    border-color: var(--hd-primary);
    color: var(--hd-white);
}

.hd-why-us-feature-title {
    font-family: var(--hd-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    margin-bottom: 0.25rem;
}

.hd-why-us-feature-desc {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    color: var(--hd-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- Right column: How It Works card --- */

.hd-why-us-right {
    flex: 1;
    min-width: 0;
}

.hd-how-it-works-card {
    background: var(--hd-white);
    border-radius: var(--hd-radius-lg);
    box-shadow: var(--hd-shadow-layered);
    padding: 2.5rem;
}

.hd-how-it-works-heading {
    font-family: var(--hd-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    margin-bottom: 2rem;
}

/* Steps with timeline */
.hd-how-it-works-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hd-how-it-works-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    position: relative;
}

/* Timeline line connector */
.hd-how-it-works-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 2.5rem;
    width: 1px;
    height: calc(100% + 0.5rem);
    background: #e2e8f0;
}

.hd-how-it-works-number {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--hd-primary);
    border-radius: 50%;
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hd-primary);
    background: var(--hd-white);
    position: relative;
    z-index: 1;
}

.hd-how-it-works-step-title {
    font-family: var(--hd-font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    margin-bottom: 0.25rem;
}

.hd-how-it-works-step-desc {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    color: var(--hd-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.hd-how-it-works-cta {
    margin-top: 0.5rem;
}


/* ==========================================================================
   Section 5: Counters
   4-column counter grid with background image overlay.
   Background: primary-light with factory image at 10% opacity.
   ========================================================================== */

.hd-counters-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

/* Background layers */
.hd-counters-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hd-counters-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    filter: grayscale(100%);
}

.hd-counters-bg-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--hd-primary-light);
}

/* Container */
.hd-counters-container {
    position: relative;
    z-index: 1;
}

/* Counter grid */
.hd-counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

/* Dividers between items */
.hd-counter-item + .hd-counter-item {
    border-left: 1px solid rgba(197, 157, 95, 0.2);
}

.hd-counter-item {
    padding: 1.5rem 1rem;
}

/* Counter number */
.hd-counter-number {
    font-family: var(--hd-font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--hd-slate-800);
    line-height: 1.1;
    margin-bottom: 0;
    display: inline;
}

/* Counter suffix (+ or h) */
.hd-counter-suffix {
    font-family: var(--hd-font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--hd-slate-800);
    line-height: 1.1;
}

/* Counter label */
.hd-counter-label {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--hd-primary-dark);
    margin-top: 0.5rem;
    margin-bottom: 0;
}


/* ==========================================================================
   Section 6: CTA Banner + Trusted By
   Gold gradient CTA card followed by industry segment image cards.
   Background: white. Padding: 6rem.
   ========================================================================== */

.hd-trusted-section {
    background-color: var(--hd-white);
    padding: 6rem 0;
}

.hd-trusted-container {
    max-width: var(--hd-container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- CTA Banner --- */

.hd-cta-banner {
    position: relative;
    background: linear-gradient(135deg, #A68248, #C59D5F, #8c6d3a);
    border-radius: 2.5rem;
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
    margin-bottom: 5rem;
}

/* Decorative blur circles */
.hd-cta-banner-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(64px);
    pointer-events: none;
}

.hd-cta-banner-circle-1 {
    width: 12rem;
    height: 12rem;
    top: -3rem;
    left: -3rem;
}

.hd-cta-banner-circle-2 {
    width: 10rem;
    height: 10rem;
    bottom: -3rem;
    right: -3rem;
}

.hd-cta-banner-content {
    position: relative;
    z-index: 1;
}

.hd-cta-banner-heading {
    font-family: var(--hd-font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hd-slate-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hd-cta-banner-text {
    font-family: var(--hd-font-sans);
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 36rem;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hd-cta-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--hd-white);
    color: var(--hd-primary-dark);
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: var(--hd-radius-full);
    transition: all var(--hd-transition-base);
    box-shadow: var(--hd-shadow-soft);
}

.hd-cta-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--hd-shadow-layered-hover);
    color: var(--hd-primary-dark);
}

.hd-cta-banner-btn .material-symbols-outlined {
    font-size: 18px;
}

/* --- Trusted By section heading --- */

.hd-trusted-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hd-trusted-subtitle {
    font-family: var(--hd-font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--hd-primary);
    margin-bottom: 1rem;
}

.hd-trusted-heading {
    font-family: var(--hd-font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hd-charcoal);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Gold bar under heading */
.hd-trusted-heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--hd-primary);
    margin: 1rem auto 0;
}

/* Trusted-by card grid */
.hd-trusted-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Individual card */
.hd-trusted-card {
    position: relative;
    border-radius: var(--hd-radius-md);
    height: 18rem;
    overflow: hidden;
    cursor: pointer;
}

.hd-trusted-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: transform 700ms ease, filter 700ms ease;
}

.hd-trusted-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Card overlay gradient */
.hd-trusted-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 1;
    pointer-events: none;
}

/* Card content (icon + label) */
.hd-trusted-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hd-trusted-card-icon {
    color: var(--hd-primary);
}

.hd-trusted-card-icon .material-symbols-outlined {
    font-size: 24px;
}

.hd-trusted-card-label {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--hd-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ==========================================================================
   Section 7: Contact (#contact)
   Pixel-perfect match to Stitch screen_10 (lines 402-486).
   NO section header — the split-panel card IS the section content.
   Background: off-white (#f8f9fa). Padding: 6rem (py-24).
   ========================================================================== */

.hd-contact-section {
    background-color: var(--hd-bg-off-white);
    padding: 6rem 0;
}

/* Contact card (2-panel flex layout) */
.hd-contact-card {
    display: flex;
    flex-direction: row;
    gap: 0;
    max-width: 72rem;
    margin: 0 auto;
    background: var(--hd-white);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 1px 1px rgb(0 0 0 / 0.05), 0 10px 20px -5px rgb(0 0 0 / 0.05), 0 20px 40px -10px rgb(0 0 0 / 0.05);
    transition: box-shadow 0.5s ease;
}

.hd-contact-card:hover {
    box-shadow: 0 1px 1px rgb(0 0 0 / 0.05), 0 15px 30px -5px rgb(0 0 0 / 0.1), 0 30px 60px -10px rgb(0 0 0 / 0.1);
}

/* --- Left panel: Dark info (Stitch: flex-1 p-12 bg-slate-900) --- */

.hd-contact-info-panel {
    flex: 1;
    background-color: #0f172a;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* Decorative blur circle (Stitch: absolute top-0 right-0 w-64 h-64 bg-primary/10 blur-3xl) */
.hd-contact-blur-circle {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    background: rgba(197, 157, 95, 0.1);
    border-radius: 50%;
    filter: blur(48px);
    transform: translate(50%, -50%);
    pointer-events: none;
}

.hd-contact-info-content {
    position: relative;
    z-index: 1;
}

/* Heading: Stitch text-3xl font-display font-medium mb-6 */
.hd-contact-info-heading {
    font-family: var(--hd-font-display);
    font-size: 1.875rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* Description: Stitch text-slate-400 mb-12 font-light */
.hd-contact-info-text {
    font-family: var(--hd-font-sans);
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 3rem;
}

/* Contact items: Stitch space-y-8 */
.hd-contact-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Each item: Stitch flex items-start gap-4 group */
.hd-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* Icon circle: Stitch size-10 rounded-full bg-slate-800 */
.hd-contact-icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Hover: Stitch group-hover:bg-primary group-hover:text-white group-hover:shadow-glow-number */
.hd-contact-item:hover .hd-contact-icon-circle {
    background: var(--hd-gradient-metallic-gold);
    box-shadow: 0 0 15px rgba(197, 157, 95, 0.6);
}

.hd-contact-icon-circle .material-symbols-outlined {
    font-size: 18px;
    color: var(--hd-primary);
    transition: color 0.3s ease;
}

.hd-contact-item:hover .hd-contact-icon-circle .material-symbols-outlined {
    color: #ffffff;
}

/* Label: Stitch text-white font-bold */
.hd-contact-item-label {
    font-family: var(--hd-font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
}

/* Value: Stitch text-slate-400 text-sm mt-1 leading-relaxed + group-hover:text-slate-200 */
.hd-contact-item-value {
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.625;
    margin-top: 0.25rem;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.hd-contact-item:hover .hd-contact-item-value {
    color: #e2e8f0;
}

.hd-contact-item-value a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hd-contact-item:hover .hd-contact-item-value a,
.hd-contact-item-value a:hover {
    color: #e2e8f0;
}

/* Social section: Stitch pt-12 mt-8 border-t border-slate-800 */
.hd-contact-social-section {
    padding-top: 3rem;
    margin-top: 2rem;
    border-top: 1px solid #1e293b;
    position: relative;
    z-index: 1;
}

/* "Follow us" label: Stitch text-slate-500 text-xs uppercase tracking-widest mb-4 */
.hd-contact-social-label {
    font-family: var(--hd-font-sans);
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* Social link row: Stitch flex gap-4 */
.hd-contact-social {
    display: flex;
    gap: 1rem;
}

/* Social link circle: Stitch size-10 rounded-full bg-slate-800 text-slate-400 */
.hd-contact-social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border-radius: 50%;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover: Stitch hover:bg-primary hover:text-white hover:scale-110 */
.hd-contact-social-link:hover {
    background: var(--hd-primary);
    color: #ffffff;
    transform: scale(1.1);
}

/* SVG: Stitch w-5 h-5 */
.hd-contact-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* --- Right panel: White form (Stitch: flex-1 p-12 bg-white) --- */

.hd-contact-form-panel {
    flex: 1;
    background-color: #ffffff;
    padding: 3rem;
}

/* Form labels: Stitch text-xs font-bold uppercase text-slate-500 mb-2 tracking-widest */
.hd-contact-form-panel label,
.hd-contact-form-panel .wpcf7-form label {
    display: block;
    font-family: var(--hd-font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 0.5rem;
}

/* Form inputs: Stitch bg-background-off-white border-slate-200 rounded-lg px-4 py-3 */
.hd-contact-form-panel input[type="text"],
.hd-contact-form-panel input[type="email"],
.hd-contact-form-panel input[type="tel"],
.hd-contact-form-panel textarea,
.hd-contact-form-panel .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    color: #1e293b;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Focus: Stitch focus:border-primary focus:ring-1 focus:ring-primary */
.hd-contact-form-panel input:focus,
.hd-contact-form-panel textarea:focus,
.hd-contact-form-panel .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--hd-primary);
    box-shadow: 0 0 0 1px var(--hd-primary);
}

.hd-contact-form-panel input::placeholder,
.hd-contact-form-panel textarea::placeholder,
.hd-contact-form-panel .wpcf7-form-control::placeholder {
    color: #94a3b8;
}

/* Textarea: Stitch rows="4" */
.hd-contact-form-panel textarea {
    min-height: 100px;
    resize: vertical;
}

/* Form row layout: Stitch grid md:grid-cols-2 gap-6 */
.hd-contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Form groups: Stitch space-y-6 equivalent */
.hd-contact-form-group {
    margin-bottom: 1.5rem;
}

/* Groups inside a row should not have bottom margin */
.hd-contact-form-row .hd-contact-form-group {
    margin-bottom: 0;
}

/* Fallback form container */
.hd-fallback-form {
    display: flex;
    flex-direction: column;
}

/* Submit button: Stitch w-full bg-metallic-gold py-4 rounded-xl uppercase tracking-widest text-sm */
.hd-contact-submit,
.hd-contact-form-panel .wpcf7-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--hd-gradient-metallic-gold);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(197, 157, 95, 0.4);
}

/* Hover: Stitch hover:brightness-110 hover:scale-[1.02] hover:shadow-gold */
.hd-contact-submit:hover,
.hd-contact-form-panel .wpcf7-submit:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(197, 157, 95, 0.6);
}

/* CF7 overrides */
.hd-contact-form-panel .wpcf7 {
    width: 100%;
}

.hd-contact-form-panel .wpcf7-form {
    display: block;
}

/* CF7 wraps each field in a span — ensure it's block-level */
.hd-contact-form-panel .wpcf7-form-control-wrap {
    display: block;
}

/* CF7 wraps label+input in <p> with <br> — clean it up */
.hd-contact-form-panel .hd-contact-form-group p {
    margin: 0;
}

.hd-contact-form-panel .hd-contact-form-group p br {
    display: none;
}

/* CF7 submit is wrapped in <p> — remove margin */
.hd-contact-form-panel .wpcf7-form > p {
    margin-bottom: 0;
}

/* CF7 submit button is <input type="submit"> — ensure block-level full-width */
.hd-contact-form-panel .wpcf7-submit {
    display: block;
    text-align: center;
}

.hd-contact-form-panel .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: var(--hd-font-sans);
    font-size: 0.875rem;
}

.hd-contact-form-panel .wpcf7-form.sent .wpcf7-response-output {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.hd-contact-form-panel .wpcf7-form.failed .wpcf7-response-output,
.hd-contact-form-panel .wpcf7-form.aborted .wpcf7-response-output {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

.hd-contact-form-panel .wpcf7-not-valid-tip {
    font-family: var(--hd-font-sans);
    font-size: 0.8125rem;
    color: var(--hd-error);
    margin-top: 0.25rem;
}
