/* ============================================
   PAMEL Website - Main Stylesheet
   Reset, Variables, Typography, Utilities
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Brand Colors */
    --color-teal: #0097a7;
    --color-teal-dark: #00897b;
    --color-teal-light: #26c6da;
    --color-purple: #7b1fa2;
    --color-purple-dark: #4a148c;

    /* Background Colors */
    --bg-light-blue: #e0f7fa;
    --bg-cream: #fdf6ec;
    --bg-white: #ffffff;
    --bg-dark: #1a2332;
    --bg-footer: #0d1520;

    /* Text Colors */
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #666666;
    --text-subtle: #999999;

    /* Layout */
    --header-height: 80px;
    --container-max: 1200px;
    --container-padding: 20px;

    /* Typography */
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --section-padding: 80px;
    --section-padding-sm: 50px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-round: 50%;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--color-teal-dark);
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

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

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

.section--light-blue {
    background-color: var(--bg-light-blue);
}

.section--cream {
    background-color: var(--bg-cream);
}

.section--white {
    background-color: var(--bg-white);
}

.section--dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* --- Text Utilities --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: var(--text-light); }
.text-teal { color: var(--color-teal); }
.text-muted { color: var(--text-muted); }

/* --- Section Titles --- */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn--primary {
    background-color: var(--color-teal);
    color: var(--text-light);
    border-color: var(--color-teal);
}

.btn--primary:hover {
    background-color: var(--color-teal-dark);
    border-color: var(--color-teal-dark);
    color: var(--text-light);
}

.btn--outline {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn--outline:hover {
    background-color: var(--text-light);
    color: var(--color-teal);
}

.btn--white {
    background-color: var(--text-light);
    color: var(--color-teal);
    border-color: var(--text-light);
}

.btn--white:hover {
    background-color: transparent;
    color: var(--text-light);
}

.btn--lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* --- Grid Utilities --- */
.grid {
    display: grid;
    gap: 30px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Flex Utilities --- */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* --- Spacing Utilities --- */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* --- Page Hero (inner pages) --- */
.page-hero {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-teal) 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--text-light);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Visibility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Main content offset for sticky header --- */
main {
    min-height: calc(100vh - var(--header-height));
}

/* --- Scroll offset for anchor links (sticky header) --- */
section[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

/* ============================================
   Shared Components (used across pages)
   ============================================ */

/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 2rem;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-card__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-round);
    background-color: var(--color-teal);
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 700;
}

.feature-card__text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Video Wrapper (responsive 16:9) --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light-blue);
    padding: 40px 20px;
    min-height: 200px;
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-item__placeholder {
    transform: scale(1.03);
}

.gallery-item__placeholder i {
    font-size: 2.5rem;
    color: var(--color-teal);
    margin-bottom: 10px;
}

.gallery-item__placeholder span {
    color: var(--text-muted);
    font-size: 0.85rem;
}
