/* ========================================
   MAIN STYLESHEET - Global CSS
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FFF8F0;
    color: #333333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
}

a {
    color: #7A3E2E;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #F4A261;
}

/* Semantic HTML Elements */
header, main, article, section, footer {
    display: block;
}

section {
    padding: 3rem 0;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Selection Color */
::selection {
    background-color: #F4A261;
    color: white;
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid #F4A261;
    outline-offset: 2px;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form Elements */
button, input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

button {
    cursor: pointer;
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid #F4A261;
    outline-offset: 2px;
}

/* Custom scrollbar (previously duplicated inline on every page) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F0;
}
::-webkit-scrollbar-thumb {
    background: #EFE3D3;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F4A261;
}

/* Shared hero heading scale used on the homepage and every landing page hero */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
}

/* Section heading scale used across content pages */
.section-title {
    font-size: clamp(1.625rem, 4vw, 2.5rem);
    line-height: 1.3;
}

html {
    scroll-padding-top: 96px; /* keeps in-page anchors clear of the fixed header */
}
