/* ==========================================================================
   Callara Landing Page — Design tokens & layout
   ========================================================================== */

:root {
    /* Colors from design */
    --color-bg: #f7f4ef;
    --color-bg-tint: rgb(246, 243, 239);
    --color-text: #333333;
    --color-text-muted: #666;
    --color-text-secondary: #444444;
    --color-accent: rgb(193, 169, 143);
    --color-accent-dark: #a08f76;
    --color-border: rgba(0, 0, 0, 0.1);
    --color-border-strong: #000;
    --color-divider: #aaaaaa;
    --color-feature-icon: #ffd94f;
    --color-white: #fff;
    --color-footer-bg: rgb(46, 46, 46);
    --color-footer-text: rgb(250, 239, 224);
    --color-footer-muted: rgba(255, 255, 255, 0.7);
    --color-footer-input-border: rgba(255, 255, 255, 0.3);
    --color-footer-input-bg: rgba(255, 255, 255, 0.1);

    /* Typography — all fonts in use; use the variable that matches the element */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* --font-title: "TT Norms", var(--font-sans); */
    --font-title: "Nunito", var(--font-sans);
    --font-body: "TT Fors Display Trl", var(--font-sans);
    --font-open-sauce: "Open Sauce One", var(--font-sans);

    /* Font sizes — titles */
    --font-size-title-xl: 4rem; /* 62px */
    --font-size-title: 3.8rem; /* 52px */
    --font-size-title-md: 1.5rem; /* 24px */
    --font-size-title-sm: 1.1rem; /* 18px */
    --font-size-title-xs: 0.95rem; /* 15px */

    /* Line heights */
    --line-height-tight: 0.9;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --section-padding: clamp(2.5rem, 5vw, 4rem);

    /* Layout */
    --container-max: 1250px;
    --container-padding: var(--space-md);
}

@media (max-width: 768px) {
    :root {
        --font-size-title-xl: 2.5rem;
        --font-size-title: 2.25rem;
        --font-size-title-md: 1.35rem;
        --font-size-title-sm: 1rem;
        --font-size-title-xs: 0.9rem;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-title);
}

@media (max-width: 768px) {
    .container {
        text-align: center;
        display: block;
    }
}

/* Visually hidden but available to assistive tech */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scroll-triggered fade-in: add .reveal to sections, .is-visible is set by JS */
.reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

.title {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--color-text);
    line-height: 0.9;
    letter-spacing: -5px;
    font-size: var(--font-size-title);
}

@media (max-width: 768px) {
    .title {
        letter-spacing: -2px;
        line-height: 2;
    }
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    cursor: pointer;
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
}

.btn-primary {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border-strong);
    font-weight: 500;
    padding: 8px 32px;
}

.btn-primary:hover {
    border-color: var(--color-border-strong);
    background: transparent;
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
}

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

/* ==========================================================================
   Logo (used in hero and footer)
   ========================================================================== */

.logo {
    display: inline-flex;
    font-family: var(--font-title);
    font-weight: 700;
}

.hero-logo {
    margin-bottom: var(--space-2xl);
}

/* ==========================================================================
   Hero
   ========================================================================== */

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
    padding: 6rem 0;
}

.hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.hero-item {
    flex: 1 1 280px;
    min-width: 0;
    margin-right: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    margin: 0 0 var(--space-xl);
    font-family: var(--font-title);
    font-size: var(--font-size-title-xl);
    font-weight: 700;
    line-height: 0.9;
    color: var(--color-text);
}

.hero-title-mobile {
    display: none;
}

.hero-content .btn {
    font-family: var(--font-body);
}

.hero-content-img {
    display: none;
}

.hero-media img {
    height: 500px;
}

.hero-content .hero-logo,
.hero-content .hero-title-mobile,
.hero-content .hero-title,
.hero-media.hero-item,
.hero-content .hero-content-img,
.hero-content .btn {
    opacity: 0;
    animation: hero-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content .hero-logo {
    animation-delay: 0.2s;
}

.hero-content .hero-title,
.hero-media.hero-item {
    animation-delay: 0.5s;
}

.hero-content .btn {
    animation-delay: 1.8s;
}

@media (prefers-reduced-motion: reduce) {
    .hero-content .hero-logo,
    .hero-content .hero-title,
    .hero-content .hero-title-mobile,
    .hero-content .hero-content-img,
    .hero-media.hero-item,
    .hero-content .btn {
        opacity: 1;
        animation: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0;
        padding-bottom: 4rem;
        text-align: center;
    }

    .hero-title-mobile h3 {
        font-family: var(--font-title);
        font-weight: 400;
        color: var(--color-text);
        line-height: 0.9;
        letter-spacing: -2px;
        font-size: 2rem;
        margin-bottom: 1.3rem;
    }

    .hero-content .hero-logo,
    .hero-content .hero-title-mobile,
    .hero-content .hero-content-img,
    .hero-content .btn {
        animation: hero-fade-in 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .hero-content .hero-logo {
        width: 350px;
        height: auto;
    }

    .hero-content .hero-content-img {
        animation-delay: 0.2s;
        margin: 0;
    }

    .hero-content .hero-title {
        display: none;
    }

    .hero-content .hero-title-mobile {
        display: block;
        animation-delay: 0.3s;
    }

    .hero-content .btn {
        animation-delay: 1s;
    }

    @media (prefers-reduced-motion: reduce) {
        .hero-content .hero-logo,
        .hero-content .hero-title-mobile,
        .hero-content .hero-content-img,
        .hero-content .btn {
            opacity: 1;
            animation: none;
        }
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        min-height: 0;
    }

    .hero-content {
        order: 1;
        align-items: center;
    }

    .hero-media {
        order: 0;
    }

    .hero-media {
        display: none;
    }

    .hero-item {
        margin: 0;
    }

    .hero-logo {
        margin-bottom: 0;
    }

    .hero-content-img {
        display: block;
        margin: var(--space-xl) auto;
        max-width: 100%;
        height: auto;
    }
}

/* ==========================================================================
   Recognition
   ========================================================================== */

.recognition {
    padding: var(--space-xl) 0;
    background-color: var(--color-footer-text);
}

.recognition-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

.recognition-label {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
}

.recognition-logo {
    display: block;
    object-fit: contain;
}

/* ==========================================================================
   Section title
   ========================================================================== */

.section-title {
    font-family: var(--font-title);
    font-size: var(--font-size-title-xl);
    font-weight: 700;
    color: var(--color-text);
    line-height: var(--line-height-tight);
    margin-bottom: 4rem;
}

/* ==========================================================================
   Features (24/7 AI expert)
   ========================================================================== */

.features {
    padding: 4rem 0;
    background: var(--color-bg-tint);
}

.features-row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

/* Two flex items: left = title + video, right = features list; each gets half width */
.features-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
}

.features-item--left {
    align-items: center;
}

.features-item__title,
.features-item__media {
    flex: 1 1 0;
    min-width: 0;
}

.features-item__title {
    text-align: center;
    font-size: 1.7rem;
}

.features-media {
    display: flex;
    justify-content: center;
}

.features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.features-list li {
    text-align: left;
}

.features-item__heading {
    text-align: left;
    margin-left: 9rem;
    margin-right: 0rem;
    max-width: 60%;
}

.features-title {
    display: flex;
    align-items: center;
}

.features-title__heading {
    margin-left: 8px;
    font-size: 1.3rem;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--color-border-strong);
}

.feature-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-feature-icon);
}

.features-item__description {
    text-align: left;
    margin: 0.5rem 0 1rem;
    margin-left: 9rem;
    margin-right: 0;
    max-width: 60%;
    padding-left: 20px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.feature-divider {
    border: none;
    border-top: 1px solid var(--color-divider);
    margin: 0 0 1rem;
}

@media (max-width: 768px) {
    .features-row {
        display: inline;
    }

    .features-item {
        display: block;
        margin-bottom: 4rem;
    }

    .features-title {
        justify-content: center;
    }

    .features-item__title {
        margin-bottom: 2rem;
    }

    .features-item__description {
        text-align: center;
        margin-left: 0;
        max-width: 100%;
        font-size: 1rem;
    }

    .features-item__heading {
        max-width: 100%;
        margin: 0 auto 0 auto;
        text-align: center;
    }
}

/* ==========================================================================
   Benefit
   ========================================================================== */

.benefit {
    padding: var(--section-padding) 0;
    background: var(--color-bg-tint);
    margin: 6rem 0;
}

.benefit-inner {
    display: flex;
    align-items: center;
}

.benefit-content {
    padding-right: 4rem;
}

.benefit-title {
    text-align: left;
    line-height: 0.9;
    font-weight: 700;
}

.benefit-text {
    margin-top: 3rem;
    font-family: var(--font-open-sauce);
    font-size: 1.125rem;
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 400;
    width: 80%;
}

.benefit-media img {
    object-fit: cover;
    width: 100%;
}

@media (max-width: 768px) {
    .benefit {
        margin: 0;
    }

    .benefit-inner {
        display: block;
    }

    .benefit-content {
        text-align: center;
        padding-right: 0;
    }

    .benefit-title {
        text-align: center;
    }

    .benefit-text {
        text-align: center;
        width: 100%;
        margin: 1rem auto 3rem auto;
    }
}

/* ==========================================================================
   Pillars (How Callara Helps)
   ========================================================================== */

.pillars {
    padding: var(--section-padding) 0;
    margin: 6rem 0;
}

/* Negative margins cancel outer gutter so spacing is only between the three pillar cards */
.pillars-row {
    display: flex;
    margin-top: var(--space-xl);
    justify-content: space-between;
    max-width: 90%;
    margin: auto;
}

.pillars-title {
    text-align: center;
    margin: 6rem 0 6rem 0;
}

.pillar-card {
    border: 2px solid black;
    border-radius: 60px;
    transition: box-shadow 0.2s;
    text-align: center;
    height: 450px;
    width: 340px;
}

.pillar-icon {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-lg);
    object-fit: contain;
    height: 50%;
}

.pillar-card-content {
    border-top: 1.5px solid black;
    height: 50%;
    padding: 0 0.15rem;
    letter-spacing: -1px;
}

.pillar-card-title {
    font-family: var(--font-open-sauce);
    font-size: var(--font-size-title-md);
    font-weight: 700;
    color: var(--color-text);
    margin: 1rem 0;
}

.pillar-card-content-text {
    font-family: var(--font-open-sauce);
    font-size: var(--font-size-title-sm);
    font-weight: 400;
    color: var(--color-text);
    margin: 0;
}

@media (max-width: 768px) {
    .pillars {
        padding: 0;
    }

    .pillars-row {
        display: block;
        max-width: 100%;
        text-align: center;
    }

    .pillars-title {
        margin: 2rem 0 2rem 0;
    }

    .pillar-card {
        margin: 2rem auto 2rem auto;
    }
}

/* ==========================================================================
   Recent Updates
   ========================================================================== */

.updates {
    padding: var(--section-padding) 0;
}

.updates-list {
    list-style: none;
    margin: 0 0 0 4rem;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.update-item--spaced {
    margin-top: var(--space-lg);
}

.update-item {
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.update-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Negative margins cancel outer gutter for the version/badge/date row in each update item */
.update-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
    margin-left: calc(-1 * var(--space-md));
    margin-top: calc(-1 * var(--space-md));
}

.update-meta__part {
    margin-left: var(--space-md);
    margin-top: var(--space-md);
}

.update-version {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

.update-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 4px;
}

.update-date {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.update-title {
    margin: 0 0 var(--space-xs);
    font-family: var(--font-title);
    font-size: var(--font-size-title-sm);
    font-weight: 700;
    color: var(--color-text);
}

.update-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .updates-list {
        display: block;
        text-align: left;
    }
}

/* ==========================================================================
   Team
   ========================================================================== */

.team {
    padding: var(--section-padding) 0;
    font-family: var(--font-body);
    color: var(--color-team-text);
    margin: 6rem 0;
}

.team-label {
    font-size: 2rem;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

.team-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    line-height: 1;
}

.team-tagline {
    font-size: 1.5rem;
    text-align: center;
    font-style: italic;
    margin: 0;
    line-height: 1;
}

.team-row {
    display: flex;
    margin: 2rem auto;
}

.team-card {
    text-align: center;
    margin: 2rem auto;
    max-width: 300px;
}

.team-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-border);
    margin: 0 auto 1rem auto;
}

.team-card-name {
    font-family: var(--font-title);
    font-size: var(--font-size-title-sm);
    font-weight: 700;
}

.team-role {
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0 auto;
}

.team-bio {
    margin: 1rem 0 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .team-row {
        flex-direction: column;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: var(--section-padding) 0 var(--space-xl);
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    font-family: var(--font-open-sauce);
}

.footer-inner {
    display: flex;
    flex-direction: column;
}

.footer-block--spaced {
    margin-top: var(--space-2xl);
}

/* Negative margins cancel outer gutter so spacing is only between the three footer blocks */
.footer-row {
    display: flex;
    justify-content: space-between;
}

.footer-block {
    width: 392px;
    height: 264px;
    border: 2px solid var(--color-footer-text);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-block h4 {
    font-size: var(--font-size-title-md);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-footer-text);
    margin: 0;
}

.footer-block address,
.footer-block a {
    font-style: normal;
    font-size: var(--font-size-title-sm);
}

.footer-block a:hover {
    color: var(--color-footer-text);
}

.newsletter-form {
    display: flex;
    margin-bottom: var(--space-sm);
}

.newsletter-form__button {
    margin-left: var(--space-sm);
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid var(--color-footer-input-border);
    border-radius: 6px;
    background: var(--color-footer-input-bg);
    color: var(--color-footer-text);
}

.newsletter-form input::placeholder {
    color: var(--color-footer-muted);
}

.newsletter-form .btn {
    flex-shrink: 0;
}

.newsletter-note {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-footer-muted);
    line-height: 1.4;
}

.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    color: var(--color-footer-text);
}

.social-links__item--spaced {
    margin-left: var(--space-md);
}

.social-links a {
    display: block;
    opacity: 0.8;
}

.social-links a:hover {
    opacity: 1;
}

.social-links svg {
    width: 48px;
    height: 48px;
    display: block;
}

.social-links__icon--linkedin svg {
    fill: var(--color-footer-text);
}

.social-links__icon--instagram svg {
    fill: var(--color-footer-text);
}

.footer-love {
    margin: 2rem 0;
    font-size: var(--font-size-title-md);
    text-align: center;
    text-transform: uppercase;
}

/* Negative margins cancel outer gutter for the copyright/links row */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: var(--space-lg);
    margin-left: calc(-1 * var(--space-md));
    margin-top: calc(-1 * var(--space-md));
    font-size: 0.8rem;
    color: var(--color-footer-muted);
}

.footer-bottom__item {
    margin-left: var(--space-md);
    margin-top: var(--space-md);
}

.footer-bottom a {
    color: var(--color-footer-muted);
}

.footer-bottom a:hover {
    color: var(--color-footer-text);
}

@media (max-width: 768px) {
    .footer-inner {
        display: block;
    }

    .footer-row {
        display: block;
    }

    .footer-block {
        width: 75%;
        margin: 2rem auto 2rem auto;
        padding: 1.8rem;
    }

    .social-links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .social-links__item--spaced {
        margin: 1rem 0 1rem 0;
    }

    .hero-logo {
        width: 350px;
        height: auto;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form__button {
        margin-left: 0;
    }

    .newsletter-form input {
        margin: 1rem 0 1rem 0;
    }
}
