/* Ranjdar-Group — shared styles
   Single source of truth for all business unit websites.
   Deployed to every site's S3 bucket via CDK (Source.asset("website/shared")). */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600&display=swap');

/* ── Color System ──
   All text/accent colors for the dark theme.
   Use these everywhere instead of hardcoded hex values.

   Text tiers (brightest → subtlest):
     --text-primary   → headings, key values, things that MUST be read
     --text-body      → main content: descriptions, table cells, paragraphs
     --text-secondary → labels, metadata, supporting info (still clearly readable)
     --text-muted     → decorative hints, timestamps, stuff you glance at

   Accents:
     --accent-gold    → brand gold, 1-Ton scale, highlights
     --accent-green   → 2-Ton scale, positive/success, "no bottleneck"
     --accent-red     → warnings, Phase 2, cost deltas, bottleneck
     --accent-link    → clickable links in dark context

   Surfaces:
     --bg-card        → card/panel backgrounds
     --bg-hover       → hover state overlay
     --border-default → subtle borders between elements
     --border-accent  → gold-tinted border for active/open states
*/
:root {
    --text-primary:   #ffffff;
    --text-body:      #dde1eb;
    --text-secondary: #c0c6d6;
    --text-muted:     #a0a8c0;

    --accent-gold:    #ffbe0b;
    --accent-green:   #40dd60;
    --accent-red:     #ff6644;
    --accent-link:    #70b8ff;

    --bg-card:        rgba(0, 0, 0, 0.2);
    --bg-hover:       rgba(255, 255, 255, 0.03);
    --border-default: rgba(255, 255, 255, 0.08);
    --border-accent:  rgba(255, 190, 11, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0e27;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.5) 0%, transparent 50%),
                radial-gradient(circle at 80% 35%, rgba(255, 190, 11, 0.2) 0%, transparent 35%),
                radial-gradient(circle at 40% 40%, rgba(30, 60, 114, 0.4) 0%, transparent 50%);
    z-index: -1;
}

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

/* ── Language Switcher ── */
.lang-switcher {
    position: fixed;
    top: 16px;
    right: 20px;
    display: flex;
    gap: 4px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    padding: 4px;
    backdrop-filter: blur(8px);
}

.lang-switcher a {
    display: block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 4px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.lang-switcher a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-switcher a.active {
    color: #0a0a0a;
    background: #ffbe0b;
}

/* ── Logo Section ── */
.logo-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, #ffbe0b 60deg, transparent 120deg, transparent 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    opacity: 1;
    animation: circleAnimation 2s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes circleAnimation {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.logo svg {
    filter: drop-shadow(0 10px 30px rgba(255, 190, 11, 0.3));
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 86px);
    letter-spacing: 8px;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 12px;
    transition: transform 0.3s ease, letter-spacing 0.3s ease;
    cursor: default;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h1:hover {
    transform: scale(1.02);
    letter-spacing: 10px;
}

.tagline {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
}

/* ── Status Pill ── */
.status-wrapper {
    text-align: center;
}

.status-message {
    display: inline-block;
    background: rgba(255, 190, 11, 0.1);
    border: 1px solid rgba(255, 190, 11, 0.3);
    color: #ffbe0b;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    margin: 30px auto;
    backdrop-filter: blur(10px);
    font-weight: 400;
}

/* ── Services Grid ── */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px auto;
    max-width: 1250px;
}

.service-card {
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.2) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 35px 25px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffbe0b, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-color: rgba(255, 190, 11, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Clickable card */
.service-card.clickable {
    cursor: pointer;
}

.service-card.clickable:hover {
    border-color: rgba(255, 190, 11, 0.5);
}

/* Disabled card — stop sign tooltip */
.service-card.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.service-card.disabled:hover {
    transform: none;
    border-color: rgba(255, 80, 80, 0.4);
    box-shadow: none;
}

.service-card.disabled::after {
    content: '\1F6D1  Coming soon';
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(200, 50, 50, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.service-card.disabled:hover::after {
    opacity: 1;
}

/* Override the gold line animation for disabled */
.service-card.disabled::before {
    background: linear-gradient(90deg, transparent, #ff5050, transparent);
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 190, 11, 0.1) 0%, rgba(251, 133, 0, 0.1) 100%);
    border: 1px solid rgba(255, 190, 11, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(255, 190, 11, 0.2) 0%, rgba(251, 133, 0, 0.2) 100%);
    transform: scale(1.1);
}

.service-card.disabled:hover .service-icon {
    transform: none;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.3;
    text-align: left;
}

.service-title span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    display: block;
}

.service-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

/* ── Contact Section ── */
.contact {
    text-align: center;
    margin-top: 50px;
    padding: 40px 25px;
}

.contact-title {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.email {
    font-size: 20px;
    color: #ffbe0b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffbe0b;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ── Footer ── */
.footer {
    text-align: center;
    margin-top: -20px;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffbe0b;
}

.footer p {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 20px;
}

/* ── Frozen Bakery Sub-page Layout ── */
.page-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.page-header h1 {
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 8px;
}

.page-header .subtitle {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 300;
}

/* Tab navigation for frozen bakery sub-pages */
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 30px auto;
    max-width: 700px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-nav a {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tab-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.tab-nav a.active {
    color: #0a0e27;
    background: var(--accent-gold);
    font-weight: 600;
}

.back-home {
    display: inline-block;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: opacity 0.2s;
}

.back-home:hover {
    opacity: 0.7;
}

/* Placeholder box for pending content */
.content-pending {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 15px;
}

.content-pending .icon {
    font-size: 40px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.content-pending h3 {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* ── Legal Pages ── */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.legal-container h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #ffbe0b;
    border-bottom: 2px solid rgba(255, 190, 11, 0.3);
    padding-bottom: 15px;
    letter-spacing: 3px;
    text-transform: none;
}

.legal-container h2 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #ffbe0b;
}

.legal-container h3 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.legal-container p,
.legal-container li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: justify;
    hyphens: auto;
    line-height: 1.6;
}

.legal-container ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-container li {
    margin-bottom: 8px;
}

.legal-container strong {
    color: #ffffff;
    font-weight: 600;
}

.legal-container a {
    color: #ffbe0b;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.legal-container a:hover {
    opacity: 0.8;
}

.section {
    margin-bottom: 30px;
}

.info-box {
    background: rgba(255, 190, 11, 0.05);
    border-left: 3px solid #ffbe0b;
    padding: 15px;
    margin: 20px 0;
}

.info-box p {
    color: var(--text-secondary);
    text-align: left;
    hyphens: none;
    margin-bottom: 8px;
}

.info-box strong {
    color: #ffffff;
}

.highlight-box {
    background: rgba(255, 190, 11, 0.1);
    border: 1px solid rgba(255, 190, 11, 0.3);
    padding: 20px;
    margin: 25px 0;
    border-radius: 5px;
}

.highlight-box h3 {
    color: #ffbe0b;
    margin-top: 0;
}

.inactive-section {
    background: rgba(136, 146, 176, 0.05);
    border: 1px solid rgba(136, 146, 176, 0.2);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    opacity: 0.8;
}

.inactive-notice {
    background: rgba(136, 146, 176, 0.1);
    border-left: 3px solid var(--text-muted);
    padding: 10px 15px;
    margin: 15px 0;
    font-style: italic;
    color: var(--text-muted);
}

.last-updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

.back-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: inline-block;
    padding: 10px 20px;
    background: #0a0e27;
    border: 1px solid rgba(255, 190, 11, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
    overflow: hidden;
    color: #ffbe0b;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    background: rgba(255, 190, 11, 0.1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .services {
        grid-template-columns: 1fr;
    }

    h1 {
        letter-spacing: 4px;
    }

    .tab-nav {
        flex-direction: column;
    }

    .back-link {
        font-size: 13px;
        padding: 8px 14px;
    }
}
