/*
 * llms.html Stylesheet
 * 365i AI Site Identity Service
 *
 * This CSS file provides the visual styling for llms.html (ADF-003).
 * It must be delivered alongside llms.html.
 *
 * Specification: https://www.365i.co.uk/ai-visibility-definition/specifications/llms-html/
 */

:root {
    /* Premium color palette - deep charcoal with warm amber accents */
    --color-ink: #1a1a1a;
    --color-ink-light: #2d2d2d;
    --color-ink-muted: #5a5a5a;
    --color-paper: #fafaf8;
    --color-paper-warm: #f5f4f0;
    --color-accent: #c4873b;
    --color-accent-light: #e8a54d;
    --color-accent-glow: rgba(196, 135, 59, 0.15);
    --color-border: #e5e4e0;
    --color-border-light: #eeede9;

    /* Typography scale */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    /* Spacing rhythm */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Refined shadows */
    --shadow-subtle: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    --shadow-elevated: 0 4px 16px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.08);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-ink);
    background: var(--color-paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle background texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 20% 0%, var(--color-accent-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(196, 135, 59, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Header notice bar */
.notice-bar {
    background: var(--color-ink);
    color: var(--color-paper);
    padding: var(--space-sm) 0;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.notice-bar__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    text-align: center;
}

.notice-bar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
    font-size: 0.75rem;
}

.notice-bar a {
    color: var(--color-accent-light);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.notice-bar a:hover {
    border-bottom-color: var(--color-accent-light);
}

/* Hero section */
.hero {
    padding: var(--space-2xl) 0 var(--space-xl);
    text-align: center;
    position: relative;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    animation: fadeInDown 0.6s ease-out;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--color-accent);
    opacity: 0.5;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-ink);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero__description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-ink-muted);
    max-width: 640px;
    margin: 0 auto var(--space-lg);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero__legal {
    font-size: 0.9375rem;
    color: var(--color-ink-muted);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-paper-warm);
    border-radius: 8px;
    display: inline-block;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Section styling */
section {
    padding: var(--space-xl) 0;
}

.section-header {
    margin-bottom: var(--space-lg);
}

h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

h2::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 0.9375rem;
    color: var(--color-ink-muted);
    margin-left: calc(4px + var(--space-sm));
}

/* Services grid */
.services-grid {
    display: grid;
    gap: var(--space-md);
}

.service-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-md) var(--space-lg);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--color-border-light);
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: var(--space-xs);
}

.service-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.service-card__title a:hover {
    color: var(--color-accent);
}

.service-card__description {
    font-size: 0.9375rem;
    color: var(--color-ink-muted);
    line-height: 1.6;
}

/* Exclusions section */
.exclusions {
    background: var(--color-paper-warm);
    border-radius: 16px;
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.exclusions h2::before {
    background: var(--color-ink-muted);
}

.exclusions-list {
    list-style: none;
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.exclusions-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--color-ink-muted);
}

.exclusions-list li::before {
    content: '\00d7';
    font-weight: 600;
    color: var(--color-ink-light);
    font-size: 1rem;
    line-height: 1.6;
    flex-shrink: 0;
}

/* Links sections */
.links-grid {
    display: grid;
    gap: var(--space-xs);
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-ink);
    transition: all var(--transition-fast);
}

.link-item:hover {
    border-color: var(--color-accent);
    background: rgba(196, 135, 59, 0.04);
}

.link-item__text {
    font-weight: 500;
}

.link-item__meta {
    font-size: 0.8125rem;
    color: var(--color-ink-muted);
}

.link-item__arrow {
    color: var(--color-accent);
    transition: transform var(--transition-fast);
}

.link-item:hover .link-item__arrow {
    transform: translateX(4px);
}

/* AI Files section - special styling */
.ai-files {
    background: linear-gradient(135deg, var(--color-ink) 0%, var(--color-ink-light) 100%);
    border-radius: 16px;
    padding: var(--space-lg);
    color: var(--color-paper);
}

.ai-files h2 {
    color: var(--color-paper);
}

.ai-files h2::before {
    background: linear-gradient(180deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
}

.ai-files .section-subtitle {
    color: rgba(255,255,255,0.6);
}

.ai-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.ai-file-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-paper);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.ai-file-item:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--color-accent);
}

.ai-file-item__icon {
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.ai-file-item__name {
    font-weight: 500;
}

/* Contact section */
.contact-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: var(--shadow-subtle);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-item__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-ink-muted);
}

.contact-item__value {
    font-size: 1rem;
    color: var(--color-ink);
}

.contact-item__value a {
    color: var(--color-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-fast);
}

.contact-item__value a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Footer */
footer {
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-xl);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.footer-meta {
    font-size: 0.8125rem;
    color: var(--color-ink-muted);
}

.footer-meta a {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-meta a:hover {
    text-decoration: underline;
}

.footer-spec {
    font-size: 0.75rem;
    color: var(--color-ink-muted);
    font-family: monospace;
    background: var(--color-paper-warm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   CONDITIONAL SECTIONS
   Add these when corresponding data exists
   ============================================ */

/* Team Section */
.team-section {
    padding: var(--space-xl) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.team-member {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-md);
    text-align: center;
    transition: all var(--transition-smooth);
}

.team-member:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.team-member__name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: var(--space-xs);
}

.team-member__role {
    font-size: 0.875rem;
    color: var(--color-ink-muted);
    margin-bottom: var(--space-sm);
}

.team-member a {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.875rem;
}

.team-member a:hover {
    text-decoration: underline;
}

/* Operating Hours Section */
.hours-section {
    padding: var(--space-xl) 0;
}

.hours-grid {
    display: grid;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.hours-item .day {
    font-weight: 500;
    color: var(--color-ink);
}

.hours-item .time {
    color: var(--color-ink-muted);
}

/* Payment Methods Section */
.payment-section {
    padding: var(--space-xl) 0;
}

.payment-list {
    list-style: none;
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.payment-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--color-ink);
}

.payment-list li::before {
    content: '\2713';
    color: var(--color-accent);
    font-weight: 600;
}

/* Certifications Section */
.certifications-section {
    padding: var(--space-xl) 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.cert-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-md);
    transition: all var(--transition-smooth);
}

.cert-item:hover {
    box-shadow: var(--shadow-card);
}

.cert-item h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-ink);
    margin-bottom: var(--space-xs);
}

.cert-item .cert-date {
    font-size: 0.8125rem;
    color: var(--color-ink-muted);
    margin-bottom: var(--space-sm);
}

.cert-item a {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.875rem;
}

.cert-item a:hover {
    text-decoration: underline;
}

/* Affiliations/Memberships Section */
.memberships-section {
    padding: var(--space-xl) 0;
}

.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.membership-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--transition-smooth);
}

.membership-item:hover {
    box-shadow: var(--shadow-card);
}

.membership-item__name {
    font-weight: 500;
    color: var(--color-ink);
}

.membership-item a {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.875rem;
}

/* Guarantees Section */
.guarantees-section {
    background: var(--color-paper-warm);
    border-radius: 16px;
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}

.guarantees-list {
    list-style: none;
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.guarantees-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--color-ink);
}

.guarantees-list li::before {
    content: '\2713';
    color: var(--color-accent);
    font-weight: 600;
    flex-shrink: 0;
}

/* Service Areas/Coverage Section */
.coverage-section {
    padding: var(--space-xl) 0;
}

.coverage-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.coverage-list li {
    padding: var(--space-sm) var(--space-md);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--color-ink);
}

/* Returns & Refunds Section */
.returns-section {
    background: var(--color-paper-warm);
    border-radius: 16px;
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}

.returns-section p {
    font-size: 0.9375rem;
    color: var(--color-ink-muted);
    line-height: 1.7;
    margin-top: var(--space-md);
}

.returns-section a {
    color: var(--color-accent);
    text-decoration: none;
}

.returns-section a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }

    .hero {
        padding: var(--space-xl) 0 var(--space-lg);
    }

    h1 {
        font-size: 2rem;
    }

    .hero__description {
        font-size: 1.125rem;
    }

    .ai-files-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .team-grid,
    .cert-grid,
    .membership-grid {
        grid-template-columns: 1fr;
    }
}
