/* =============================================
   Devon Deer Services — Modern Stylesheet
   ============================================= */

/* ---------- VARIABLES ---------- */
:root {
    --color-primary: #4a6741;          /* deep forest green */
    --color-primary-dark: #2f4228;
    --color-accent: #b88a4a;           /* warm earth gold */
    --color-dark: #1a1f1a;
    --color-darker: #0f1410;
    --color-light: #f7f5f0;            /* cream */
    --color-white: #ffffff;
    --color-text: #2a2f28;
    --color-muted: #6b7065;
    --color-border: #e4e1d8;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.10);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);

    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---------- UTILITIES ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--dark { background: var(--color-dark); color: var(--color-light); }

.section__header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section__tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
}
.section__tag--light { color: var(--color-accent); }
.section__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-dark);
    margin-bottom: 20px;
}
.section__title--light { color: var(--color-white); }
.section__lead {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}
.section__lead--light { color: rgba(255,255,255,0.75); }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}
.btn--primary { background: transparent; border-color: rgba(74,103,65,1); color: white; }
.btn--primary:hover { background: var(--color-primary-dark); color: white; }

/* Contact form submit button — green text by default */
.contact__form .btn--primary { color: var(--color-primary); }
.contact__form .btn--primary:hover { color: #fff; }
.btn--outline { background: transparent; border-color: rgba(255,255,255,0.6); color: white; }
.btn--outline:hover { background: white; color: var(--color-dark); border-color: white; }
.btn--dark { background: var(--color-dark); color: white; }
.btn--dark:hover { background: var(--color-darker); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--block { width: 100%; }

/* ---------- HEADER / NAV ---------- */
.header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    background: transparent;
}
/* scrolled state disabled — header scrolls away with hero */
.header.scrolled {
    background: transparent;
    box-shadow: none;
    padding: 16px 0;
    backdrop-filter: none;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__logo {
    display: flex;
    align-items: center;
    max-height: 60px;
    transition: max-height var(--transition);
}
.nav__logo {
    display: flex;
    align-items: center;
    max-height: 70px;
    color: #ffffff;           /* controls SVG currentColor */
    transition: max-height var(--transition);
}
.nav__logo-img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    transition: height var(--transition), filter var(--transition);
}
.header.scrolled .nav__logo { max-height: 55px; }
.header.scrolled .nav__logo-img { height: 48px; }

/* Smaller on mobile so it doesn't overlap the hamburger */
@media (max-width: 600px) {
    .nav__logo-img { height: 48px; max-width: 170px; }
    .header.scrolled .nav__logo-img { height: 42px; }
}
.nav__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav__link {
    padding: 10px 18px;
    font-weight: 500;
    font-size: 0.95rem;
    color: white;
    border-radius: 50px;
    transition: all var(--transition);
}
.header.scrolled .nav__link { color: var(--color-text); }
.nav__link:hover { color: var(--color-accent); }
.nav__link.active {
    color: var(--color-accent);
    font-weight: 600;
}

/* Don't show underline on the Contact CTA button even if it's active */
.nav__link.nav__cta.active::after { display: none; }
.nav__cta {
    background: var(--color-accent);
    color: white !important;
}
.nav__cta:hover { background: var(--color-primary); color: white !important; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav__toggle span {
    width: 26px; height: 2px;
    background: white;
    transition: all var(--transition);
}
.header.scrolled .nav__toggle span { background: var(--color-dark); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}
.hero__slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
}
.hero__slide.active { opacity: 1; }

.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(15,20,16,0.85), rgba(15,20,16,0.4));
    z-index: 2;
}
.hero__content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding-top: 180px;
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .hero__content { padding-top: 140px; }
}
.hero__tag {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}
.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.5vw, 4.6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}
.hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 620px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.85);
}
.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
}
.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 6px;
}
.stat span { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: bounce 2s infinite;
}
.hero__scroll a {
    display: flex;
    align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
    font-size: 1.2rem;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }

/* ---------- ABOUT ---------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about__images {
    position: relative;
    height: 600px;
}
.about__img {
    position: absolute;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
}
.about__img--main {
    width: 75%; height: 75%;
    top: 0; left: 0;
    z-index: 2;
}
.about__img--sub {
    width: 55%; height: 55%;
    bottom: 0; right: 0;
    z-index: 3;
    border: 8px solid var(--color-light);
}
.about__img:hover { transform: scale(1.02); }
.about__badge {
    position: absolute;
    top: 20px; right: 10%;
    z-index: 4;
    background: var(--color-accent);
    color: white;
    padding: 18px 24px;
    border-radius: 50%;
    width: 110px; height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-md);
    animation: slowSpin 20s linear infinite;
}
.about__badge strong { font-size: 1.5rem; }
.about__badge span { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; }
@keyframes slowSpin { to { transform: rotate(360deg); } }

.about__features {
    margin: 28px 0 36px;
}
.about__features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-weight: 500;
}
.tick {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-size: 0.85rem;
}

/* ---------- SERVICES ---------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.service-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    background: rgba(255,255,255,0.06);
}
.service-card__image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.service-card__image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,20,16,0.6), transparent);
}
.service-card__number {
    position: absolute;
    top: 20px; left: 20px;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-accent);
    background: rgba(15,20,16,0.7);
    padding: 4px 14px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}
.service-card__body { padding: 32px; flex: 1; display: flex; flex-direction: column; }
.service-card__body h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 14px;
    color: white;
}
.service-card__body p { color: rgba(255,255,255,0.72); margin-bottom: 20px; }
.service-card__list {
    margin-bottom: 24px;
}
.service-card__list li {
    position: relative;
    padding: 6px 0 6px 22px;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}
.service-card__list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}
.service-card__link {
    margin-top: auto;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    align-self: flex-start;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}
.service-card__link:hover { border-color: var(--color-accent); }

/* ---------- GALLERY ---------- */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}
.gallery__item {
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery__item:hover::after { opacity: 1; }

/* ---------- TESTIMONIALS ---------- */
.testimonials__slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 340px;
}
.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
    pointer-events: none;
}
.testimonial.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
@media (max-width: 600px) {
    .testimonials__slider { min-height: 400px; }
}
.testimonial__stars {
    color: var(--color-accent);
    font-size: 1.3rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
}
.testimonial__text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 28px;
    font-style: italic;
}
.testimonial__author strong {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-dark);
}
.testimonial__author span { color: var(--color-muted); font-size: 0.9rem; }
.testimonials__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}
.testimonials__dots button {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    transition: all var(--transition);
}
.testimonials__dots button.active {
    background: var(--color-primary);
    width: 30px;
    border-radius: 10px;
}

/* ---------- CONTACT ---------- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}
.contact__details {
    margin-top: 40px;
}
.contact__details li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact__icon {
    display: flex;
    align-items: center; justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact__details strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 4px;
}
.contact__details a, .contact__details span { color: white; font-size: 1.05rem; }
.contact__details a:hover { color: var(--color-accent); }

.contact__form {
    background: var(--color-light);
    color: var(--color-text);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.contact__form h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 28px;
    color: var(--color-dark);
}
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form__field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}
.form__field label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}
.form__field input,
.form__field select,
.form__field textarea {
    padding: 14px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: white;
    color: var(--color-text);
    transition: border-color var(--transition);
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.form__field textarea { resize: vertical; min-height: 120px; }
.form__field.error input,
.form__field.error select,
.form__field.error textarea {
    border-color: #c0392b;
}
.form__error {
    font-size: 0.82rem;
    color: #c0392b;
    margin-top: 6px;
    min-height: 1em;
}
.form__status {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
    display: none;
}
.form__status.success { display: block; background: #e6efe3; color: var(--color-primary-dark); }
.form__status.error { display: block; background: #fdecea; color: #c0392b; }

/* ---------- FOOTER ---------- */
.footer {
    background: var(--color-darker);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
    position: relative;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 20px;
}
.footer__logo-img {
    height: 70px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}
@media (max-width: 600px) {
    .footer__logo-img { height: 56px; max-width: 220px; }
}
.footer__col h4 {
    color: white;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.15rem;
}
.footer__col ul li { padding: 6px 0; }
.footer__col ul li a:hover { color: var(--color-accent); }
.footer__bottom {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 24px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-size: 1.3rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    z-index: 50;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--color-accent); transform: translateY(-4px); }

/* ---------- ANIMATIONS (on scroll) ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 60px; }
    .about__images { height: 500px; max-width: 600px; margin: 0 auto; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .nav__menu {
        position: fixed;
        top: 0; right: -100%;
        width: 75%; max-width: 320px;
        height: 100vh;
        background: var(--color-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 90px 30px 30px;
        gap: 8px;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-lg);
    }
    .nav__menu.active { right: 0; }
    .nav__link { color: white; padding: 14px 18px; border-radius: var(--radius-sm); }
    .header.scrolled .nav__link { color: white; }
    .nav__toggle { display: flex; z-index: 101; }
    .nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav__toggle.active span:nth-child(2) { opacity: 0; }
    .nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav__toggle.active span { background: white !important; }

    .hero__buttons { flex-direction: column; align-items: stretch; }
    .hero__stats { gap: 25px; }
    .stat strong { font-size: 1.8rem; }

    .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
    .gallery__item--wide { grid-column: span 2; }

    .form__row { grid-template-columns: 1fr; gap: 0; }
    .contact__form { padding: 30px 24px; }

    .footer__grid { grid-template-columns: 1fr; gap: 40px; }
    .footer__bottom { flex-direction: column; text-align: center; padding: 30px 24px 0; }
}

@media (max-width: 480px) {
    .hero__content { padding-top: 80px; }
    .hero__tag { font-size: 0.7rem; padding: 6px 14px; }
    .about__images { height: 400px; }
    .about__badge { width: 90px; height: 90px; padding: 10px; }
    .about__badge strong { font-size: 1.2rem; }
    .testimonial__text { font-size: 1.15rem; }
    .contact__form { padding: 26px 18px; }
    .section { padding: 60px 0; }
}
/* =============================================
   FOUNDER / TEAM SECTION
   ============================================= */
.founder {
    background: var(--color-light);
    position: relative;
}

.founder__card {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 60px;
    align-items: stretch;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(26, 31, 26, 0.10);
    border: 1px solid rgba(74, 103, 65, 0.08);
    max-width: 1150px;
    margin: 0 auto;
}

.founder__image {
    position: relative;
    min-height: 560px;
    overflow: hidden;
}
.founder__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}
.founder__card:hover .founder__image img {
    transform: scale(1.04);
}

.founder__badge {
    position: absolute;
    bottom: 25px;
    left: 25px;
    background: var(--color-primary);
    color: #fff;
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 3px solid rgba(255, 255, 255, 0.9);
}
.founder__badge strong {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1;
    color: var(--color-accent);
}
.founder__badge span {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.85);
}

.founder__body {
    padding: 55px 55px 50px;
    display: flex;
    flex-direction: column;
}

.founder__name {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    color: var(--color-primary);
    margin: 0 0 6px;
    line-height: 1.1;
}
.founder__role {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(184, 138, 74, 0.2);
}

.founder__bio {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: 32px;
}

.founder__quals-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-dark);
    margin: 0 0 18px;
    position: relative;
    padding-left: 16px;
}
.founder__quals-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 22px;
    background: var(--color-accent);
    border-radius: 3px;
}

.founder__quals {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    gap: 12px;
}
.founder__quals li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--color-light);
    border-radius: 10px;
    border-left: 3px solid var(--color-primary);
    transition: transform 0.3s ease, background 0.3s ease;
}
.founder__quals li:hover {
    background: #efebe0;
    transform: translateX(4px);
}
.founder__qual-icon {
    position: relative;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: #fff;
    padding: 0;
    line-height: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    color: var(--color-primary);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.founder__qual-icon svg {
    width: 22px;
    height: 22px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    overflow: visible;
}
.founder__quals li:hover .founder__qual-icon {
    background: var(--color-primary);
    color: var(--color-accent);
    transform: scale(1.05);
}
.founder__quals li strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-dark);
    font-weight: 600;
}
.founder__quals li span {
    display: block;
    font-size: 0.82rem;
    color: rgba(42, 47, 40, 0.65);
    margin-top: 2px;
}

.founder__body .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Tablet */
@media (max-width: 1024px) {
    .founder__card {
        grid-template-columns: 380px 1fr;
        gap: 0;
    }
    .founder__body { padding: 45px 40px; }
    .founder__image { min-height: 520px; }
}

/* Mobile */
@media (max-width: 768px) {
    .founder__card {
        grid-template-columns: 1fr;
    }
    .founder__image {
        min-height: 400px;
    }
    .founder__body {
        padding: 40px 28px 36px;
    }
    .founder__name {
        font-size: 1.8rem;
    }
}

/* =============================================
   FOOTER TERMS LINK
   ============================================= */
.footer__links {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.footer__terms-link {
    color: var(--color-accent);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer__terms-link:hover { color: #fff; text-decoration: underline; }
.footer__sep { opacity: 0.4; }

/* =============================================
   TERMS & CONDITIONS MODAL
   ============================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}
.modal.open { display: flex; }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 12, 0.75);
    backdrop-filter: blur(4px);
    animation: fadeBg 0.3s ease;
}
@keyframes fadeBg { from { opacity: 0; } to { opacity: 1; } }

.modal__dialog {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(26, 31, 26, 0.08);
    color: var(--color-dark);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    z-index: 2;
}
.modal__close:hover {
    background: var(--color-primary);
    color: #fff;
    transform: rotate(90deg);
}

.modal__header {
    padding: 40px 50px 20px;
    border-bottom: 1px solid rgba(74, 103, 65, 0.12);
    background: linear-gradient(180deg, #f7f5f0 0%, #fff 100%);
}
.modal__title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--color-primary);
    margin: 8px 0 8px;
    line-height: 1.15;
}
.modal__subtitle {
    font-size: 0.95rem;
    color: rgba(42, 47, 40, 0.7);
    margin: 0;
}

.modal__body {
    padding: 30px 50px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.7;
    color: var(--color-text);
    font-size: 0.95rem;
}

.modal__body::-webkit-scrollbar { width: 8px; }
.modal__body::-webkit-scrollbar-track { background: #f0ece2; border-radius: 10px; }
.modal__body::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 10px; }
.modal__body::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

.terms__list {
    list-style: none;
    counter-reset: terms;
    padding: 0;
    margin: 0 0 30px;
}
.terms__list li {
    counter-increment: terms;
    position: relative;
    padding: 14px 0 14px 48px;
    border-bottom: 1px dashed rgba(74, 103, 65, 0.15);
}
.terms__list li:last-child { border-bottom: none; }
.terms__list li::before {
    content: counter(terms, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-accent);
    background: var(--color-light);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.terms__list a { color: var(--color-primary); text-decoration: none; border-bottom: 1px dotted var(--color-primary); }
.terms__list a:hover { color: var(--color-accent); border-color: var(--color-accent); }

.terms__payment {
    margin-top: 30px;
    padding: 30px;
    background: var(--color-light);
    border-left: 4px solid var(--color-primary);
    border-radius: 10px;
}
.terms__payment h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin: 0 0 14px;
    font-size: 1.3rem;
}
.terms__bank {
    list-style: none;
    padding: 0;
    margin: 10px 0 18px;
    display: grid;
    gap: 8px;
}
.terms__bank li {
    padding: 10px 14px;
    background: #fff;
    border-radius: 6px;
    font-size: 0.92rem;
}
.terms__bank strong {
    color: var(--color-dark);
    display: inline-block;
    min-width: 130px;
}
.terms__note {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(42, 47, 40, 0.75);
    font-style: italic;
}

.modal__footer {
    padding: 20px 50px 30px;
    border-top: 1px solid rgba(74, 103, 65, 0.08);
    display: flex;
    justify-content: flex-end;
    background: #fafaf7;
}

body.modal-open { overflow: hidden; }

/* Mobile */
@media (max-width: 640px) {
    .modal__header { padding: 35px 25px 18px; }
    .modal__body   { padding: 25px 22px; }
    .modal__footer { padding: 18px 22px 24px; }
    .terms__list li { padding-left: 42px; }
    .terms__list li::before { width: 30px; height: 30px; font-size: 0.85rem; }
    .terms__payment { padding: 20px; }
    .terms__bank strong { min-width: 100%; display: block; margin-bottom: 2px; }
}

/* GALLERY LIGHTBOX */
.gallery__item img { cursor: zoom-in; }

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 12, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}
.lightbox-overlay.open {
    display: flex !important;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.lightbox-overlay .lb-btn {
    position: absolute;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay .lb-btn:hover { background: #b88a4a; border-color: #b88a4a; }
.lightbox-overlay .lb-close { top: 25px; right: 25px; }
.lightbox-overlay .lb-prev  { left: 25px; top: 50%; transform: translateY(-50%); }
.lightbox-overlay .lb-next  { right: 25px; top: 50%; transform: translateY(-50%); }

.lightbox-overlay .lb-count {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
}

body.lb-lock { overflow: hidden; }