/* OLOGGI shared styles */

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

:root {
  --primary: #E8962A;
  --primary-light: #F5B34D;
  --primary-dark: #C67D1F;
  --primary-50: #FFF8ED;
  --primary-100: #FFEFD4;
  --primary-200: #FFDDA8;
  --accent: #1A1A1A;
  --bg: #FFFFFF;
  --bg-warm: #F1F1F1;
  --bg-dark: #333333;
  --bg-dark-card: #1C1C1C;
  --text: #333333;
  --text-muted: #6B6560;
  --text-light: #9B9590;
  --border: #E0E0E0;
  --border-light: #EBEBEB;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.06);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--primary); color: var(--white);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
  transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 2px 8px rgba(232,150,42,0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,150,42,0.35);
}
.btn-large { padding: 16px 36px; font-size: 16px; border-radius: var(--radius); }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(248,248,248,0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: var(--text); text-decoration: none; letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }
.navbar .logo img { display: block; height: 32px; width: auto; }

.nav-links { display: none; list-style: none; gap: 36px; align-items: center; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > button {
  font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none;
  transition: color 0.2s ease; position: relative; background: none; border: none;
  cursor: pointer; font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: 4px; padding: 0;
}
.nav-links > li > a.active { color: var(--primary); }
.nav-links > li > a::after, .nav-links > li > button::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--primary); border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.22,1,0.36,1);
}
.nav-links > li > a.active::after { width: 100%; }
.nav-links > li > a:hover, .nav-links > li > button:hover { color: var(--text); }
.nav-links > li > a:hover::after, .nav-links > li > button:hover::after { width: 100%; }
.nav-links > li > button .chevron { transition: transform 0.25s ease; width: 14px; height: 14px; }
.nav-links > li.dropdown-open > button .chevron { transform: rotate(180deg); }
.nav-links > li.dropdown-open > button { color: var(--text); }

.nav-cta { display: none; }
@media (min-width: 768px) { .nav-cta { display: inline-flex; } }

/* Mobile toggle */
.mobile-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; border-radius: var(--radius-sm); transition: background 0.2s ease;
}
.mobile-toggle:hover { background: var(--bg-warm); }
@media (min-width: 768px) { .mobile-toggle { display: none; } }

/* Mobile menu — mirrors desktop nav */
.mobile-menu { display: none; padding: 8px 0 20px; }
.mobile-menu.open { display: block; }
.mobile-menu-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu-list > li > a,
.mobile-menu-list > li > details > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-size: 15px; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  border-radius: var(--radius-sm); transition: all 0.2s ease;
  cursor: pointer; list-style: none;
}
.mobile-menu-list > li > details > summary::-webkit-details-marker { display: none; }
.mobile-menu-list > li > a:hover,
.mobile-menu-list > li > details > summary:hover { color: var(--text); background: var(--bg-warm); }
.mobile-menu-list > li > a.active { color: var(--primary); }
.mobile-menu-list > li > details > summary .chevron { width: 14px; height: 14px; transition: transform 0.25s ease; }
.mobile-menu-list > li > details[open] > summary .chevron { transform: rotate(180deg); }
.mobile-submenu {
  list-style: none; padding: 4px 0 8px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.mobile-submenu a {
  display: block; padding: 10px 16px; font-size: 14px;
  color: var(--text-muted); text-decoration: none;
  border-radius: var(--radius-sm); transition: all 0.2s ease;
}
.mobile-submenu a:hover { color: var(--text); background: var(--bg-warm); }
.mobile-menu-cta { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 0; }
.mobile-menu-cta .btn-primary,
.mobile-menu-cta .btn-secondary {
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  width: 100%;
  box-sizing: border-box;
}

/* Dropdown overlay */
.dropdown-overlay {
  display: none; position: fixed; inset: 0; z-index: 98;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.25s ease;
}
.dropdown-overlay.active { display: block; opacity: 1; }

/* Dropdown panel base */
.dropdown-panel {
  position: absolute; top: calc(100% + 18px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 24px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22,1,0.36,1), visibility 0.25s;
  z-index: 101;
}
.dropdown-panel::before {
  content: ''; position: absolute; top: -8px; left: 50%;
  width: 16px; height: 16px; background: var(--white);
  border: 1px solid var(--border); border-bottom: none; border-right: none;
  transform: translateX(-50%) rotate(45deg); z-index: 1;
}
.nav-links > li.dropdown-open .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light);
}
.dropdown-header h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text);
}
.dropdown-close {
  width: 28px; height: 28px; border: none; background: var(--bg-warm);
  border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.2s ease;
}
.dropdown-close:hover { background: var(--border-light); color: var(--text); }

.dropdown-grid { display: grid; gap: 8px; }
.dropdown-grid.cols-2 { grid-template-columns: 1fr 1fr; width: 440px; }
.dropdown-grid.cols-4 { grid-template-columns: repeat(4, 1fr); width: 820px; gap: 12px; }
.dropdown-grid.cols-2x3 { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); width: 480px; }

.dropdown-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px;
  border-radius: var(--radius-sm); text-decoration: none;
  transition: all 0.2s ease; border: 1px solid transparent;
}
.dropdown-card:hover { background: var(--bg-warm); border-color: var(--border-light); }
.dropdown-card-icon {
  width: 36px; height: 36px; background: var(--primary-50); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.2s ease;
}
.dropdown-card:hover .dropdown-card-icon { background: var(--primary-100); }
.dropdown-card h4 { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.dropdown-card p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.dropdown-card .card-link {
  font-size: 12px; font-weight: 600; color: var(--primary);
  margin-top: 4px; display: inline-flex; align-items: center; gap: 4px;
}

.dropdown-footer {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border-light); text-align: center;
}
.dropdown-footer a {
  font-size: 13px; font-weight: 600; color: var(--text-muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s ease;
}
.dropdown-footer a:hover { color: var(--primary); }

.container {
	max-width: 96rem;
	margin: 0 auto;
	padding: 0 24px;
}
@media (min-width: 768px) {
	.container {
		padding: 0 40px;
	}
}
@media (min-width: 1024px) {
	.container {
		padding: 0 48px;
	}
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 32px;
	background: var(--white);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s ease;
	cursor: pointer;
	font-family: var(--font-body);
}
.btn-secondary:hover {
	border-color: var(--primary);
	color: var(--primary);
}
.btn-secondary svg {
	color: var(--primary);
}

/* CTA section */
.cta-section {
	background: var(--bg);
	padding: 100px 0;
	position: relative;
	overflow: hidden;
}
@media (min-width: 768px) {
	.cta-section {
		padding: 120px 0;
	}
}
.cta-bg-accent {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 0%, var(--primary-50) 100%);
	opacity: 0.5;
}
.cta-content {
	position: relative;
	text-align: center;
	max-width: 620px;
	margin: 0 auto;
}
.cta-content h2 {
	font-size: clamp(32px, 4.5vw, 52px);
	font-weight: 600;
	color: var(--text);
	line-height: 1.1;
	letter-spacing: -1.5px;
}
.cta-content h2 .highlight {
	color: var(--primary);
}
.cta-content p {
	font-size: 18px;
	color: var(--text-muted);
	line-height: 1.65;
	margin-top: 16px;
}
.cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin-top: 36px;
}

/* Footer */
.footer {
	background: #333333;
	border-top: 1px solid #444;
	padding: 56px 0 40px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}
@media (min-width: 640px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (min-width: 1024px) {
	.footer-grid {
		grid-template-columns: 0.6fr 0.6fr 1.5fr 1fr;
		gap: 40px;
	}
}
.footer-brand .logo img {
	height: 36px;
	width: auto;
	display: block;
}
.footer-col h5 {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 600;
	color: var(--primary);
	margin-bottom: 18px;
}
.footer-col ul {
	list-style: none;
}
.footer-col ul.cols-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
}
.footer-col li {
	margin-bottom: 12px;
	font-size: 15px;
	line-height: 1.5;
	color: #aaa7a7;
}
.footer-col a {
	font-size: 15px;
	color: #aaa7a7;
	text-decoration: none;
	transition: color 0.2s ease;
}
.footer-col a:hover {
	color: var(--white);
}
.footer-bottom {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid #444;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.footer-bottom p {
	font-size: 13px;
	color: #aaa7a7;
}
.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	color: #aaa7a7;
	transition: all 0.2s ease;
}
.footer-social a:hover {
	color: var(--white);
	background: #1c1c1c;
}

/* Contact form */
.contact-section {
	padding: 140px 0 100px;
	background: var(--bg);
}
@media (min-width: 768px) {
	.contact-section {
		padding: 160px 0 120px;
	}
}
.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
}
@media (min-width: 1024px) {
	.contact-grid {
		grid-template-columns: 1fr 1.2fr;
		gap: 80px;
	}
}

.contact-info h1 {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -1px;
	color: var(--text);
	margin-bottom: 16px;
}
.contact-info h1 .highlight {
	color: var(--primary);
}
.contact-info p {
	font-size: 17px;
	color: var(--text-muted);
	line-height: 1.65;
	margin-bottom: 32px;
}

.contact-meta {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 32px;
}
.contact-meta-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}
.contact-meta-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	flex-shrink: 0;
	background: var(--primary-50);
	border: 1px solid var(--primary-200);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary);
}
.contact-meta-text strong {
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	display: block;
	margin-bottom: 2px;
}
.contact-meta-text a,
.contact-meta-text span {
	font-size: 14px;
	color: var(--text-muted);
	text-decoration: none;
	line-height: 1.5;
}
.contact-meta-text a:hover {
	color: var(--primary);
}

.contact-form-wrap {
	background: var(--white);
	border-radius: var(--radius-lg);
	padding: 32px;
	box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
	.contact-form-wrap {
		padding: 40px;
	}
}

.contact-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}
.contact-form .field-full {
	grid-column: 1 / -1;
}
@media (max-width: 640px) {
	.contact-form {
		grid-template-columns: 1fr;
	}
	.contact-form .field-full {
		grid-column: auto;
	}
}

.field label {
	display: block;
	font-family: var(--font-display);
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 6px;
}
.field label .req {
	color: var(--primary);
	margin-left: 2px;
}
.field input,
.field textarea,
.field select {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	font-family: var(--font-body);
	background: var(--bg-warm);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--text);
	transition:
		border-color 0.2s ease,
		background 0.2s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
	outline: none;
	border-color: var(--primary);
	background: var(--white);
}
.field textarea {
	resize: vertical;
	min-height: 110px;
}

.contact-submit {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 8px;
}
.contact-submit .form-note {
	font-size: 12px;
	color: var(--text-light);
}
.form-success {
	display: none;
	grid-column: 1 / -1;
	padding: 14px 16px;
	background: #e8f8e8;
	color: #2a8c3f;
	border: 1px solid #bfe7c5;
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 500;
}
.form-success.visible {
	display: block;
}

/* Dropdown full width override */
.navbar .has-dropdown {
	position: static;
}
.navbar .dropdown-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	width: 100%;
	max-width: 100%;
	transform: translateY(8px);
	border-radius: 0;
	border-left: none;
	border-right: none;
	padding: 0;
	background: var(--white);
}
.navbar .dropdown-panel::before {
	display: none;
}
.navbar .nav-links > li.dropdown-open .dropdown-panel {
	transform: translateY(0);
}
.dropdown-inner {
	max-width: 96rem;
	margin: 0 auto;
	padding: 24px;
}
@media (min-width: 768px) {
	.dropdown-inner {
		padding: 24px 40px;
	}
}
@media (min-width: 1024px) {
	.dropdown-inner {
		padding: 24px 48px;
	}
}

.navbar .dropdown-grid.cols-4,
.navbar .dropdown-grid.cols-2,
.navbar .dropdown-grid.cols-2x3 {
	width: 100%;
}
