/* ============================================
   Terra Devine Group - Global Styles
   ============================================ */

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

:root {
    --primary: #0f172a;
    --accent: #2563eb;
    --light-bg: #f8fafc;
    --text-main: #334155;
    --text-light: #64748b;
    --white: #ffffff;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */

nav {
    background: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e9ecef;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 15px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--accent);
    color: white;
}

/* ============================================
   Hamburger / Mobile Menu
   ============================================ */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    margin: 1rem 0;
    padding: 1rem 2rem;
    border-radius: 10px;
    transition: all 0.3s;
    text-align: center;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background-color: var(--accent);
    transform: scale(1.05);
}

.mobile-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ============================================
   Page Shell
   ============================================ */

.page {
    display: none;
    min-height: calc(100vh - 80px);
    padding: 3rem 0;
}

.page.active {
    display: block;
}

/* ============================================
   Shared Components: Buttons
   ============================================ */

.btn {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 25px;
    background-color: var(--primary);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: var(--accent);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Acuity Button Override */
a.acuity-embed-button.btn-primary {
    background-color: var(--primary) !important;
    color: white !important;
    padding: 15px !important;
    margin-top: 25px !important;
    border-radius: 6px !important;
    transition: background 0.2s !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
}

a.acuity-embed-button.btn-primary:hover {
    background-color: var(--accent) !important;
}

/* ============================================
   Shared Components: Cards
   ============================================ */

.card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--accent);
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--accent);
}

.card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.card-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

.card-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.card-body {
    flex-grow: 1;
}

.card-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: 700;
}

.card ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.95rem;
}

.card li {
    margin-bottom: 8px;
}

.promise-box {
    background: #f0f9ff;
    border-left: 4px solid var(--accent);
    padding: 10px 15px;
    margin-top: 20px;
    font-size: 0.95rem;
    font-style: italic;
    color: #0c4a6e;
}

.popular-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 5px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* ============================================
   HOME PAGE
   ============================================ */

.consulting-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.consulting-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--primary);
}

.consulting-hero .sub-headline {
    font-size: 1.5rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 30px;
    font-weight: 300;
}

.consulting-hero--dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-bottom: none;
}

.consulting-hero--dark h1 {
    color: var(--white);
}

.consulting-hero--dark .sub-headline {
    color: rgba(255, 255, 255, 0.8);
}

.consulting-hero .authority-bar {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* Two-column path (fallback) */
.two-path {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 3rem 0;
    padding: 60px 0 40px;
}

/* Three-column path for home */
.three-path {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 3rem 0;
    padding: 60px 0 40px;
}

.path-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--accent);
    transition: transform 0.2s, box-shadow 0.2s;
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--accent);
}

.path-card h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.path-card h4 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.path-card p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Why Section */
.why-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
}

.why-section h3 {
    text-align: center;
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 40px;
}

.why-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.why-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--accent);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.why-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.why-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* ============================================
   CONSULTING PAGE
   ============================================ */

.philosophy {
    padding: 40px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.pricing {
    padding: 20px 0 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.capabilities {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
}

.capabilities h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
}

/* ============================================
   TEMPLATES PAGE
   ============================================ */

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 0 0 40px;
}

.template-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.template-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.template-info h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.template-info .template-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

.template-meta-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.template-meta-row .template-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.template-meta-row .template-format {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stripe-button-placeholder {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background-color: var(--primary);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
}

.stripe-button-placeholder:hover {
    background-color: var(--accent);
}

/* ============================================
   BUY BOX PAGE
   ============================================ */

.buy-box-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.buy-box-content h1 {
    color: var(--primary);
    margin-bottom: 2rem;
}

.asset-types {
    margin: 2rem 0;
}

.asset-types h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.asset-list {
    list-style: none;
    padding-left: 1rem;
}

.asset-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-content {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h1 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.contact-content p {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo img {
        height: 40px;
        width: auto;
        margin-right: 10px;
    }

    .two-path,
    .three-path {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .buy-box-content,
    .contact-content {
        padding: 2rem;
    }

    .consulting-hero h1 {
        font-size: 2.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        height: 35px;
        width: auto;
        margin-right: 8px;
    }

    .path-card {
        padding: 1.5rem;
    }

    .buy-box-content,
    .contact-content {
        padding: 1.5rem;
    }

    .consulting-hero h1 {
        font-size: 2rem;
    }

    .consulting-hero .sub-headline {
        font-size: 1.2rem;
    }

    .card {
        padding: 20px;
    }
}
