/* ============================================
   RK Landmark Projects Pvt Ltd — Global Styles
   ============================================ */

:root {
    --primary: #ff5e5e;
    --dark: #222;
    --dark-2: #3b3b3b;
    --light: #f8f9fa;
    --light-2: #eef0f2;
    --gold: #dcb692;
    --text: #333;
    --heading: #222;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, .06);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .10);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .18);
    --radius: 14px;
    --container: 1200px;
    --transition: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

h1,
h2,
h3,
h4 {
    color: var(--heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s var(--transition);
    white-space: nowrap;
}

.btn-primary,
.btn-quote {
    background: var(--primary);
    color: #fff
}

.btn-primary:hover,
.btn-quote:hover {
    opacity: .9;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 94, 94, .35)
}

.btn-dark {
    background: var(--dark);
    color: #fff
}

.btn-dark:hover {
    background: var(--dark-2);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3)
}

/* ---------- Section Heading w/ underline ---------- */
.section {
    padding: 100px 0
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 14px;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin: 18px auto 0;
}

.section-sub {
    text-align: center;
    color: #666;
    max-width: 640px;
    margin: 0 auto 60px;
    font-size: 15px
}

/* ============================================
   NAVBAR & LOGO
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: background .35s var(--transition), box-shadow .35s var(--transition), padding .25s var(--transition);
}

.navbar.transparent {
    background: transparent
}

.navbar.inner {
    background: var(--light-2)
}

.navbar.scrolled {
    background: #eae1e1;
    box-shadow: var(--shadow-sm);
    /* CHANGED: 8px top, 0px sides, 2px bottom (decreased bottom padding) */
    padding: 8px 0 2px 0;
}

.nav-wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    /* Crucial for absolute centering of links */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--heading);
    font-size: 18px;
    letter-spacing: .02em;
    min-width: 250px;
    margin-left: -50px;
    /* Physically pulls logo to the left */
}

.logo-mark {
    display: flex;
    align-items: center;
    background: transparent;
    box-shadow: none;
}

/* Base Logo Size and Transition */
.logo-img {
    height: 180px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: height 0.35s var(--transition);
    margin-right: auto;
}

/* Shrink logo when the navbar gets the 'scrolled' class */
/* Shrink logo when the navbar gets the 'scrolled' class */
.navbar.scrolled .logo-img {
    height: 130px;
    /* CHANGED: Increased from 100px so it stays larger */
    margin-bottom: -5px;
    /* NEW: Pulls the logo tighter to the bottom edge */
}

.navbar.transparent:not(.scrolled) .logo,
.navbar.transparent:not(.scrolled) .nav-links a {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4)
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;

    /* Locks the links to the exact dead-center of the screen */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--heading);
    position: relative;
    padding: 6px 0;
    transition: color .2s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left
}

.nav-links a:hover {
    color: var(--primary)
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--heading);
    transition: all .3s
}

.navbar.transparent:not(.scrolled) .hamburger span {
    background: #fff
}

/* Mobile slide-in */
.mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
    transform: translateX(100%);
    transition: transform .35s var(--transition);
    z-index: 1100;
    padding: 80px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-panel.open {
    transform: translateX(0)
}

.mobile-panel a {
    padding: 14px 0;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    color: var(--heading);
    font-size: 15px;
    letter-spacing: .04em;
    text-transform: uppercase
}

.mobile-panel .btn {
    margin-top: 20px
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: var(--heading)
}

.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.backdrop.open {
    opacity: 1;
    pointer-events: auto
}

@media(max-width:900px) {
    /* FORCES TEAM IMAGES TO SHOW ON MOBILE */
    .editorial-row .ed-photo-wrap,
    .editorial-row .ed-photo {
        display: block !important;
        width: 100%; /* Ensures it fits the phone screen nicely */
        margin-bottom: 20px;
    }
    .nav-links,
    .nav-cta {
        display: none
    }
    /* 1. Reduces the invisible spacer that pushes content below the navbar */
    .page-spacer {
        height: 70px !important; /* Change this number to make it tighter or looser */
    }

    /* 2. Reduces the top padding inside the actual sections */
    .section {
        padding-top: 30px !important; /* Reduces the gap above the page titles */
    }
    
    /* 3. If your page titles have too much margin above them, this tightens it */
    .section-title {
        margin-top: 0 !important; 
    }

    .hamburger {
        display: flex
    }

    .logo {
        margin-left: -35px;
        /* Negative margin pulls it further to the left edge */
        min-width: auto;
    }

    /* Hides the main image on the About Us / Team page on mobile */
   
    /* =========================================
       LOCK MOBILE LOGO & NAVBAR ON SCROLL 
       ========================================= */
    
    /* Forces the logo to stay exactly the same size on mobile, scrolling or not */
    .logo-img, 
    .navbar.scrolled .logo-img {
        height: 100px; /* You can adjust this number if you want it bigger/smaller */
        margin-bottom: 0; 
        transition: none; /* Stops the shrinking animation */
    }

    /* Keeps the navigation bar from shifting up or down when scrolling */
    .navbar, 
    .navbar.scrolled {
        padding: 8px 0; 
    }
    /* =========================================
       PERFECT MOBILE VIEW ADJUSTMENTS
       ========================================= */
       
    /* 1. Force hide the About/Team image on mobile */
    

    /* Centers the text perfectly since the image is removed */
    .editorial-row .ed-info {
        text-align: center;
        padding: 0 15px;
    }

    /* 2. Make the Mobile Menu sleeker (takes up less screen space) */
    .mobile-panel {
        width: 240px !important; /* Reduced from 300px for a much cleaner look */
        padding: 70px 24px 24px !important; /* Tighter padding to match the new width */
    }
    
    /* Slightly shrinks the menu text so it fits the new slimmer menu beautifully */
    .mobile-panel a {
        font-size: 14px !important;
        padding: 12px 0 !important;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .6)), url('../images/hero.jpg') center/cover no-repeat;
    display: grid;
    place-items: center;
    color: #fff;
    text-align: center;
    padding: 0 24px;
}

.hero-content {
    max-width: 820px;
    animation: fadeUp 1s var(--transition) both
}

.hero h1 {
    color: #fff;
    font-size: clamp(10px, 7vw, 42px);
    font-weight: 500;
    letter-spacing: -.02em;
    margin-bottom: 18px;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    opacity: .9;
    margin-bottom: 36px;
    font-weight: 300
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ============================================
   CONCEPT TO CREATION (w/ Floating Logo)
   ============================================ */
.concept {
    background: #fff
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.concept-left h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    margin-bottom: 8px;
    position: relative;
    display: inline-block
}

.concept-left h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin-top: 14px;
    transition: width .5s var(--transition);
}

.concept-left:hover h2::after {
    width: 100%
}

.concept-left p {
    margin: 18px 0;
    color: #555
}

.concept-left .btn {
    margin-top: 18px
}

.slider {
    position: relative;
    height: 440px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform .4s var(--transition), box-shadow .4s var(--transition);
}

.slider:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg)
}

.slider-track {
    position: absolute;
    inset: 0;
    animation: slide 12s infinite
}

.slider-track .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: transform .6s var(--transition), filter .6s var(--transition);
}

.slider:hover .slider-track {
    animation-play-state: paused
}

.slider:hover .slide {
    transform: scale(1.05);
    filter: brightness(1.1)
}

@keyframes slide {

    0%,
    28% {
        opacity: 0
    }

    4%,
    24% {
        opacity: 1
    }
}

.slide-1 {
    animation: s1 12s infinite
}

.slide-2 {
    animation: s2 12s infinite
}

.slide-3 {
    animation: s3 12s infinite
}

@keyframes s1 {

    0%,
    33% {
        opacity: 1
    }

    40%,
    100% {
        opacity: 0
    }
}

@keyframes s2 {

    0%,
    33% {
        opacity: 0
    }

    40%,
    66% {
        opacity: 1
    }

    73%,
    100% {
        opacity: 0
    }
}

@keyframes s3 {

    0%,
    66% {
        opacity: 0
    }

    73%,
    100% {
        opacity: 1
    }

    93%,
    100% {
        opacity: 0
    }
}

/* --- Floating Logo Overlay for the Slider & About Page --- */
.slider-logo-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.slider-logo-overlay img {
    width: 160px;
    height: auto;
    display: block;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.3));
}

@media(max-width:800px) {
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .slider {
        height: 320px
    }

    .slider-logo-overlay img {
        width: 120px;
    }
}

/* ============================================
   SERVICES — flip cards
   ============================================ */
.services {
    padding: 140px 0 100px;
    background: #fff
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.flip-card {
    height: 400px;
    perspective: 1200px
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .7s var(--transition);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg)
}

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: var(--shadow-md);
}

.flip-front {
    background: #fff;
    display: flex;
    flex-direction: column
}

.flip-front .img {
    flex: 1;
    background-size: cover;
    background-position: center
}

.flip-front .label {
    padding: 22px;
    text-align: center;
    background: #fff
}

.flip-front h3 {
    font-size: 18px;
    margin-bottom: 10px
}

.flip-front h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: var(--primary);
    margin: 10px auto 0
}

.flip-back {
    background: var(--primary);
    color: #fff;
    transform: rotateY(180deg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.flip-back h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 14px
}

.flip-back p {
    font-size: 14px;
    opacity: .95;
    margin-bottom: 22px;
    line-height: 1.6
}

.flip-back .btn {
    background: #fff;
    color: var(--primary);
    padding: 11px 22px;
    font-size: 12px
}

.flip-back .btn:hover {
    background: var(--dark);
    color: #fff
}

/* Special cards with list */
.flip-back.list {
    justify-content: flex-start;
    padding: 30px 26px;
    text-align: left
}

.flip-back.list ul {
    list-style: none;
    margin-top: 14px;
    flex: 1
}

.flip-back.list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    font-size: 14px;
    font-weight: 600;
}

.flip-back.list li:last-child {
    border-bottom: none
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: 140px 0 80px;
    background: #fff
}

.contact-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.contact-card h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 14px
}

.contact-card h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--primary);
    margin: 18px auto 0
}

.contact-card .intro {
    color: #666;
    max-width: 560px;
    margin: 0 auto 50px
}

/* Triangle Grid for 3 items (2 on top, 1 centered bottom) */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-box {
    background: var(--light);
    border-left: 5px solid var(--primary);
    padding: 24px;
    border-radius: 10px;
    text-align: left;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform .3s var(--transition), box-shadow .3s var(--transition);
}

.contact-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md)
}

.contact-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
}

.contact-box h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
    color: var(--primary)
}

.contact-box p {
    font-size: 15px;
    color: var(--heading);
    font-weight: 500;
    line-height: 1.5
}

/* Forces the address box to the second row and centers it */
.contact-box.address-box {
    grid-column: 1 / -1;
    max-width: 388px;
    margin: 0 auto;
    width: 100%;
}

.map-wrap {
    max-width: 1100px;
    margin: 60px auto 0;
    border-radius: 15px;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: var(--shadow-md);
}

.map-wrap iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
    filter: grayscale(80%);
    transition: filter .5s var(--transition);
}

.map-wrap:hover iframe {
    filter: grayscale(0%)
}

@media(max-width:700px) {
    .contact-card {
        padding: 40px 24px
    }

    .contact-grid {
        grid-template-columns: 1fr
    }

    .contact-box.address-box {
        max-width: 100%;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: #aaa;
    padding: 60px 0 24px
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px 40px;
    border-bottom: 1px solid #333;
}

.footer h4 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 18px
}

.footer p,
.footer a {
    font-size: 14px;
    line-height: 1.8;
    color: #aaa
}

.footer a:hover {
    color: var(--primary)
}

.footer .brand {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
    display: block
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 14px
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b3b3b;
    color: #fff;
    display: grid;
    place-items: center;
    transition: all .25s;
}

.socials a:hover {
    background: var(--primary);
    transform: translateY(-3px)
}

.copyright {
    text-align: center;
    padding-top: 24px;
    font-size: 13px;
    color: #777
}

@media(max-width:700px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center
    }

    .socials {
        justify-content: center
    }
}

/* ============================================
   WHATSAPP FAB
   ============================================ */
.whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
    transition: all .25s var(--transition);
}

.whatsapp:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .4)
}

.whatsapp svg {
    width: 20px;
    height: 20px;
    fill: #25D366
}

.page-spacer {
    height: 80px
}

/* ============================================
   ABOUT — EDITORIAL TEAM / TEAM SLIDER
   ============================================ */
.team {
    padding: 140px 0 100px;
    background: hsl(0, 0%, 100%);
}

.editorial-row {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.ed-meta {
    flex: 1;
    text-align: right;
}

.ed-role {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.ed-divider {
    height: 3px;
    width: 50px;
    background-color: var(--heading);
    margin-left: auto;
}

.ed-photo-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ed-photo {
    width: 100%;
    max-width: 320px;
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
}

.editorial-row:hover .ed-photo {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.ed-info {
    flex: 1;
    /* Changed from 1.5 to 1. This guarantees the image sits in the exact center! */
}

.ed-name {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--heading);
}

.ed-bio {
    color: var(--text);
    line-height: 1.5;
    text-align: justify;
    letter-spacing: 0.2px;
}

/* ============================================
   TEAM SLIDER LOGIC & FLOATING BUTTONS
   ============================================ */
.team-slider-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 10px;
}

.team-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.team-slide {
    min-width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

.team.editorial-team .container {
    position: relative;
}

/* Moves the buttons to the left column, right under the Role text */
.team-controls {
    position: absolute;
    top: 50%;
    left: 24px;
    width: calc((100% - 80px) / 3);
    transform: translateY(-50%);
    display: flex;
    justify-content: flex-end;
    gap: 12px;

    /* CHANGED: Increased from 75px to 100px to push it exactly 25px further down */
    margin-top: 200px;

    z-index: 10;
    pointer-events: none;
}

.team-nav-btn {
    pointer-events: auto;
    background-color: var(--light-2);
    color: var(--heading);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    /* Resetting the margin from our last step */
}

.team-nav-btn:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Keeps them centered and looking good on mobile phones */
@media (max-width: 900px) {
    /* Fix overlapping buttons on mobile */
    .team-controls {
        position: relative; /* Stops the buttons from floating over the text */
        top: auto;
        left: auto;
        transform: none; /* Removes the centering pull */
        width: 100%;
        justify-content: center; /* Centers the buttons horizontally */
        margin-top: 30px; /* Adds a nice gap between the bio text and the buttons */
    }
}

@media (max-width: 900px) {
    .editorial-row {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        margin-bottom: 60px;
    }

    .ed-meta {
        text-align: center;
    }

    .ed-divider {
        margin: 10px auto 0;
    }

    .ed-photo {
        height: 350px;
    }

    .team-controls {
        top: 35%;
        /* Keeps it aligned with the image on mobile */
        width: 340px;
        /* Hugs the image slightly tighter on small screens */
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .team-nav-btn {
        margin: 0 -10px;
        width: 45px;
        height: 45px;
    }

}


.about-full-img {
    width: 100%;           /* Ensures it still spans the width of its container */
    height: 400px;         /* Adjust this height value to control how much is cut from the bottom */
    object-fit: cover;     /* Prevents distortion */
    object-position: top;  /* Anchors the image to the top, cropping the bottom */
    
    /* Optional: Add a nice border radius to match modern designs */
    border-radius: 8px;    
  }

/* ============================================
   SERVICES HUB CARDS
   ============================================ */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Forces 3 side-by-side columns */
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.hub-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
    color: var(--heading);
    text-decoration: none;
}

.hub-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.hub-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.hub-card-content {
    padding: 30px 24px;
    text-align: center;
    flex-grow: 1;
}

.hub-card-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
}

.hub-card-content p {
    font-size: 15px;
    color: #555;
    margin: 0;
}

@media (max-width: 900px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }

    /* Stacks them vertically on phones */
}

/* ============================================
   PRICING PACKAGES (Construction Page)
   ============================================ */
/* ============================================
   PRICING PACKAGES (Interactive Accordion)
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.pricing-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-header {
    padding: 24px;
    text-align: center;
    color: #fff;
}

.pricing-header h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.pricing-header .price {
    font-size: 1.2rem;
    font-weight: 700;
}

.pricing-body {
    padding: 0;
}
.price{
    margin-top: 2px;
}

/* --- Accordion (Details/Summary) Styling --- */
.pricing-category {
    border-bottom: 1px solid #eee;
}

.pricing-category summary {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--heading);
    cursor: pointer;
    list-style: none;
    /* Removes default browser triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.2s;
}

/* Hides default triangle in Safari */
.pricing-category summary::-webkit-details-marker {
    display: none;
}

.pricing-category summary:hover {
    background: var(--light-2);
}

.pricing-header .package-desc {
    margin-top: 0;
    margin-bottom: 5px; /* Change this number to 0 if you want them practically touching */
    color: #fff; /* Ensures the text stays white against the background */
}
/* Custom Down/Up Arrow */
.pricing-category summary .arrow::after {
    content: "↓";
    font-size: 16px;
    color: #888;
    transition: transform 0.3s;
}

/* Flips the arrow when the accordion is open */
.pricing-category[open] summary .arrow::after {
    content: "↑";
    color: var(--primary);
}

/* --- Feature List Styling --- */
.feature-list {
    list-style: none;
    padding: 10px 24px 20px;
    margin: 0;
    background: #fafafa;
}

.feature-list li {
    position: relative;
    padding: 8px 0 8px 24px;
    /* Space for the icon */
    font-size: 13px;
    font-weight: 500;
    color: #555;
    line-height: 1.5;
    border-bottom: 1px dashed #e0e0e0;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Green Checkmark for Included Items */
.feature-list .included::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #27ae60;
    font-weight: 800;
    font-size: 14px;
}

/* Red X for Excluded Items */
.feature-list .not-included::before {
    content: "✕";
    position: absolute;
    left: 0;
    top: 8px;
    color: #e74c3c;
    font-weight: 800;
    font-size: 14px;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* ============================================
   TRUSTED BY MARQUEE (Continuous Scroll)
   ============================================ */
.trusted-section {
    overflow: hidden;
}

.trusted-title {
    text-align: center;
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    font-weight: 600;
}

.logo-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Creates a subtle fade-out effect on the left and right edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-marquee-track {
    display: flex;
    width: fit-content;
    /* 20s controls the speed. Lower = faster, Higher = slower */
    animation: scrollLogos 20s linear infinite;
}

.logo-marquee-track:hover {
    animation-play-state: paused;
}

.logo-marquee-group {
    display: flex;
    align-items: center;
    gap: 80px;
    padding-right: 80px;
    /* Crucial for seamless loop spacing */
}

.partner-logo {
    height: 55px;
    /* Restricts all logos to the same height */
    width: auto;
    object-fit: contain;
    /* Greyscale effect for a clean, uniform look */
    filter: grayscale(100%) opacity(60%);
    transition: filter 0.3s var(--transition), transform 0.3s var(--transition);
    cursor: pointer;
}

.partner-logo:hover {
    /* Brings the logo back to full color on hover */
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.05);
}

/* Perfect Loop Animation */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .partner-logo {
        height: 40px;
    }

    .logo-marquee-group {
        gap: 40px;
        padding-right: 40px;
    }

    .trusted-title {
        font-size: 12px;
    }
}
/* =========================================
   SIDE-BY-SIDE DESKTOP TEAM SECTION 
   ========================================= */
@media (min-width: 901px) {
    
    /* 1. Force a perfect side-by-side layout */
    .editorial-row {
        display: flex;
        flex-direction: row; /* Puts image on the left, text on the right */
        max-width: 1000px; /* Gives the section room to breathe */
        margin: 0 auto 60px; 
        gap: 60px; /* Clean, professional gap between photo and text */
        align-items: center; /* Vertically centers the text next to the image */
    }
    
    /* 2. Control BOTH width and height of the photo so it never looks ugly */
    .editorial-row .ed-photo-wrap {
        flex: 0 0 300px; /* Strict fixed width */
        width: 300px;
        height: 400px; /* Strict fixed height */
        overflow: hidden;
        border-radius: 8px; /* Adds a clean, slight curve to the photo corners */
    }

    /* 3. This is the magic rule that stops the image from stretching/squashing */
    .editorial-row .ed-photo {
        width: 100%;
        height: 100%;
        object-fit: cover; 
    }
    
    /* 4. Align the text area to take up the right side */
    .editorial-row .ed-info {
        flex: 1;
        text-align: left; /* Aligns text neatly beside the image */
    }
    
    /* 5. Refine typography */
    .editorial-row .ed-info h2 {
        font-size: 32px; 
        margin-bottom: 5px;
    }
    
    .editorial-row .ed-info .role {
        font-size: 18px; 
        margin-bottom: 25px;
        font-weight: 500;
    }
    
    .editorial-row .ed-info p {
        font-size: 16px; 
        line-height: 1.7;
    }
    
    /* The buttons remain completely untouched! */
}
/* =========================================
   3-IN-A-ROW FLIP CARDS (Desktop Only)
   ========================================= */
@media (min-width: 901px) {
    
    /* 1. Force the grid to be exactly 3 columns wide */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px; /* Creates clean breathing room between the 3 cards */
        max-width: 1050px; /* Keeps the whole section from stretching too wide */
        margin: 0 auto;
    }

    /* 2. Shrink the height and width of the flip cards */
    .flip-card {
        height: 300px; /* Much more compact height */
        width: 100%;
        background-color: transparent;
        perspective: 1000px; /* Keeps the 3D flip effect working perfectly */
    }

    /* 3. Refine the typography on the FRONT of the card */
    .flip-front .label {
        padding: 15px; /* Tighter padding for a smaller card */
    }

    .flip-front .label h3 {
        font-size: 18px; /* Crisper, smaller font */
        margin: 0;
    }

    /* 4. Refine the typography on the BACK of the card */
    .flip-back {
        padding: 25px 20px; /* Neatly spaces the text inside the smaller box */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .flip-back h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .flip-back p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    
    /* 5. Tidy up the list items (Residential, Commercial, etc.) */
    .flip-back.list ul {
        width: 100%;
        padding: 0;
    }
    
    .flip-back.list li {
        font-size: 14px;
        margin-bottom: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Shrink the mini buttons slightly */
    .mini-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
}
.package-desc {
    font-size: 10px;
    color: #fff ;
    line-height: 1.5;
    margin-bottom: 20px; /* Gives nice breathing room before the details tag */
    text-align: center; /* Or 'left' if you prefer */
}
/* =========================================
   FOOTER LOGO STYLING
   ========================================= */
.footer-logo {
    max-width: 150px; /* Adjust this number to make the logo larger or smaller */
    margin-bottom: 15px; /* Adds nice spacing between the logo and the paragraph below it */
    display: block;
}
/* =========================================
   FOOTER SOCIAL ICONS
   ========================================= */
.social-icons {
    margin-top: 15px;
}

/* =========================================
   FOOTER SOCIAL ICONS
   ========================================= */
.social-icons {
    margin-top: 15px;
}

.insta-icon {
    /* CHANGE THE HEX CODE BELOW TO WHATEVER COLOR YOU WANT */
    color: #c38b55; /* Currently set to the gold/brown from your Classic Package */
    transition: transform 0.2s ease, color 0.2s ease;
}

.insta-icon:hover {
    color: #E1306C; /* Turns to Instagram pink when hovered */
    transform: scale(1.1); 
}