/* ABOUT PAGE - BASE STYLES */
.story-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.story-text > * + * { margin-top: 18px; }
.story-text p { color: var(--muted); line-height: 1.8; }
.story-img-wrap { position: relative; }
.story-main-img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
.story-float { position: absolute; bottom: -24px; left: -24px; width: 180px; height: 140px; border-radius: var(--r); overflow: hidden; border: 5px solid #fff; box-shadow: var(--sh-md); }
.story-float img { width: 100%; height: 100%; object-fit: cover; }
.story-stat-badge { position: absolute; top: 30px; right: -20px; background: var(--brown); color: #fff; padding: 20px 24px; border-radius: var(--r); text-align: center; box-shadow: var(--sh-md); }
.story-stat-badge .sn { font-family: var(--font-d); font-size: 2.4rem; font-weight: 700; color: var(--terra-lt); display: block; line-height: 1; }
.story-stat-badge .sl { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.founder-quote { background: var(--cream-warm); border-left: 4px solid var(--terra); padding: 28px 30px; border-radius: 0 var(--r) var(--r) 0; margin-top: 32px !important; }
.fq-mark { font-family: var(--font-d); font-size: 3.5rem; color: var(--terra); opacity: .5; line-height: 1; margin-bottom: 6px; }
.fq-text { font-family: var(--font-d); font-size: 1.12rem; font-style: italic; color: var(--brown); line-height: 1.65; margin-bottom: 12px; }
.fq-author { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* NUMBERS */
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.num-card { padding: 48px 32px; text-align: center; border-right: 1px solid rgba(250,246,240,.1); position: relative; }
.num-card:last-child { border-right: none; }
.num-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--terra), var(--olive)); transform: scaleX(0); transition: transform .5s var(--ease); }
.num-card:hover::before, .num-card.visible::before { transform: scaleX(1); }
.big-n { font-family: var(--font-d); font-size: 3.4rem; font-weight: 700; color: var(--terra-lt); display: block; line-height: 1; margin-bottom: 8px; }
.n-label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,246,240,.5); }

/* MISSION VISION */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mv-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 44px 36px; transition: all .4s var(--ease); position: relative; overflow: hidden; }
.mv-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--terra), var(--olive)); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.mv-card:hover::after { transform: scaleX(1); }
.mv-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.mv-card.center { background: var(--brown); border-color: var(--brown); transform: scale(1.04); }
.mv-card.center:hover { transform: scale(1.04) translateY(-6px); }
.mv-card.center h3 { color: #fff; }
.mv-card.center p { color: rgba(250,246,240,.68); }
.mv-icon { font-size: 2.6rem; margin-bottom: 22px; }
.mv-card h3 { font-family: var(--font-d); font-size: 1.4rem; font-weight: 700; color: var(--brown); margin-bottom: 14px; }
.mv-card p { font-size: .9rem; color: var(--muted); line-height: 1.78; }

/* TIMELINE */
.timeline { max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 2px; background: linear-gradient(to bottom, var(--terra), var(--olive)); }
.tl-item { display: flex; justify-content: flex-end; width: 50%; padding: 0 48px 52px 0; position: relative; }
.tl-item.right { justify-content: flex-start; margin-left: 50%; padding: 0 0 52px 48px; }
.tl-dot { position: absolute; right: -10px; top: 8px; width: 20px; height: 20px; background: var(--terra); border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--terra); z-index: 1; }
.tl-item.right .tl-dot { right: auto; left: -10px; }
.tl-box { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 28px; max-width: 320px; transition: all .4s; }
.tl-box:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }
.tl-year { display: inline-block; background: var(--terra); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .1em; padding: 5px 14px; border-radius: 100px; margin-bottom: 12px; }
.tl-box h4 { font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; color: var(--brown); margin-bottom: 8px; }
.tl-box p { font-size: .86rem; color: var(--muted); line-height: 1.65; }

/* CERTS */
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cert-card { background: var(--cream-warm); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px 28px; text-align: center; transition: all .4s var(--ease); }
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); background: #fff; }
.cert-icon { font-size: 2.6rem; margin-bottom: 16px; }
.cert-card h4 { font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; color: var(--brown); margin-bottom: 10px; }
.cert-card p { font-size: .86rem; color: var(--muted); line-height: 1.65; }

/* CTA BANNER */
.cta-section { position: relative; padding: 100px 24px; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg-layer { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,14,8,.88) 0%, rgba(107,123,58,.75) 100%); }
.cta-inner { position: relative; z-index: 2; }
.cta-inner h2 { font-family: var(--font-d); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; color: #fff; margin-bottom: 16px; }
.cta-inner h2 em { color: var(--terra-lt); }
.cta-inner p { font-size: 1.1rem; color: rgba(250,246,240,.72); max-width: 520px; margin: 0 auto 44px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }


/* =========================================
   RESPONSIVE DESIGN (Overhauled)
========================================= */

/* Laptops & Tablets (Max 1024px) */
@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .story-stat-badge { right: 20px; } /* Prevent badge from hugging the edge too tightly */
  
  /* Make Numbers a 2x2 Grid */
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .num-card { border-right: none; border-bottom: 1px solid rgba(250,246,240,.1); }
  /* Re-add center borders for the 2x2 layout */
  .num-card:nth-child(odd) { border-right: 1px solid rgba(250,246,240,.1); }
  /* Remove bottom borders from the last row */
  .num-card:nth-last-child(-n+2) { border-bottom: none; }

  /* Mission & Vision to single column */
  .mv-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .mv-card.center { transform: scale(1); } /* Stop the middle card from overlapping boundaries */
  .mv-card.center:hover { transform: translateY(-6px); }
  
  /* Team & Certs to 2 columns */
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets Portrait & Large Mobile (Max 768px) */
@media (max-width: 768px) {
  .story-main-img { height: 420px; }
  .story-float { left: 10px; bottom: -16px; width: 140px; height: 110px; } /* Shrink the floating image a bit */
  
  /* Timeline to Single Column (Left-Aligned) */
  .timeline::before { left: 20px; }
  .tl-item, .tl-item.right { width: 100%; margin-left: 0; padding: 0 0 40px 56px; justify-content: flex-start; }
  .tl-dot, .tl-item.right .tl-dot { right: auto !important; left: 10px !important; }
  .tl-box { max-width: 100%; }
  
  /* Reduce heavy padding on CTA */
  .cta-section { padding: 80px 24px; }
}

/* Mobile Phones (Max 480px) */
@media (max-width: 480px) {
  .story-main-img { height: 320px; }
  .story-stat-badge { position: relative; top: -30px; right: 0; width: 80%; margin: 0 auto; } /* Bring badge inline so it doesn't break layout */
  .story-float { display: none; } /* Too crowded on small screens */

  /* Founder Quote adjustments */
  .founder-quote { padding: 20px; }
  .fq-mark { font-size: 2.5rem; }
  .fq-text { font-size: 1rem; }

  /* Numbers Grid to 1 Column */
  .numbers-grid { grid-template-columns: 1fr; }
  .num-card { padding: 32px 20px; border-right: none !important; border-bottom: 1px solid rgba(250,246,240,.1) !important; }
  .num-card:last-child { border-bottom: none !important; }
  .big-n { font-size: 2.8rem; }

  /* Mission & Vision Padding Reduction */
  .mv-card { padding: 32px 24px; }
  
  /* Team & Certs to 1 Column */
  .certs-grid { grid-template-columns: 1fr; }
  
  /* CTA Banner adjustments */
  .cta-section { padding: 60px 20px; }
  .cta-btns { flex-direction: column; width: 100%; }
  .cta-btns > * { width: 100%; text-align: center; } /* Ensure buttons span full width if desired */
}

/* ===========================
   FOUNDER SECTION
=========================== */

.founder-section{
    position:relative;
}

.founder-card{
    background:#fff;
    border-radius:28px;
    overflow:hidden;
    display:grid;
    grid-template-columns:380px 1fr;
    box-shadow:0 25px 60px rgba(0,0,0,.08);
    border:1px solid var(--border);
}

.founder-image{
    height:100%;
}

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

.founder-content{
    padding:60px;
}

.founder-label{
    display:inline-block;
    padding:10px 18px;
    background:rgba(201,119,88,.1);
    color:var(--terra);
    font-size:.75rem;
    font-weight:700;
    letter-spacing:.1em;
    text-transform:uppercase;
    border-radius:100px;
    margin-bottom:20px;
}

.founder-content h3{
    font-family:var(--font-d);
    font-size:3rem;
    color:var(--brown);
    margin-bottom:20px;
}

.founder-content p{
    color:var(--muted);
    line-height:1.9;
    margin-bottom:18px;
}

.founder-stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:30px;
}

.stat-box{
    background:var(--cream-warm);
    padding:24px;
    text-align:center;
    border-radius:18px;
}

.stat-box span{
    display:block;
    font-family:var(--font-d);
    font-size:2rem;
    font-weight:700;
    color:var(--terra);
    margin-bottom:5px;
}

.stat-box small{
    color:var(--muted);
    font-size:.85rem;
}

.founder-quote-box{
    margin-top:30px;
    padding:25px;
    border-left:4px solid var(--terra);
    background:var(--cream-warm);
    border-radius:0 16px 16px 0;
}

.founder-quote-box p{
    margin:0;
    font-family:var(--font-d);
    font-size:1.2rem;
    font-style:italic;
    color:var(--brown);
}

/* TABLET */

@media(max-width:992px){

.founder-card{
    grid-template-columns:1fr;
}

.founder-image{
    height:450px;
}

.founder-content{
    padding:40px;
}

}

/* MOBILE */

@media(max-width:768px){

.founder-image{
    height:350px;
}

.founder-content{
    padding:30px 24px;
}

.founder-content h3{
    font-size:2.2rem;
}

.founder-stats{
    grid-template-columns:1fr;
}

}

/* ==========================
   PREMIUM FOOTER BOTTOM
========================== */

.footer-bottom{
    padding:28px 0;

    border-top:1px solid rgba(255,255,255,.08);

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:25px;

    font-size:.92rem;
}

.footer-copy{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    color:rgba(255,255,255,.65);
}

.footer-divider{
    flex:1;
    height:1px;
    background:linear-gradient(
        to right,
        transparent,
        rgba(212,175,55,.25),
        transparent
    );
}

.footer-credit{
    display:flex;
    align-items:center;
    gap:10px;
    color:rgba(255,255,255,.65);
}

.dws-link{
    display:flex;
    align-items:center;
    gap:8px;

    color:#D4AF37;
    text-decoration:none;
    font-weight:700;
    letter-spacing:.05em;
    text-transform:uppercase;

    transition:.35s ease;
}

.dws-link:hover{
    color:#fff;
    transform:translateY(-2px);
}

.dws-dot{
    width:8px;
    height:8px;
    border-radius:50%;

    background:#D4AF37;

    box-shadow:
        0 0 10px #D4AF37,
        0 0 20px rgba(212,175,55,.5);
}

@media(max-width:768px){

.footer-bottom{
    flex-direction:column;
    text-align:center;
    gap:15px;
}

.footer-divider{
    width:100%;
}

.footer-copy,
.footer-credit{
    justify-content:center;
}

}

.scroll-top{
    width:58px;
    height:58px;

    margin:0 auto 30px;

    border:none;
    border-radius:50%;

    background:linear-gradient(
        135deg,
        #c97758,
        #d78d6f
    );

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    box-shadow:
        0 12px 30px rgba(201,119,88,.35);

    transition:.35s ease;
}

.scroll-top:hover{
    transform:translateY(-6px);
}