/**
 * Global Styles
 *
 * Mobile-first base reset, typography, layout utilities,
 * and shared component styles used across the entire FISHOOZ site.
 */

/* ==========================================================================
   RESET
   ========================================================================== */

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
}

@media (min-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
}

a {
    color: var(--ocean-deep);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--ocean-mid);
}

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 20px;
}

@media (min-width: 768px) {
    .container {
        padding-inline: 40px;
    }
}

@media (min-width: 1280px) {
    .container {
        padding-inline: 60px;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all var(--transition-smooth);
    line-height: 1.2;
}

/* Ocean gradient — secondary CTA (View Product, Shop) */
.btn--ocean {
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
    color: var(--white);
    font-size: 13px;
    padding: 16px 30px;
    box-shadow: var(--shadow-button-ocean);
}

.btn--ocean:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(27, 107, 147, 0.45);
    color: var(--white);
}

/* Purple gradient — primary CTA (Add to Cart, Checkout) */
.btn--purple {
    background: linear-gradient(135deg, var(--dureva-purple) 0%, var(--dureva-magenta) 100%);
    color: var(--white);
    font-size: 13px;
    padding: 16px 30px;
    box-shadow: var(--shadow-button-purple);
}

.btn--purple:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(123, 63, 158, 0.4);
    color: var(--white);
}

/* Tertiary — white with ocean-pale border */
.btn--tertiary {
    background: var(--white);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 12px 16px;
    border: 1px solid var(--ocean-pale);
}

.btn--tertiary:hover {
    background: var(--sky-light);
    border-color: var(--ocean-light);
    color: var(--text-dark);
}

/* Arrow on CTA buttons */
.btn--arrow::after {
    content: "\2192";
    font-size: 18px;
    transition: transform var(--transition-smooth);
}

.btn--arrow:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   FEATURE TAGS
   ========================================================================== */

.feature-tag {
    background: var(--ocean-deep);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(27, 107, 147, 0.2);
}

/* ==========================================================================
   SCREEN READER UTILITIES
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

.screen-reader-text:focus {
    clip: auto;
    display: block;
    height: auto;
    width: auto;
    position: static;
}

/* ==========================================================================
   SKIP LINK
   ========================================================================== */

.skip-link {
    background: var(--ocean-deep);
    color: var(--white);
    padding: 8px 16px;
    z-index: 10000;
}

.skip-link:focus {
    clip: auto;
    position: fixed;
    top: 0;
    left: 0;
    height: auto;
    width: auto;
}
