/* === DIAGRAM HOMEPAGE STYLES === */

.diagram-homepage {
    overflow-x: hidden;
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.dg-hero {
    position: relative;
    height: 100vh;
    min-height: 580px;
    overflow: hidden;
    background: #1a1a1a;
}

/* Each slide fills the hero and fades in/out */
.dg-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

.dg-hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.dg-hero-bg {
    position: absolute;
    inset: 0;
    /* Fallback gradient shown when no image is set in Customizer */
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: scale(1.02);
    transition: transform 8s ease-out;
}

.dg-hero.loaded .dg-hero-bg { transform: scale(1); }

.dg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(0,0,0,0.65) 0%,
        rgba(0,0,0,0.25) 60%,
        rgba(0,0,0,0.05) 100%
    );
}

.dg-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 64px 100px;
    max-width: 720px;
}

.dg-hero-tagline {
    font-family: var(--dg-font);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin: 0 0 14px;
}

.dg-hero-title {
    font-family: var(--dg-font);
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dg-white);
    margin: 0 0 32px;
    line-height: 1.08;
}

/* Slider dots */
.dg-hero-dots {
    position: absolute;
    bottom: 40px;
    left: 64px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dg-hero-dot {
    width: 28px;
    height: 2px;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.dg-hero-dot.active { background: var(--dg-white); }

/* =====================================================
   COLLECTIONS GRID
   ===================================================== */

.dg-collections {
    width: 100%;
    line-height: 0;
}

.dg-collections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.dg-collection-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #c8c0b8;
    line-height: 0;
}

.dg-collection-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.dg-collection-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.dg-collection-item:hover img {
    transform: scale(1.05);
}

.dg-collection-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background 0.45s ease;
}

.dg-collection-item:hover .dg-collection-overlay {
    background: rgba(0,0,0,0.18);
}

.dg-collection-name {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    background: #fff;
    color: #111;
    font-family: var(--dg-font);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1;
    padding: 10px 20px;
    white-space: nowrap;
    transition:
        bottom 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        font-size 0.45s ease,
        padding 0.45s ease,
        letter-spacing 0.45s ease;
}

.dg-collection-item:hover .dg-collection-name {
    bottom: 50%;
    transform: translate(-50%, 50%);
    font-size: 1.05rem;
    letter-spacing: 0.28em;
    padding: 14px 28px;
}

/* Placeholder for missing images — earthy fashion tones */
.dg-collection-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #b5a99a 0%, #8a7d70 100%);
}

/* Unique placeholder tones per grid slot */
.dg-collection-item:nth-child(1) .dg-collection-placeholder { background: linear-gradient(160deg, #c8bfb2 0%, #9a8e82 100%); }
.dg-collection-item:nth-child(2) .dg-collection-placeholder { background: linear-gradient(160deg, #2c3e50 0%, #1a2530 100%); }
.dg-collection-item:nth-child(3) .dg-collection-placeholder { background: linear-gradient(160deg, #d4c5b0 0%, #a89880 100%); }
.dg-collection-item:nth-child(4) .dg-collection-placeholder { background: linear-gradient(160deg, #3d4f4f 0%, #2a3535 100%); }
.dg-collection-item:nth-child(5) .dg-collection-placeholder { background: linear-gradient(160deg, #e8ddd0 0%, #c0b0a0 100%); }
.dg-collection-item:nth-child(6) .dg-collection-placeholder { background: linear-gradient(160deg, #1e3a5f 0%, #122540 100%); }

/* Placeholder SVG watermark */
.dg-collection-placeholder::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext x='50' y='55' font-family='sans-serif' font-size='8' fill='rgba(255,255,255,0.12)' text-anchor='middle' font-weight='700' letter-spacing='3'%3EDIAGRAM%3C/text%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
}

/* =====================================================
   LIFESTYLE BANNER
   ===================================================== */

.dg-lifestyle {
    position: relative;
    height: 58vh;
    min-height: 380px;
    overflow: hidden;
    background: var(--dg-navy);
}

.dg-lifestyle-bg {
    position: absolute;
    inset: 0;
    /* Fallback gradient when no lifestyle image is set */
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1c2e 50%, #0d0d0d 100%);
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.dg-lifestyle:hover .dg-lifestyle-bg { transform: scale(1.02); }

.dg-lifestyle-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.42);
}

.dg-lifestyle-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 28px;
    padding: 0 24px;
}

.dg-lifestyle-title {
    font-family: var(--dg-font);
    font-size: clamp(1.6rem, 4.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dg-white);
    margin: 0;
    line-height: 1.1;
}

/* =====================================================
   FEATURE / CAMPAIGN SECTION
   ===================================================== */

.dg-feature {
    width: 100%;
    overflow: hidden;
}

.dg-feature-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 75vh;
}

.dg-feature-video-wrap {
    position: relative;
    overflow: hidden;
    background: #111;
}

.dg-feature-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dg-feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* iframe embed (YouTube / Shorts) — scaled 300% so all YouTube UI chrome
   (title, logo, controls) falls outside the overflow:hidden container */
iframe.dg-feature-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.dg-feature-video-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #1e1e2a 0%, #2a2a3a 100%);
}

.dg-feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px 64px;
    background: var(--dg-offwhite);
}

.dg-feature-eyebrow {
    font-family: var(--dg-font);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--dg-muted);
    margin: 0 0 16px;
}

.dg-feature-title {
    font-family: var(--dg-font);
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dg-text);
    margin: 0 0 20px;
    line-height: 1.2;
}

.dg-feature-text {
    font-family: var(--dg-font);
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--dg-muted);
    margin: 0 0 36px;
    max-width: 420px;
}

/* =====================================================
   JOURNAL / BLOG SECTION
   ===================================================== */

.dg-journal {
    padding: 88px 48px 72px;
    max-width: 1440px;
    margin: 0 auto;
}

.dg-section-title {
    font-family: var(--dg-serif);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 400;
    font-style: italic;
    color: var(--dg-text);
    text-align: center;
    margin: 0 0 52px;
    letter-spacing: 0.01em;
}

.dg-journal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 44px;
}

.dg-journal-item {
    display: flex;
    flex-direction: column;
}

.dg-journal-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #e0ddd8;
    margin-bottom: 16px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.dg-journal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.dg-journal-thumb:hover img { transform: scale(1.06); }

.dg-journal-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e8e3de 0%, #d4cec8 100%);
}

/* Alternate placeholder tones for journal posts */
.dg-journal-item:nth-child(1) .dg-journal-thumb { background: linear-gradient(145deg, #c8a882 0%, #a8845e 100%); }
.dg-journal-item:nth-child(2) .dg-journal-thumb { background: linear-gradient(145deg, #2c3e50 0%, #1a2530 100%); }
.dg-journal-item:nth-child(3) .dg-journal-thumb { background: linear-gradient(145deg, #1e1e1e 0%, #2d2d2d 100%); }
.dg-journal-item:nth-child(4) .dg-journal-thumb { background: linear-gradient(145deg, #c0392b 0%, #8c1a12 100%); }

.dg-journal-cat {
    font-family: var(--dg-font);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dg-muted);
    display: block;
    margin-bottom: 7px;
    text-decoration: none !important;
}

.dg-journal-date {
    font-family: var(--dg-font);
    font-size: 0.7rem;
    color: rgba(102,102,102,0.7);
    margin-bottom: 8px;
}

.dg-journal-title {
    font-family: var(--dg-font);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    color: var(--dg-text);
}

.dg-journal-title a {
    color: var(--dg-text) !important;
    text-decoration: none !important;
}

.dg-journal-title a:hover { opacity: 0.6; }

.dg-journal-footer {
    text-align: center;
    padding-top: 8px;
}

/* =====================================================
   FEATURES STRIP
   ===================================================== */

.dg-strip {
    background: var(--dg-offwhite);
    border-top: 1px solid var(--dg-border);
    border-bottom: 1px solid var(--dg-border);
    padding: 64px 48px;
}

.dg-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.dg-strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.dg-strip-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--dg-border);
    background: var(--dg-white);
}

.dg-strip-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--dg-text);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dg-strip-item h4 {
    font-family: var(--dg-font);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dg-text);
    margin: 0;
}

.dg-strip-item p {
    font-family: var(--dg-font);
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--dg-muted);
    margin: 0;
    max-width: 200px;
}

/* =====================================================
   RESPONSIVE — HOMEPAGE
   ===================================================== */

@media (max-width: 1200px) {
    .dg-feature-content { padding: 56px 48px; }
    .dg-journal { padding: 72px 32px 56px; }
}

@media (max-width: 1024px) {
    .dg-journal-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .dg-hero-content { padding: 0 48px 80px; }
    .dg-hero-dots { left: 48px; }
}

@media (max-width: 900px) {
    .dg-feature-inner { grid-template-columns: 1fr; }
    .dg-feature-video-wrap { height: 420px; }
    .dg-feature-content { padding: 48px 32px; }
    .dg-feature-text { max-width: 100%; }
}

@media (max-width: 768px) {
    .dg-hero-content { padding: 0 28px 72px; max-width: 100%; }
    .dg-hero-dots { left: 28px; bottom: 32px; }

    .dg-lifestyle { height: 50vh; }
    .dg-lifestyle-title { font-size: 1.6rem; }

    .dg-journal { padding: 56px 20px 44px; }
    .dg-journal-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    .dg-strip { padding: 48px 20px; }
    .dg-strip-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .dg-strip-item p { font-size: 0.75rem; }
}

@media (max-width: 600px) {
    .dg-hero { height: 85vh; }
    .dg-hero-title { font-size: 2rem; }

    .dg-collections-grid { grid-template-columns: 1fr; }
    .dg-collection-item { aspect-ratio: 3/2; }

    .dg-feature-video-wrap { height: 340px; }
    .dg-feature-content { padding: 36px 20px; }

    .dg-journal-grid { grid-template-columns: 1fr; }

    .dg-strip-grid { grid-template-columns: 1fr; max-width: 320px; }
}

@media (max-width: 480px) {
    .dg-hero-content { padding: 0 20px 60px; }
    .dg-hero-dots { left: 20px; }
    .dg-lifestyle { height: 44vh; min-height: 280px; }
}
