:root {
    --primary: #1B3A5C;
    --primary-light: #2A5A8C;
    --accent: #C8A45A;
    --accent-light: #E8D5A0;
    --bg-light: #FAF8F5;
    --bg-section: #F0EDE8;
    --text-dark: #1A1A2E;
    --text-medium: #4A4A5A;
    --text-light: #7A7A8A;
    --white: #FFFFFF;
    --footer-bg: #0F1B2D;
    --footer-text: #C8C8D0;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background: linear-gradient(180deg, #fff, var(--bg-light)); line-height: 1.7; }
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; margin-top: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1150px, 92%); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 9999; background: var(--white); color: var(--primary); padding: 0.5rem 1rem; }

.site-header { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(27, 58, 92, 0.35); backdrop-filter: blur(6px); transition: background 0.3s ease; }
.site-header.scrolled { background: rgba(15, 27, 45, 0.96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-logo { height: 50px; width: auto; }
.brand-name { font-family: 'Playfair Display', serif; color: var(--white); font-size: clamp(0.9rem, 1.25vw, 1.1rem); letter-spacing: 0.04em; }
.main-nav ul { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--white); text-decoration: none; padding: 0.4rem 0; font-weight: 500; position: relative; }
.main-nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); transition: width 0.25s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: all 0.25s ease; }

main { padding-top: 84px; }
.hero { min-height: 88vh; display: grid; place-items: center; position: relative; color: var(--white); text-align: center; background-size: cover; background-position: center; background-attachment: fixed; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15, 27, 45, 0.8), rgba(27, 58, 92, 0.5)); }
.hero-content { position: relative; z-index: 1; width: min(860px, 92%); }
.hero h1 { font-size: clamp(2rem, 4vw, 3.8rem); margin-bottom: 0.8rem; }
.hero p { font-size: clamp(1rem, 2vw, 1.3rem); margin-bottom: 1.6rem; }
.btn { display: inline-block; padding: 0.75rem 1.25rem; background: var(--accent); color: var(--primary); border-radius: 8px; text-decoration: none; font-weight: 700; transition: transform 0.2s ease, background 0.2s ease; min-height: 44px; }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); background: #d6b46f; }

.section { padding: 4.5rem 0; }
.section.alt { background: var(--bg-section); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.card { background: rgba(255,255,255,0.75); border-radius: 12px; padding: 1.2rem; box-shadow: 0 10px 25px rgba(27,58,92,0.08); border: 1px solid rgba(200,164,90,0.22); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27,58,92,0.14); }
.icon { color: var(--accent); font-size: 1.4rem; margin-bottom: 0.5rem; }
.image-card img, .feature-image, .gallery img { border-radius: 12px; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.image-card:hover img, .gallery figure:hover img { transform: scale(1.03); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 8px 20px rgba(15,27,45,0.1); }
.gallery figcaption { padding: 0.7rem 0.8rem; font-size: 0.92rem; color: var(--text-medium); }
.banner { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); border-radius: 14px; padding: 1.4rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
th, td { padding: 0.8rem; border-bottom: 1px solid #ece8e0; text-align: left; }

.page-hero { min-height: 44vh; }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

.form-group { margin-bottom: 0.9rem; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
input, select, textarea { width: 100%; border: 1px solid #d5d1c8; border-radius: 8px; padding: 0.7rem; font: inherit; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .main-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { color: #9e2f2f; font-size: 0.88rem; margin-top: 0.2rem; }

.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 3rem; }
.footer-top-line { height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.footer-content { padding: 2rem 0 1.2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.footer-brand h2 { font-size: 1.1rem; margin: 0; color: #f2f2f8; }
.footer-logo { height: 35px; width: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.footer-grid h3 { color: #fff; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.35rem; }
.footer-grid a { color: var(--footer-text); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-meta { border-top: 1px solid rgba(200,200,208,0.2); margin-top: 1rem; padding-top: 0.8rem; font-size: 0.95rem; }

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-nav { position: absolute; top: 100%; right: 0; left: 0; background: rgba(15, 27, 45, 0.98); max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    .main-nav.open { max-height: 340px; }
    .main-nav ul { flex-direction: column; padding: 0.8rem 1rem 1rem; gap: 0.6rem; }
    .brand-name { font-size: 0.85rem; }
    .grid-3, .grid-2, .footer-grid, .gallery { grid-template-columns: 1fr; }
    .hero { background-attachment: scroll; }
}
@media (max-width: 480px) {
    .section { padding: 3.5rem 0; }
}
