/* Lora Regular */
@font-face {
    font-family: "Lora";
    src: url("../fonts/lora-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Lora Italic */
@font-face {
    font-family: "Lora";
    src: url("../fonts/lora-latin-400-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Lora Medium */
@font-face {
    font-family: "Lora";
    src: url("../fonts/lora-latin-500-normal.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Lora Medium Italic */
@font-face {
    font-family: "Lora";
    src: url("../fonts/lora-latin-500-italic.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Lora SemiBold */
@font-face {
    font-family: "Lora";
    src: url("../fonts/lora-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Lora SemiBold Italic */
@font-face {
    font-family: "Lora";
    src: url("../fonts/lora-latin-600-italic.woff2") format("woff2");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Lora Bold */
@font-face {
    font-family: "Lora";
    src: url("../fonts/lora-latin-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Lora Bold Italic */
@font-face {
    font-family: "Lora";
    src: url("../fonts/lora-latin-700-italic.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Cormorant Garamond Regular */
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-latin-400-normal.woff2")
        format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Cormorant Garamond Italic */
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-latin-400-italic.woff2")
        format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Cormorant Garamond Medium */
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-latin-500-normal.woff2")
        format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Cormorant Garamond SemiBold */
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-latin-600-normal.woff2")
        format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Cormorant Garamond Bold */
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-latin-700-normal.woff2")
        format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Cormorant Garamond Bold Italic */
@font-face {
    font-family: "Cormorant Garamond";
    src: url("../fonts/cormorant-garamond-latin-700-italic.woff2")
        format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary: #008080;
    --secondary: #c00000;
    --accent: #00b050;
    --text: #1a1a1a;
    --bg: #ffffff;
    --bg-alt: #f4f4f4;
    --border: #dddddd;
    --header-bg: rgba(255, 255, 255, 0.95);
    --menu-bg: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Font Families */
    --font-main: "Lora", serif;
    --font-title: "Cormorant Garamond", serif;
}

[data-theme="dark"] {
    --primary: #40c0c0;
    --secondary: #ff3232;
    --accent: #33cc70;
    --text: #ffffff;
    --bg: #121212;
    --bg-alt: #1e1e1e;
    --border: #333333;
    --header-bg: rgba(18, 18, 18, 0.95);
    --menu-bg: #1e1e1e;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg);
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    transition:
        background-color 0.3s,
        color 0.3s;
    overflow-x: hidden;
}

/* Prevent flash on load */
.preload,
.preload * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

/* Typography */
h1,
h2,
h3,
h4,
.font-serif,
.logo {
    font-family: var(--font-title);
    font-weight: 700;
}

h1,
h2,
h3,
h4,
.font-serif {
    line-height: 1.2;
}

.content-block p,
.card p,
[data-animate] > p {
    margin-bottom: 1.25rem;
}

.content-block p:last-child,
.card p:last-child,
[data-animate] > p:last-child {
    margin-bottom: 0;
}

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

ul {
    list-style: none;
}

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

.img-rounded {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Layout Elements */
.container {
    padding: 1em 20px;
    max-width: 1100px;
    margin: 1em auto;
}

section, section#intro {
    padding: 80px 0;
}

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

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid.align-center {
    align-items: center;
}
.grid.align-start {
    align-items: flex-start;
}

/* Navigation & Components */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: 70px;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    color: #c00000;
}

.header-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-desktop {
    display: none;
    gap: 30px;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }

    .nav-desktop a {
        font-size: 0.9rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        white-space: nowrap;
    }

    .nav-desktop a:hover {
        color: var(--primary);
    }

    .hamburger-btn {
        display: none;
    }
}

/* Menu Controls (Theme & Lang toggles) */
.menu-controls {
    display: flex;
    align-items: center;
    gap: 12px; /* Standard gap */
}

/* Scoped adjustments for visibility */
.header-nav-wrapper .menu-controls {
    display: none;
}

@media (min-width: 1024px) {
    .header-nav-wrapper .menu-controls {
        display: flex;
    }
}

/* Hamburger & Mobile Menu */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: var(--transition);
}

.hamburger-btn.active .hamburger-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--menu-bg);
    z-index: 999;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-family: var(--font-main);
}

.mobile-menu .menu-controls {
    gap: 20px;
    margin-top: 3px;
}

.theme-toggle,
.lang-toggle {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0 5px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* min-width: 100px; */
    height: 36px;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
}

.theme-toggle:hover,
.lang-toggle:hover {
    border-color: var(--primary);
    background: var(--bg);
    transform: translateY(-1px);
}

/* Sections Styling */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url("../images/image2.jpg");
    background-size: cover;
    background-position: center;
    color: #044735;
    padding-top: 70px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    font-style: italic;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    background-color: #006666;
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 15px auto;
}

.card {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
}

footer {
    padding: 60px 0;
    background: var(--bg-alt);
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}

.highlight-teal {
    color: var(--primary);
    font-weight: 700;
}
.highlight-red {
    color: var(--secondary);
    font-weight: 700;
}

.italic {
    font-style: italic;
}
.opacity-90 {
    opacity: 0.9;
}
.opacity-70 {
    opacity: 0.7;
}

/* Spacing & Layout Utilities */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.w-full {
    width: 100%;
}

.mt-10 {
    margin-top: 10px;
}
.mt-40 {
    margin-top: 40px;
}
.mb-20 {
    margin-bottom: 20px;
}

/* Special margin for clearing fixed header */
.mt-50,
.container.mt-50 {
    margin-top: 85px;
}

.max-w-500 {
    max-width: 500px;
}
.max-w-600 {
    max-width: 600px;
}
.max-w-800 {
    max-width: 800px;
}

.flex-center {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Elements */
include-html {
    display: contents;
}
