/* ============================================
   JA Passeios Nauticos — Global Styles
   Design System: Navy Blue, Gold/Orange, Ocean Blue
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

/* --------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------- */
:root {
    /* Brand Colors */
    --primary: #163B5C;
    --primary-light: #256A8E;
    --primary-dark: #071827;
    --accent: #B88A2A;
    --accent-hover: #9A701F;
    --accent-soft: #F7F1E7;
    --ocean: #1B8FB8;
    --aqua: #67C3D0;

    /* Neutrals */
    --light: #F4F8FA;
    --surface: #F9FAFB;
    --white: #FFFFFF;
    --dark: #101820;
    --text-dark: #101820;
    --gray: #52616C;
    --text-gray: #52616C;
    --gray-light: #E4EBF0;
    --border: #DCE5EA;

    /* Feedback */
    --success: #16A34A;
    --danger: #DC2626;

    /* Borders & Shadows */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 28px rgba(16, 24, 32, 0.07);
    --shadow-lg: 0 22px 56px rgba(16, 24, 32, 0.14);
    --shadow-accent: 0 14px 28px rgba(184, 138, 42, 0.24);

    /* Misc */
    --transition: 0.2s ease;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --max-width: 1200px;
}


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

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

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

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

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

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* --------------------------------------------
   Base Typography
   -------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
    letter-spacing: 0;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

strong {
    font-weight: 700;
}

small {
    font-size: 0.875rem;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.875rem;
    }
}


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

@media (min-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}


/* --------------------------------------------
   Section Spacing
   -------------------------------------------- */
section,
.section {
    padding: 2.5rem 0;
}

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

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

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-dark p {
    color: var(--gray-light);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 64px;
    height: 2px;
    margin: 0.85rem auto 0;
    border-radius: 999px;
    background: var(--accent);
}

.section-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tablet+ */
@media (min-width: 768px) {
    section,
    .section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }
}


/* --------------------------------------------
   Utility Classes
   -------------------------------------------- */

/* Text alignment */
.text-center {
    text-align: center;
}

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

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

/* Text colors */
.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.text-white {
    color: var(--white);
}

.text-gray {
    color: var(--gray);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

/* Margin bottom */
.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Margin top */
.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* Padding */
.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

/* Display */
.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Responsive visibility */
.hidden-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hidden-mobile {
        display: initial;
    }

    .hidden-desktop {
        display: none;
    }
}

/* Font weight */
.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

/* Width */
.w-100 {
    width: 100%;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 2000;
    padding: 0.7rem 0.95rem;
    border-radius: var(--radius-sm);
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 800;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
}

.skip-link:focus {
    position: fixed;
    left: 0.75rem;
    top: 0.75rem;
    width: auto;
    height: auto;
    transform: translateY(0);
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}


/* --------------------------------------------
   Selection & Scrollbar
   -------------------------------------------- */
::selection {
    background-color: var(--accent);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* --------------------------------------------
   Animations (Keyframes)
   -------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
