/*
Theme Name:  Tarsis Theme
Theme URI:   https://avadia.ec
Description: Custom theme for Laboratorios Cosméticos Tarsis S.A. — brands Avadia, Aqvam, Nova.
Version:     1.0.0
Author:      Laboratorios Cosméticos Tarsis S.A.
Author URI:  https://avadia.ec
License:     Proprietary
Text Domain: tarsis-theme
*/

/* =========================================================
   Design tokens — neutral placeholders until brand manual
   is delivered. Replace hex values once approved.
   ========================================================= */
:root {
    /* Neutrals */
    --color-white:       #ffffff;
    --color-black:       #000000;
    --color-gray-100:    #f5f5f5;
    --color-gray-200:    #e5e5e5;
    --color-gray-300:    #d4d4d4;
    --color-gray-500:    #737373;
    --color-gray-700:    #404040;
    --color-gray-900:    #171717;

    /* Brand primaries — TBD */
    --color-primary:     #222222;
    --color-primary-alt: #444444;
    --color-accent:      #888888;

    /* Typography */
    --font-display:      'Urbanist', system-ui, sans-serif;
    --font-base:         'DM Sans', system-ui, -apple-system, sans-serif;
    --font-heading:      'Playfair Display', Georgia, serif;
    --font-size-base:    1rem;
    --line-height-base:  1.6;

    /* Spacing scale (4-point base) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Layout */
    --container-max: 1200px;
    --border-radius:  4px;
}

/* =========================================================
   Reset / base
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-gray-900);
    background-color: #FDFDFC;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Shared container
   ========================================================= */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* =========================================================
   Header / Navigation — floating pill
   ========================================================= */

/* Fixed transparent shell that holds the pill */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: transparent;
    border: none;
    padding-top: 18px;
    pointer-events: none; /* clicks pass through the transparent area */
}

/* Centering wrapper */
.nav-pill-wrap {
    display: flex;
    justify-content: center;
    padding-inline: 20px;
}

/* The dark pill itself */
.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(22, 22, 22, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 100px;
    padding: 8px 8px 8px 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
    pointer-events: all;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Logo inside pill */
.site-branding {
    flex-shrink: 0;
}

.site-branding a,
.site-branding a:hover {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 9px;
}

.site-branding__link {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.site-branding img {
    height: 32px;
    width: 32px;
    display: block;
    flex-shrink: 0;
    /* invert dark logo to white inside dark pill */
    filter: brightness(0) invert(1);
}

.site-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* Nav links inside pill */
.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li a {
    font-family: var(--font-base);
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 100px;
    transition: background-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Last link (Contáctanos) as a green pill-button */
.main-navigation ul li:last-child a {
    background: #2D6A4F;
    color: #ffffff;
    font-weight: 600;
    padding: 8px 18px;
}

.main-navigation ul li:last-child a:hover {
    background: #3a8562;
}

/* Hero and content push — compensate for fixed nav */
.site {
    padding-top: 0; /* hero handles its own top-padding */
}

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

.site-footer {
    background: #111111;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-base);
}

.footer__top {
    padding-block: 72px 56px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1.5fr;
        gap: 64px;
    }
}

/* Brand col */
.footer__logo-link {
    display: inline-flex;
    margin-bottom: 16px;
}

.footer__logo-link img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
}

.footer__site-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: #ffffff;
}

.footer__tagline {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
    margin: 0;
}

/* Nav col */
.footer__col-title {
    font-family: var(--font-base);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 20px;
}

.footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer__links li a:hover {
    color: #ffffff;
}

/* Contact col */
.footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer__contact-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer__contact-list a:hover {
    color: #ffffff;
}

.footer__contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #2D6A4F;
}

/* Bottom bar */
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-block: 20px;
}

.footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__copy,
.footer__legal {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

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

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

ul,
ol {
    list-style: none;
}
