/* ==================== D7 MASTER STYLES ==================== */
/* This file contains all page-specific styles for Demand7 */
/* Sections: Colours, Services, Lead Generation, Signal Intelligence, ABM, GTM Engineering, Wave Logic */

/* ==================== COLOURS ==================== */

:root {
    --primary: #17EAEA;
    --secondary: #3333EA;
    --tertiary: #01019E;
    --quaternary: #A1F7F7;
    --grey: #E3E3EB;
    --bg: #FDFAF7;
    --text-main: #111315;
    --white: #FFFFFF;
}

/* ==================== HOMEPAGE SERVICES SECTION ==================== */

.services-section-hp {
    background-color: var(--bg);
    padding: 100px 0 150px;
}

.mission-hp {
    padding: 120px 40px 60px;
    background: var(--quaternary);
}

/* ==================== SERVICE PAGE HERO ==================== */

.service-hero {
    position: relative;
    background-color: var(--tertiary);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    
    /* Fixed height + vertical centering */
    min-height: 700px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 200px 0 250px 0; 
}

/* Overlay (creates the "washed" effect over the image) */
.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tertiary);
    opacity: 0.75; 
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    text-align: center;
}

.service-hero-quote {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 30px;
}

.service-hero-quote span {
    color: var(--primary);
}

.service-hero-subtext {
    font-size: 22px;
    color: var(--grey);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ======= SERVICE LIST SECTION (from G7 for /services/default.php) ======== */

.services-section {
    background-color: var(--grey);
    padding: 100px 0 250px;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.services-rotating-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--tertiary);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.2;
}

.services-text-part {
    display: inline;
}


.services-subtext {
    font-size: 20px;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--text-main);
}

/* --- Service Quick Grid (4 Boxes) --- */
.services-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-quick-box {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 40px 30px;
    text-align: center;
}

/* overlay (similar to service hero sections) */
.service-quick-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tertiary);
    opacity: 0.85;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.service-quick-box:hover .service-quick-overlay {
    opacity: 0.75;
}

.service-quick-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.service-quick-box h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.service-quick-box p {
    font-size: 18px;
    line-height: 1.5;
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 20px;
}

.service-quick-arrow {
    font-size: 18px;
    font-weight: 600;
    color: var(--quaternary);
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-quick-box:hover .service-quick-arrow {
    transform: translateX(5px);
}

.service-quick-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* ==================== SERVICE LIST SECTION (D7) ==================== */

.service-list-section {
    padding: 80px 0 150px;
    background-color: var(--bg);
}

.service-list-intro {
    text-align: center;
    margin-bottom: 60px;
}

.service-list-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 20px;
}

.service-list-subtitle {
    font-size: 20px;
    color: var(--text-main);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.service-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-item-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 12px;
}

.service-item-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}



/* ==================== SPOTLIGHT SECTION ==================== */

.spotlight-section {
    padding: 100px 0 150px;
}

.spotlight-section.bg-dark {
    background-color: var(--tertiary);
}

.spotlight-section.bg-light {
    background-color: var(--bg);
}

.spotlight-section.bg-grey {
    background-color: var(--grey);
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.spotlight-grid.reverse {
    direction: rtl;
}

.spotlight-grid.reverse > * {
    direction: ltr;
}

.spotlight-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 15px;
}

.spotlight-label.dark {
    color: var(--secondary);
}

.spotlight-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.bg-dark .spotlight-title {
    color: var(--white);
}

.bg-light .spotlight-title,
.bg-grey .spotlight-title {
    color: var(--tertiary);
}

.spotlight-text {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.bg-dark .spotlight-text {
    color: var(--grey);
}

.bg-light .spotlight-text,
.bg-grey .spotlight-text {
    color: var(--text-main);
}

.spotlight-text strong {
    color: var(--primary);
}

.bg-light .spotlight-text strong,
.bg-grey .spotlight-text strong {
    color: var(--secondary);
}

/* Spotlight Steps */
.spotlight-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.spotlight-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.spotlight-step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background-color: var(--primary);
    color: var(--tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.spotlight-step-text {
    font-size: 17px;
    line-height: 1.5;
    padding-top: 6px;
}

.bg-dark .spotlight-step-text {
    color: var(--grey);
}

.bg-light .spotlight-step-text,
.bg-grey .spotlight-step-text {
    color: var(--text-main);
}

.spotlight-step-text strong {
    color: var(--white);
}

.bg-light .spotlight-step-text strong,
.bg-grey .spotlight-step-text strong {
    color: var(--tertiary);
}

/* ==================== TESTIMONIAL SECTION ==================== */

.testimonial-section {
    padding: 80px 40px 150px;
    background: linear-gradient(135deg, var(--secondary) 100%, var(--secondary) 100%);
    text-align: center;
}

.quote-large {
    font-size: 32px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto 30px;
}

.quote-mark {
    color: var(--primary);
    font-size: 48px;
}

.testimonial-attribution {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.testimonial-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--quaternary);
}

.testimonial-role {
    font-size: 16px;
    color: var(--grey);
}

/* ==================== SERVICES GRID (Main Services Page) ==================== */

.services-grid-section {
    padding: 80px 0 250px;
    background-color: var(--grey);
}

.services-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.services-grid-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--tertiary);
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-main);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.service-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 17px;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-card-link {
    color: var(--secondary);
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.service-card:hover .service-card-link {
    color: var(--tertiary);
}

/* ==================== MANIFESTO SECTION ==================== */

.manifesto-section {
    padding: 100px 0 150px;
    background-color: var(--bg);
}

.manifesto-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.manifesto-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--tertiary);
    text-align: center;
    margin-bottom: 30px;
}

.manifesto-intro {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 50px;
}

.manifesto-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.manifesto-pillar {
    padding: 30px;
    border-left: 4px solid var(--primary);
    background-color: var(--white);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.manifesto-pillar h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 10px;
}

.manifesto-pillar p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

/* ==================== WHY US SECTION ==================== */

.why-us-section {
    padding: 100px 0 150px;
    background-color: var(--white);
}

.why-us-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.why-us-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--tertiary);
    text-align: center;
    margin-bottom: 60px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-us-item {
    text-align: center;
    padding: 30px 20px;
}

.why-us-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-us-icon img {
    width: 100px;
    height: 100px;
}

.why-us-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 10px;
}

.why-us-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
}

/* ==================== OUR PROMISE SECTION ==================== */

.promise-section {
    padding: 80px 0 250px;
    background-color: var(--quaternary);
}

.promise-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.promise-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--tertiary);
    text-align: center;
    margin-bottom: 50px;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.promise-item {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.promise-item-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 5px;
}

.promise-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 10px;
}

.promise-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

/* ==================== COMPARISON TABLE (Signal Intelligence) ==================== */

.comparison-section {
    padding: 100px 0 150px;
    background-color: var(--bg);
}

.comparison-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.comparison-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--tertiary);
    text-align: center;
    margin-bottom: 20px;
}

.comparison-subtitle {
    font-size: 20px;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.comparison-table thead {
    background-color: var(--tertiary);
}

.comparison-table th {
    padding: 20px 25px;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.comparison-table th:first-child {
    width: 20%;
}

.comparison-table th.old-intent {
    background-color: #666;
    width: 40%;
}

.comparison-table th.new-signals {
    background-color: var(--secondary);
    width: 40%;
}

.comparison-table td {
    padding: 20px 25px;
    font-size: 16px;
    line-height: 1.6;
    border-bottom: 1px solid var(--grey);
    vertical-align: top;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: 700;
    color: var(--tertiary);
    background-color: rgba(161, 247, 247, 0.2);
}

.comparison-table .highlight-cell {
    background-color: rgba(23, 234, 234, 0.1);
}

/* ==================== SIGNALS GRID ==================== */

.signals-section {
    padding: 100px 0 200px;
    background-color: var(--grey);
}

.signals-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.signals-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--tertiary);
    text-align: center;
    margin-bottom: 20px;
}

.signals-subtitle {
    font-size: 18px;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.signals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.signal-card {
    background: var(--white);
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.signal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.signal-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

.signal-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.signal-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

/* ==================== THE CHOICE SECTION (GTM Engineering) ==================== */

.choice-section {
    padding: 80px 0 150px;
    background-color: var(--bg);
}

.choice-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.choice-intro {
    text-align: center;
    margin-bottom: 50px;
}

.choice-intro h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 20px;
}

.choice-intro p {
    font-size: 18px;
    color: var(--text-main);
    max-width: 700px;
    margin: 0 auto;
}

/* the choice image wrapper */

.the-choice-image-wrapper {
    margin-bottom: 65px;
    border-radius: 12px;
}

.the-choice-image {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 10px;
    display: block;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    cursor: pointer;
}

.the-choice-image:hover {
    transform: scale(1.02);
}

.the-choice-image img {
    width: 100%;
    height: auto;
    display: block;
}

.the-choice-image:hover .spotlight-zoom-indicator {
    background: var(--secondary);
}

/* ======================= */


.choice-hero-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    cursor: pointer;
}

.choice-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.choice-column {
    padding: 40px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.choice-column.traditional {
    border-top: 4px solid #666;
}

.choice-column.modern {
    border-top: 4px solid var(--primary);
}

.choice-column h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.choice-column.traditional h3 {
    color: #666;
}

.choice-column.modern h3 {
    color: var(--secondary);
}

.choice-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.choice-column ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
    border-bottom: 1px solid var(--grey);
}

.choice-column ul li:last-child {
    border-bottom: none;
}

.choice-column ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.choice-column.traditional ul li::before {
    background-color: #999;
}

.choice-column.modern ul li::before {
    background-color: var(--primary);
}


/* ==================== BRIDGE SECTION ==================== */

.bridge-section {
    padding: 100px 0 250px;
    background-color: var(--tertiary);
}

.bridge-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.bridge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.bridge-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.bridge-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bridge-content {
    color: var(--white);
}

.bridge-content h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
}

.bridge-content .highlight {
    color: var(--primary);
}

.bridge-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--grey);
    margin-bottom: 25px;
}

.bridge-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.bridge-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.bridge-feature-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.bridge-feature span {
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
}

/* ==================== GTM7 TEASER SECTION ==================== */

.gtm7-teaser-section {
    padding: 100px 0 100px;
    background-color: var(--bg);
}

.gtm7-teaser-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.gtm7-teaser-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.gtm7-teaser-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 20px;
}

.gtm7-teaser-content .brand-highlight {
    color: #E97E00;
}

.gtm7-teaser-content p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 25px;
}

.gtm7-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.gtm7-service-tag {
    background-color: rgba(233, 126, 0, 0.15);
    color: #E97E00;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.gtm7-teaser-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.gtm7-teaser-image img {
    width: 100%;
    height: auto;
    display: block;
}

.btn-g7 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 40px;
    background: #E97E00;
    color: var(--white);
    border: none;
    border-radius: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-g7:hover {
    background: #FFC785;
    color: var(--text-main);
}

/* ==================== CLIENT LOGOS STRIP ==================== */

.clients-strip {
    padding: 60px 0 80px;
    background-color: var(--bg);
}

.clients-strip-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.clients-strip-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    opacity: 0.6;
    margin-bottom: 25px;
}

.clients-strip-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.clients-strip-logos img {
    height: 30px;
    width: auto;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}


.clients-strip-logos img:hover {
    opacity: 1;
    filter: grayscale(10%);
}


/* ==================== AI INTRO SECTION ==================== */

.ai-intro-section {
    padding: 80px 0 40px;
    background-color: var(--bg);
}

.ai-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.ai-intro-text {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 20px;
}

.ai-intro-text:last-child {
    margin-bottom: 0;
}

.ai-intro-text strong {
    color: var(--tertiary);
}

/* Numbered approach items (e.g. "1. Signal intelligence — We use...") */
.ai-approach-list {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-approach-item {
    padding: 20px 25px;
    border-left: 4px solid var(--primary);
    background-color: var(--white);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ai-approach-item strong {
    color: var(--tertiary);
    font-size: 18px;
}

.ai-approach-item p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
}

/* Inline feature list (e.g. target companies that...) */
.ai-feature-list {
    margin: 20px 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-feature-list li {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-main);
    padding-left: 24px;
    position: relative;
}

.ai-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
}

/* ==================== AI BRANDING BENEFIT ITEMS ==================== */

.ai-benefits {
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ai-benefit-item {
    padding: 20px 25px;
    border-left: 4px solid var(--primary);
    background-color: var(--white);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ai-benefit-item strong {
    display: block;
    color: var(--tertiary);
    font-size: 17px;
    margin-bottom: 6px;
}

.ai-benefit-item p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
}

/* ==================== CROSS-BRAND LINK STYLES ==================== */

.brand-link-a7 {
    color: #7D8001;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.brand-link-a7:hover {
    color: #AAAE01;
}

.brand-link-g7 {
    color: #7C3400;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.brand-link-g7:hover {
    color: #E97E00;
}

/* ==================== A7 BUTTON STYLE (for dual CTA) ==================== */

.btn-a7 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 40px;
    background: #BFEA17;
    color: #111315;
    border: none;
    border-radius: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-a7:hover {
    background: #E5F7A1;
    color: #111315;
}

/* ==================== A7 SOLUTION SECTION (for AI Reporting page) ==================== */

.d7-a7-solution {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background-color: var(--bg);
}

.d7-solution-header {
    margin-bottom: 40px;
    width: 100%;
}

.d7-solution-content-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 0;
}

.d7-solution-text-col {
    position: relative;
    z-index: 2;
}

.d7-solution-text-col .ai-intro-text {
    font-size: 20px;
    line-height: 1.6;
}

.d7-option-block {
    margin: 25px 0;
    padding-left: 25px;
    border-left: 5px solid var(--secondary);
}

.d7-option-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-main);
}

.d7-solution-visual-col {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.d7-solution-mockup {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(51, 51, 234, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 1;
}

.d7-solution-mockup:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(51, 51, 234, 0.2);
}

/* ==================== STATUS SECTION (for AI Reporting page) ==================== */

.d7-status-section {
    padding: 20px 0 60px;
    background-color: var(--bg);
}

.d7-status-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 40px;
}

.d7-status-text {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.d7-status-text:last-child {
    margin-bottom: 0;
}

/* ==================== SPOTLIGHT CALLOUT TEXT ==================== */
/* Used for "Interested in the long-term game?" type callouts within spotlights */

.spotlight-callout {
    margin-top: 30px;
    padding: 20px 25px;
    background-color: rgba(255,255,255,0.08);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    font-size: 17px;
    line-height: 1.6;
}

.bg-dark .spotlight-callout {
    color: var(--grey);
}

.bg-light .spotlight-callout {
    background-color: var(--white);
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.spotlight-callout a {
    font-weight: 600;
}


/* ==================== RESPONSIVE (AI TECHNOLOGY SECTION) ==================== */

@media (max-width: 900px) {
    .ai-intro-section {
        padding: 60px 0 30px;
    }

    .ai-benefits {
        grid-template-columns: 1fr;
    }

    .d7-solution-content-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .d7-solution-visual-col {
        order: -1;
    }

    .d7-solution-mockup {
        max-width: 400px;
        margin: 0 auto;
    }

    .d7-solution-text-col .ai-intro-text {
        font-size: 18px;
    }
    
    .services-quick-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
}

@media (max-width: 768px) {
    .ai-intro-container {
        padding: 0 20px;
    }

    .ai-intro-text {
        font-size: 16px;
    }

    .d7-status-content {
        padding: 0 20px;
    }

    .d7-status-text {
        font-size: 16px;
    }

    .d7-option-text {
        font-size: 16px;
    }

    .spotlight-callout {
        font-size: 15px;
    }
    
    .services-rotating-title {
    font-size: 48px;
    }
}

/* ===================== D7 COMPANY PAGE STYLES ====================== */
/* Styles specific to the Demand7 Company page (/company/default.php) */

/* --- Section 1: Intro Grid (80/20 - mirrors X7 Leadership DESI grid) --- */
.d7-company-grid-intro {
    display: grid;
    grid-template-columns: 80% 20%;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.d7-company-float-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.d7-company-float-img {
    width: 80%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

/* --- Section 2: Stats Section (Primary Colour Background) --- */
.d7-stats-section {
    background-color: var(--primary);
    padding: 80px 0;
}

.d7-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    text-align: center;
}

.d7-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.d7-stat-number {
    font-family: 'Poppins', 'Segoe UI', Roboto, Helvetica, sans-serif;
    font-size: 76px;
    font-weight: 800;
    color: var(--tertiary);
    line-height: 1;
}

.d7-stat-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.d7-stats-summary {
    font-size: 18px;
    line-height: 1.7;
    color: var(--tertiary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.9;
}

/* --- Section 3: Founder Grid (75/25 - mirrors X7 Leadership) --- */
.d7-company-grid-founder {
    display: grid;
    grid-template-columns: 75% 25%;
    gap: 60px;
    align-items: flex-start;
}

/* --- Section 5: Engagement Models (Dark Section - mirrors G7 Company) --- */
.d7-models-content {
    max-width: 900px;
    margin: 0 auto;
}

.d7-models-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--tertiary);
    margin-bottom: 20px;
    text-align: center;
}

.d7-models-intro {
    font-size: 20px;
    line-height: 1.6;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 20px;
}

.d7-model-block {
    margin-top: 50px;
    padding: 40px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 4px solid var(--primary);
}

.d7-model-block-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

.d7-model-block-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-main);
    margin: 0;
}


/* ==================== D7 COMPANY PAGE RESPONSIVE ==================== */

@media (max-width: 1100px) {
    .d7-models-title {
        font-size: 42px;
    }
    
    .d7-stat-number {
        font-size: 48px;
    }
}

@media (max-width: 900px) {
    .d7-company-grid-intro {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .d7-company-float-img {
        width: 150px;
        margin-bottom: 30px;
    }
    
    .d7-company-grid-founder {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .d7-company-grid-founder .founder-img-stack {
        flex-direction: row;
        gap: 15px;
        justify-content: center;
        margin-top: 30px;
    }
    
    .d7-company-grid-founder .founder-img-stack img {
        width: 45%;
    }
    
    .d7-company-grid-founder .highlight-list {
        margin-left: 0;
        text-align: left;
    }
    
    .d7-company-grid-founder .highlight-list li {
        padding-left: 25px;
    }
    
    .d7-stats-section {
        padding: 60px 0;
    }
    
    .d7-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .d7-stat-number {
        font-size: 44px;
    }
    
    .d7-stats-summary {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .d7-models-content {
        padding: 0 20px;
    }
    
    .d7-models-title {
        font-size: 36px;
    }
    
    .d7-models-intro {
        font-size: 18px;
    }
    
    .d7-model-block {
        padding: 30px 25px;
    }
    
    .d7-model-block-title {
        font-size: 24px;
    }
    
    .d7-model-block-text {
        font-size: 17px;
    }
}

@media (max-width: 600px) {
    .d7-stat-number {
        font-size: 36px;
    }
    
    .d7-models-title {
        font-size: 28px;
    }
    
    .d7-model-block-title {
        font-size: 22px;
    }
}


/* ==================== WAVE FILL OVERRIDES (AI Technology Section) ==================== */
/* Higher-specificity overrides for AI Technology page flows */

body .wave-transition.wave-fill-bg svg path { fill: var(--bg) !important; }
body .wave-transition.wave-fill-tertiary svg path { fill: var(--tertiary) !important; }
body .wave-transition.wave-fill-secondary svg path { fill: var(--secondary) !important; }
body .wave-transition.wave-fill-grey svg path { fill: var(--grey) !important; }


/* ==================== WAVE TRANSITION LOGIC ==================== */
/* Consolidated logic for all overlapping waves across the site */

/* 1. Base Overlap Behavior */
body .wave-transition {
    position: relative;
    z-index: 10;
    margin-top: -101px;
    height: 100px;
    width: 100%;
    display: block;
    background: transparent !important;
    pointer-events: none;
    overflow: visible !important;
    margin-bottom: -2px !important;
}

body .wave-transition svg {
    display: block;
    width: 100%;
    height: 103% !important;
    position: relative;
    bottom: -1px;
}

/* Fix for flipped waves */
.wave-flip-x svg {
    transform: scaleX(-1);
    transform-origin: center center;
}

/* 2. EXPLICIT COLOR CLASSES */
.wave-fill-tertiary svg path { fill: var(--tertiary) !important; }
.wave-fill-secondary svg path { fill: var(--secondary) !important; }
.wave-fill-primary svg path   { fill: var(--primary) !important; }
.wave-fill-bg svg path        { fill: var(--bg) !important; }
.wave-fill-white svg path     { fill: var(--white) !important; }
.wave-fill-grey svg path      { fill: var(--grey) !important; }
.wave-fill-quaternary svg path { fill: var(--quaternary) !important; }

/* 3. CONTEXTUAL SELECTORS */
.service-hero + .wave-transition svg path {
    fill: var(--bg) !important;
}

.service-list-section + .wave-transition svg path {
    fill: var(--tertiary) !important;
}

.spotlight-section.bg-dark + .wave-transition svg path {
    fill: var(--secondary) !important;
}

.testimonial-section + .wave-transition svg path {
    fill: var(--tertiary) !important;
}

.promise-section + .wave-transition svg path {
    fill: var(--bg) !important;
}

.signals-section + .wave-transition svg path {
    fill: var(--tertiary) !important;
}

.comparison-section + .wave-transition svg path {
    fill: var(--grey) !important;
}

.manifesto-section + .wave-transition svg path {
    fill: var(--tertiary) !important;
}

.why-us-section + .wave-transition svg path {
    fill: var(--bg) !important;
}

.choice-section + .wave-transition svg path {
    fill: var(--tertiary) !important;
}

.bridge-section + .wave-transition svg path {
    fill: var(--bg) !important;
}

.clients-strip + .wave-transition svg path {
    fill: var(--tertiary) !important;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1100px) {
    .service-hero-quote {
        font-size: 44px;
    }
    
    .manifesto-pillars {
        grid-template-columns: 1fr;
    }
    
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .promise-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .signals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .service-hero {
        padding: 140px 20px 180px;
        min-height: auto;
    }
    
    .service-hero-quote {
        font-size: 36px;
    }
    
    .service-hero-subtext {
        font-size: 18px;
    }
    
    .service-list-grid {
        grid-template-columns: 1fr;
    }
    
    .spotlight-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .spotlight-grid.reverse {
        direction: ltr;
    }
    
    .spotlight-title {
        font-size: 32px;
    }
    
    .choice-columns {
        grid-template-columns: 1fr;
    }
    
    .bridge-grid {
        grid-template-columns: 1fr;
    }
    
    .gtm7-teaser-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    .service-list-title,
    .services-grid-title,
    .manifesto-title {
        font-size: 36px;
    }
    
    .quote-large {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .service-hero-quote {
        font-size: 28px;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .promise-grid {
        grid-template-columns: 1fr;
    }
    
    .signals-grid {
        grid-template-columns: 1fr;
    }
    
    .service-list-title,
    .services-grid-title,
    .manifesto-title,
    .comparison-title,
    .signals-title,
    .why-us-title {
        font-size: 28px;
    }
    
    .clients-strip-logos {
        gap: 30px;
    }
    
    .clients-strip-logos img {
        height: 24px;
    }
}