/* ============================================
   DigiDue Marketing Website Styles
   Modern, Professional B2B Design
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #228be6;
    --primary-dark: #1c7ed6;
    --primary-light: #4dabf7;
    --secondary-color: #764ba2;
    --text-dark: #212529;
    --text-gray: #495057;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --success-color: #51cf66;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 75px;
    width: 225px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.68fr);
    gap: 2.25rem;
    align-items: center;
}

.hero-text {
    min-width: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image-narrow {
    justify-self: end;
    width: 100%;
    max-width: 100%;
}

.hero-image-narrow picture {
    display: block;
    width: 100%;
    max-width: min(100%, 400px);
    margin-left: auto;
    margin-right: 0;
}

.hero-image-narrow .hero-photo {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    border: 2px dashed var(--border-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 12px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.icon-placeholder {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    background: var(--bg-light);
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Verticals Section */
.verticals {
    padding: 6rem 0;
    background: var(--bg-light);
}

.verticals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.vertical-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.vertical-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vertical-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--border-color);
}

.vertical-image-full {
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.vertical-image-full picture {
    display: block;
    width: 100%;
    height: 100%;
}

.vertical-image-full .vertical-photo {
    height: 100%;
}

.vertical-photo {
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.vertical-image .image-placeholder {
    height: 100%;
    border-radius: 0;
    border: none;
}

.vertical-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 2rem;
}

.vertical-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.vertical-tagline {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.vertical-content > p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.vertical-features {
    list-style: none;
    padding: 0;
}

.vertical-features li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    padding-left: 1.5rem;
    position: relative;
}

.vertical-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

/* Why DigiDue Section */
.why-digidue {
    padding: 6rem 0;
    background: var(--bg-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.benefit-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Comparison Section */
.comparison {
    padding: 6rem 0;
    background: var(--bg-light);
}

.comparison-table {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-header {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    border-bottom: none;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:nth-child(even) {
    background: var(--bg-light);
}

.comparison-feature {
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-digidue {
    color: var(--success-color);
    font-weight: 600;
}

.comparison-competitor {
    color: var(--text-gray);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-text p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-note {
    font-style: italic;
    color: var(--text-light);
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* Portal iframe column: no extra card; min-width fixes grid overflow */
.contact-embed-slot {
    min-width: 0;
}

/* Tall enough for full portal (fields + submit + Powered by) without inner scroll; slightly under 1200 to trim dead space */
.contact-embed-slot .contact-portal-iframe {
    display: block;
    width: 100%;
    height: 1180px;
    min-height: 900px;
    border: 0;
}

@media (max-width: 968px) {
    .contact-embed-slot .contact-portal-iframe {
        height: min(96vh, 1180px);
        min-height: 0;
    }
}

.contact-embed-slot .form-note {
    margin-top: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
}

.footer-tagline {
    color: var(--primary-light);
    font-style: italic;
    font-size: 1.1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin-bottom: 0.35rem;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* Legal pages (Privacy, Terms) */
.legal-page {
    padding: 3rem 0 5rem;
    background: var(--bg-white);
}

.legal-page .legal-back {
    margin-bottom: 2rem;
}

.legal-page .legal-back a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.legal-page .legal-back a:hover {
    text-decoration: underline;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.legal-meta {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    color: var(--text-dark);
}

.legal-content h3 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--text-gray);
}

.legal-content p,
.legal-content li {
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.legal-content ul {
    margin: 0.5rem 0 1rem 1.25rem;
}

.legal-content a {
    color: var(--primary-color);
}

@media (min-width: 969px) {
    .hero-title {
        white-space: nowrap;
    }

    .hero-cta {
        flex-wrap: nowrap;
    }

    .hero-cta .btn {
        white-space: nowrap;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        white-space: normal;
    }

    .hero-image-narrow {
        justify-self: center;
    }

    .hero-image-narrow picture,
    .hero-image-narrow .hero-photo {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .verticals-grid {
        grid-template-columns: 1fr;
    }

    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .comparison-header > div,
    .comparison-row > div {
        padding: 0.5rem 0;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        display: none;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a.btn-nav {
        margin-top: 1rem;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
