/* ===================================
   RESET & BASE STYLES
   =================================== */

/* Prevent horizontal overflow globally */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

::before,
::after {
    --tw-content: "";
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    font-family:
        "Source Sans Pro",
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        "Noto Sans",
        sans-serif;
    font-feature-settings: normal;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    line-height: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Source Serif Pro", Georgia, serif;
}

img {
    transition: opacity 0.3s ease;
}

/* ===================================
   COLOR PALETTE
   =================================== */

.bg-cream {
    background-color: #fffdf8;
}
.bg-dark {
    background-color: #345363;
}
.bg-accent {
    background-color: #ed7a1a;
}
.bg-accent-dark {
    background-color: #d96b15;
}
.bg-transparent {
    background-color: transparent;
}

.text-cream {
    color: #fffdf8;
}
.text-dark {
    color: #345363;
}
.text-accent {
    color: #ed7a1a;
}

.border-cream {
    border-color: #fffdf8;
}
.border-dark {
    border-color: #345363;
}
.border-accent {
    border-color: #ed7a1a;
}

/* Color Hover States */
.hover\:bg-accent:hover {
    background-color: #ed7a1a;
}
.hover\:bg-accent-dark:hover {
    background-color: #d96b15;
}
.hover\:bg-cream:hover {
    background-color: #fffdf8;
}
.hover\:text-accent:hover {
    color: #ed7a1a;
}
.hover\:text-dark:hover {
    color: #345363;
}

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

/* Display */
.flex {
    display: flex;
}
.grid {
    display: grid;
}
.hidden {
    display: none;
}
.block {
    display: block;
}

/* Position */
.fixed {
    position: fixed;
}
.absolute {
    position: absolute;
}
.relative {
    position: relative;
}

/* Positioning */
.top-0 {
    top: 0px;
}
.top-15 {
    top: 15px;
}
.top-50 {
    top: 50%;
}
.right-35 {
    right: 35px;
}
.left-50 {
    left: 50%;
}

/* Z-Index */
.z-50 {
    z-index: 50;
}
.z-1000 {
    z-index: 1000;
}
.z-1001 {
    z-index: 1001;
}

/* Flex & Grid */
.justify-between {
    justify-content: space-between;
}
.justify-center {
    justify-content: center;
}
.items-center {
    align-items: center;
}

/* Sizing */
.w-full {
    width: 100%;
}
.w-16 {
    width: 4rem;
}
.w-6 {
    width: 1.5rem;
}
.w-5 {
    width: 1.25rem;
}

.h-96 {
    height: 24rem;
}
.h-16 {
    height: 4rem;
}
.h-6 {
    height: 1.5rem;
}
.h-5 {
    height: 1.25rem;
}

.min-h-screen {
    min-height: 100vh;
}
.max-w-4xl {
    max-width: 56rem;
}
.max-w-3xl {
    max-width: 48rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

/* ===================================
   SPACING UTILITIES
   =================================== */

/* Margins */
.m-0 {
    margin: 0;
}
.m-1 {
    margin: 0.25rem;
}
.m-2 {
    margin: 0.5rem;
}
.m-3 {
    margin: 0.75rem;
}
.m-4 {
    margin: 1rem;
}
.m-5 {
    margin: 1.25rem;
}
.m-6 {
    margin: 1.5rem;
}
.m-8 {
    margin: 2rem;
}
.m-10 {
    margin: 2.5rem;
}
.m-12 {
    margin: 3rem;
}
.m-16 {
    margin: 4rem;
}
.m-20 {
    margin: 5rem;
}
.m-24 {
    margin: 6rem;
}
.m-auto {
    margin: auto;
}

/* Margin X-Axis */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.mx-0 {
    margin-left: 0;
    margin-right: 0;
}
.mx-1 {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}
.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}
.mx-3 {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}
.mx-4 {
    margin-left: 1rem;
    margin-right: 1rem;
}
.mx-5 {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}
.mx-6 {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}
.mx-8 {
    margin-left: 2rem;
    margin-right: 2rem;
}
.mx-10 {
    margin-left: 2.5rem;
    margin-right: 2.5rem;
}
.mx-12 {
    margin-left: 3rem;
    margin-right: 3rem;
}
.mx-16 {
    margin-left: 4rem;
    margin-right: 4rem;
}
.mx-20 {
    margin-left: 5rem;
    margin-right: 5rem;
}

/* Margin Y-Axis */
.my-0 {
    margin-top: 0;
    margin-bottom: 0;
}
.my-1 {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}
.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.my-3 {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.my-5 {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}
.my-6 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.my-8 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.my-10 {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}
.my-12 {
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.my-16 {
    margin-top: 4rem;
    margin-bottom: 4rem;
}
.my-20 {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

/* Individual Margins */
.mt-0 {
    margin-top: 0;
}
.mt-1 {
    margin-top: 0.25rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mt-3 {
    margin-top: 0.75rem;
}
.mt-4 {
    margin-top: 1rem;
}
.mt-5 {
    margin-top: 1.25rem;
}
.mt-6 {
    margin-top: 1.5rem;
}
.mt-8 {
    margin-top: 2rem;
}
.mt-10 {
    margin-top: 2.5rem;
}
.mt-12 {
    margin-top: 3rem;
}
.mt-16 {
    margin-top: 4rem;
}
.mt-20 {
    margin-top: 5rem;
}
.mt-24 {
    margin-top: 6rem;
}

.mr-0 {
    margin-right: 0;
}
.mr-1 {
    margin-right: 0.25rem;
}
.mr-2 {
    margin-right: 0.5rem;
}
.mr-3 {
    margin-right: 0.75rem;
}
.mr-4 {
    margin-right: 1rem;
}
.mr-5 {
    margin-right: 1.25rem;
}
.mr-6 {
    margin-right: 1.5rem;
}
.mr-8 {
    margin-right: 2rem;
}
.mr-10 {
    margin-right: 2.5rem;
}
.mr-12 {
    margin-right: 3rem;
}
.mr-16 {
    margin-right: 4rem;
}
.mr-20 {
    margin-right: 5rem;
}

.mb-0 {
    margin-bottom: 0;
}
.mb-1 {
    margin-bottom: 0.25rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.mb-3 {
    margin-bottom: 0.75rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mb-5 {
    margin-bottom: 1.25rem;
}
.mb-6 {
    margin-bottom: 1.5rem;
}
.mb-8 {
    margin-bottom: 2rem;
}
.mb-10 {
    margin-bottom: 2.5rem;
}
.mb-12 {
    margin-bottom: 3rem;
}
.mb-16 {
    margin-bottom: 4rem;
}
.mb-20 {
    margin-bottom: 5rem;
}
.mb-24 {
    margin-bottom: 6rem;
}

.ml-0 {
    margin-left: 0;
}
.ml-1 {
    margin-left: 0.25rem;
}
.ml-2 {
    margin-left: 0.5rem;
}
.ml-3 {
    margin-left: 0.75rem;
}
.ml-4 {
    margin-left: 1rem;
}
.ml-5 {
    margin-left: 1.25rem;
}
.ml-6 {
    margin-left: 1.5rem;
}
.ml-8 {
    margin-left: 2rem;
}
.ml-10 {
    margin-left: 2.5rem;
}
.ml-12 {
    margin-left: 3rem;
}
.ml-16 {
    margin-left: 4rem;
}
.ml-20 {
    margin-left: 5rem;
}

/* Paddings */
.p-0 {
    padding: 0;
}
.p-1 {
    padding: 0.25rem;
}
.p-2 {
    padding: 0.5rem;
}
.p-3 {
    padding: 0.75rem;
}
.p-4 {
    padding: 1rem;
}
.p-5 {
    padding: 1.25rem;
}
.p-6 {
    padding: 1.5rem;
}
.p-8 {
    padding: 2rem;
}
.p-10 {
    padding: 2.5rem;
}
.p-12 {
    padding: 3rem;
}
.p-16 {
    padding: 4rem;
}
.p-20 {
    padding: 5rem;
}
.p-24 {
    padding: 6rem;
}

/* Padding X-Axis */
.px-0 {
    padding-left: 0;
    padding-right: 0;
}
.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}
.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}
.px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}
.px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
}
.px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
}
.px-20 {
    padding-left: 5rem;
    padding-right: 5rem;
}

/* Padding Y-Axis */
.py-0 {
    padding-top: 0;
    padding-bottom: 0;
}
.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}
.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Individual Paddings */
.pt-0 {
    padding-top: 0;
}
.pt-1 {
    padding-top: 0.25rem;
}
.pt-2 {
    padding-top: 0.5rem;
}
.pt-3 {
    padding-top: 0.75rem;
}
.pt-4 {
    padding-top: 1rem;
}
.pt-5 {
    padding-top: 1.25rem;
}
.pt-6 {
    padding-top: 1.5rem;
}
.pt-8 {
    padding-top: 2rem;
}
.pt-10 {
    padding-top: 2.5rem;
}
.pt-12 {
    padding-top: 3rem;
}
.pt-16 {
    padding-top: 4rem;
}
.pt-20 {
    padding-top: 5rem;
}
.pt-24 {
    padding-top: 6rem;
}

.pr-0 {
    padding-right: 0;
}
.pr-1 {
    padding-right: 0.25rem;
}
.pr-2 {
    padding-right: 0.5rem;
}
.pr-3 {
    padding-right: 0.75rem;
}
.pr-4 {
    padding-right: 1rem;
}
.pr-5 {
    padding-right: 1.25rem;
}
.pr-6 {
    padding-right: 1.5rem;
}
.pr-8 {
    padding-right: 2rem;
}
.pr-10 {
    padding-right: 2.5rem;
}
.pr-12 {
    padding-right: 3rem;
}
.pr-16 {
    padding-right: 4rem;
}
.pr-20 {
    padding-right: 5rem;
}

.pb-0 {
    padding-bottom: 0;
}
.pb-1 {
    padding-bottom: 0.25rem;
}
.pb-2 {
    padding-bottom: 0.5rem;
}
.pb-3 {
    padding-bottom: 0.75rem;
}
.pb-4 {
    padding-bottom: 1rem;
}
.pb-5 {
    padding-bottom: 1.25rem;
}
.pb-6 {
    padding-bottom: 1.5rem;
}
.pb-8 {
    padding-bottom: 2rem;
}
.pb-10 {
    padding-bottom: 2.5rem;
}
.pb-12 {
    padding-bottom: 3rem;
}
.pb-16 {
    padding-bottom: 4rem;
}
.pb-20 {
    padding-bottom: 5rem;
}
.pb-24 {
    padding-bottom: 6rem;
}

.pl-0 {
    padding-left: 0;
}
.pl-1 {
    padding-left: 0.25rem;
}
.pl-2 {
    padding-left: 0.5rem;
}
.pl-3 {
    padding-left: 0.75rem;
}
.pl-4 {
    padding-left: 1rem;
}
.pl-5 {
    padding-left: 1.25rem;
}
.pl-6 {
    padding-left: 1.5rem;
}
.pl-8 {
    padding-left: 2rem;
}
.pl-10 {
    padding-left: 2.5rem;
}
.pl-12 {
    padding-left: 3rem;
}
.pl-16 {
    padding-left: 4rem;
}
.pl-20 {
    padding-left: 5rem;
}

/* Space Between Elements */
.space-x-8 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 2rem;
}
.space-x-6 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 1.5rem;
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1.5rem;
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1rem;
}

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

/* Font Sizes */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}
.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}
.text-5xl {
    font-size: 3rem;
    line-height: 1;
}
.text-7xl {
    font-size: 4.5rem;
    line-height: 1;
}

/* Font Weights */
.font-light {
    font-weight: 300;
}
.font-medium {
    font-weight: 500;
}
.font-semibold {
    font-weight: 600;
}
.font-bold {
    font-weight: 700;
}

/* Line Heights */
.leading-tight {
    line-height: 1.25;
}
.leading-relaxed {
    line-height: 1.625;
}

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

/* ===================================
   VISUAL EFFECTS
   =================================== */

/* Borders */
.border {
    border-width: 1px;
}
.border-2 {
    border-width: 2px;
}
.border-b {
    border-bottom-width: 1px;
}
.border-t {
    border-top-width: 1px;
}

.rounded-lg {
    border-radius: 0.5rem;
}
.rounded-md {
    border-radius: 0.375rem;
}

/* Shadows */
.shadow-md {
    box-shadow:
        0 4px 6px -1px rgb(0 0 0 / 0.1),
        0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.shadow-lg {
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.shadow-xl {
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.hover\:shadow-xl:hover {
    box-shadow:
        0 20px 25px -5px rgb(0 0 0 / 0.1),
        0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ===================================
   INTERACTIONS & ANIMATIONS
   =================================== */

.cursor-pointer {
    cursor: pointer;
}

/* Transforms */
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y))
        rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
        scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:scale-105:hover {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y))
        rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
        scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Transitions */
.transition-colors {
    transition-property:
        color, background-color, border-color, text-decoration-color, fill,
        stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.duration-200 {
    transition-duration: 200ms;
}

.hover\:underline:hover {
    text-decoration-line: underline;
}

/* ===================================
   FOCUS STATES
   ===================================

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow:
        0 0 0 4px rgba(52, 83, 99, 0.35),
        0 0 8px 2px rgba(52, 83, 99, 0.25);
}

.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0
        var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0
        calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow:
        var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
        var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-accent:focus {
    --tw-ring-color: #ed7a1a;
    box-shadow:
        0 0 0 4px rgba(237, 122, 26, 0.35),
        0 0 8px 2px rgba(237, 122, 26, 0.25);
}*/

/* Universal focus style for all interactive elements */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(255, 191, 15, 1),
        0 0 8px 2px rgba(255, 191, 15, 1);
    transition: box-shadow 0.2s;
}

/* ===================================
   BUTTON COMPONENTS
   =================================== */

/* Filled Button Styles */
.btn-accent {
    background-color: #ed7a1a;
    color: #fffdf8;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid #ed7a1a;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-cream {
    background-color: #fffdf8;
    color: #345363;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid #fffdf8;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Outline Button Styles */
.btn-outline-accent {
    background-color: transparent;
    color: #ed7a1a;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid #ed7a1a;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-cream {
    background-color: transparent;
    color: #fffdf8;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid #fffdf8;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Button Hover States */
.btn-accent:hover {
    background-color: #d96b15;
    border-color: #d96b15;
    transform: translateY(-1px);
}

.btn-cream:hover {
    background-color: #f8f5f0;
    border-color: #f8f5f0;
    transform: translateY(-1px);
}

.btn-outline-accent:hover {
    background-color: #ed7a1a;
    color: #fffdf8;
    transform: translateY(-1px);
}

.btn-outline-cream:hover {
    background-color: #fffdf8;
    color: #345363;
    transform: translateY(-1px);
}

/* Button Link Inheritance */
button a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

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

button a:focus {
    outline: none;
}

/* ===================================
   NAVIGATION COMPONENTS
   =================================== */

/* Header Navigation */
header {
    transition: transform 0.3s ease-in-out;
}

header nav a {
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
header nav a:focus {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(52, 83, 99, 0.35),
        0 0 8px 2px rgba(52, 83, 99, 0.25);
}

nav a {
    text-decoration: none !important;
}

header nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.2s ease-in-out;
}

header nav a:hover::after {
    transform: scaleX(1);
}

/* Footer Navigation */
footer nav {
    background: none !important;
    border: none !important;
}

footer nav a {
    background: none !important;
    border: none !important;
    color: #fffdf8 !important;
    position: relative;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    padding: 0.5rem 1rem !important;
}
footer nav a:focus {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(52, 83, 99, 0.35),
        0 0 8px 2px rgba(52, 83, 99, 0.25);
}

footer nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fffdf8;
    transform: scaleX(0);
    transition: transform 0.2s ease-in-out;
}

footer nav a:hover {
    background: none !important;
    color: #fffdf8 !important;
    transform: none !important;
}

footer nav a:hover::after {
    transform: scaleX(1);
}

/* ===================================
   CUSTOM COMPONENTS
   =================================== */

/* Hero Background */
.hero-bg {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)),
        url("images/jpg/bg-2.jpeg");
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

/* Photo Gallery Masonry Grid */
.masonry-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.masonry-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
    border-radius: 0.5rem;
    display: block !important;
    position: relative;
}

/* Inline expansion for masonry images */
.masonry-item.expanded {
    z-index: 10;
    position: relative;
    grid-column: span 2 !important;
    grid-row: span 2 !important;
    background: #fffdf8;
    /* box-shadow removed for inline expanded images on mobile */
    box-shadow: none;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.masonry-item.expanded img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.masonry-item .close-inline {
    display: none;
    /* Shift close button to top right for inline expanded images on mobile */
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    margin-bottom: 0;
    z-index: 20;
    background: #ed7a1a;
    color: #fffdf8;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: bold;
    cursor: pointer;
}

.masonry-item.expanded .close-inline {
    display: block;
}

.masonry-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 1 !important;
}

/* Hide masonry captions by default */
.masonry-caption {
    display: none;
}

/* Show caption only when expanded (mobile only) */
@media (max-width: 767px) {
    .masonry-item.expanded {
        min-height: 300px;
        overflow: visible;

        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 2rem;
    }
    .masonry-item.expanded .masonry-caption {
        display: block;
        position: relative;
        z-index: 10;
        margin-top: 1rem;
        margin-bottom: 1rem;
        padding: 1rem 1.5rem;
        background: #345363; /* color-dark */
        color: #fffdf8; /* color-cream */
        border: none;
        width: 100%;
        box-sizing: border-box;
        box-shadow: 0 2px 8px rgba(52, 83, 99, 0.08);
        text-align: center;
        margin: 1rem 0 0 0; /* Only top margin for spacing */
        border-radius: 0.5rem;
    }
    .masonry-item .close-inline {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        z-index: 20;
    }
}

.masonry-item:hover {
    transform: scale(1.02);
}

/* Masonry Item Sizing */
.masonry-item:nth-child(odd):last-child {
    grid-column: span 3;
    grid-row: span 2;
}

.masonry-item:nth-child(1),
.masonry-item:nth-child(5),
.masonry-item:nth-child(9) {
    grid-column: span 2;
    grid-row: span 2;
}

.masonry-item:nth-child(3),
.masonry-item:nth-child(7),
.masonry-item:nth-child(11) {
    grid-column: span 2;
    grid-row: span 1;
}

.masonry-item:nth-child(4),
.masonry-item:nth-child(8),
.masonry-item:nth-child(12) {
    grid-column: span 1;
    grid-row: span 2;
}

/* Attractions Masonry Layout */
.attractions-masonry {
    column-count: 3;
    column-gap: 1.5rem;
    break-inside: avoid;
}

.attraction-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    display: block !important;
}

/* Photo Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);

    /* Vertically and horizontally center modal content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

#imageModal {
    min-height: 100vh;
}

#imageModal .modal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.modal-content {
    max-width: 70vw;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 2rem;
    box-sizing: border-box;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal-image-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
}

.modal-caption-nav {
    display: none;
}

#caption {
    margin-bottom: 1rem;
    width: 100%;
    text-align: center;
    word-break: break-word;
    box-sizing: border-box;
}

.close:hover {
    color: #ccc;
}

/* Accordion Components */
.accordion-button {
    border-radius: 0.25rem; /* 4px */
    border: none;
    outline: 2px solid #345363; /* color-dark */
    transition:
        border-radius 0.2s,
        outline-color 0.2s;
}

.accordion-button:focus {
    outline: 2px solid #ed7a1a;
    outline-offset: 2px;
    box-shadow:
        0 0 0 4px rgba(237, 122, 26, 0.35),
        0 0 8px 2px rgba(237, 122, 26, 0.25);
}

.accordion-content {
    font-size: 1rem;
}

/* External Link Icons */
.external-link-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: baseline;
    flex-shrink: 0;
}

a svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .md\:hidden {
        display: none;
    }
    .md\:flex {
        display: flex;
    }
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    .md\:space-y-0 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 0px;
    }
    .md\:space-x-6 > :not([hidden]) ~ :not([hidden]) {
        margin-left: 1.5rem;
    }
    .md\:justify-center {
        justify-content: center;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablet Responsive Adjustments */
@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: 1fr 1fr !important;
        grid-auto-rows: 140px;
        column-gap: 0.75rem;
        row-gap: 0.75rem;
        padding: 0 0.5rem;
    }
    .masonry-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        margin: 0;
    }
    .attractions-masonry {
        column-count: 2;
        column-gap: 1rem;
    }
    .attraction-card {
        margin-bottom: 1rem;
    }
    .mr-10 {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    .ml-10 {
        margin-top: 1rem;
        margin-left: 0;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
    .masonry-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 180px;
        padding: 0 0.25rem;
    }
    .masonry-item {
        margin-bottom: 0.5rem;
    }
    .attractions-masonry {
        column-count: 1;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 200px;
    }
}
