/* Fonts */
@font-face { font-family: Diavlo; src: url('/fonts/diavlo.otf'); }

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Verdana, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; line-height: 1.6; color: #333; background: #eaeae9 url("/images/bg.pattern.gif"); }
h1, h2 { font-family: Diavlo, sans-serif; }
a { color: inherit; text-decoration: underline; }
img { max-width: 100%; height: auto; }
a.btn { text-decoration: none; }
address { font-style: normal; }
ul, ol {list-style-position: outside; margin-left: 25px; margin-bottom: 15px; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { width: 80%; margin: 0 auto 1.5em auto; overflow: hidden; }
.header-inner { overflow: hidden; }
.logo { float: left; background: transparent url("/images/aurealis.svg") no-repeat; background-size: 100% auto; display: block; text-indent: -2500px; z-index: 26; width: 320px; }
.logo img { width: 100%; }
.main-nav { float: right; clear: right; }
.main-nav ol { float: right; margin-right: 85px; list-style: none; }
.main-nav a { text-decoration: none; color: #696d69; font-size: 1.1em; }
.main-nav a:hover { text-decoration: none; color: #e94560; }

@media screen and (max-width: 400px) {
	.site-header { width: 100%; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; }
	.logo { width: 180px; flex-shrink: 0; }
	.main-nav { clear: none; margin: 0; }
	.main-nav ol { margin-right: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 12px; }
	.main-nav li { float: none; margin: 0; }
	.main-nav a { text-decoration: underline; font-size: 0.85em; }
}
@media screen and (min-width: 401px) and (max-width: 579px) {
	.site-header { width: 90%; background: none; }
	.header-inner { display: flex; align-items: center; }
	.logo { width: 180px; flex-shrink: 0; float: none; }
	.main-nav { float: none; clear: none; margin: 0; margin-left: auto; margin-top: 23px; }
	.main-nav ol { float: none; margin-right: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
	.main-nav li { margin: 0; }
	.main-nav a { font-size: 0.9em; }
}
@media screen and (min-width: 580px) and (max-width: 767px) {
	.site-header { width: 90%; background: transparent url("/images/line.svg") no-repeat center 132px; background-size: 100% auto; }
	.logo { width: 300px; }
	.main-nav { margin-top: 23px; }
	.main-nav li { display: block; clear: both; margin: 6px; text-align: right; }
}
@media screen and (min-width: 768px) and (max-width: 959px) {
	.site-header { background: transparent url("/images/line.svg") no-repeat center 139px; background-size: 100% auto; }
	.main-nav { margin-top: 40px; }
	.main-nav li { display: block; clear: both; margin: 6px; text-align: right; }
}
@media screen and (min-width: 960px) and (max-width: 1399px) {
	.site-header { background: transparent url("/images/line.svg") no-repeat center 139px; background-size: 100% auto; }
	.main-nav { width: 60%; margin-top: 113px; }
	.main-nav li { float: left; margin: 0 15px; }
}
@media screen and (min-width: 1400px) {
	.site-header { background: transparent url("/images/line.svg") no-repeat center 151px; background-size: 100% auto; }
	.logo { width: 350px; }
	.main-nav { width: 60%; margin-top: 128px; }
	.main-nav li { float: left; margin: 0 15px; }
}
@media screen and (max-width: 1200px) {
	.site-header { width: 90%; }
}

/* Hero Section */
.hero { background: transparent url("/images/stars.jpg") center top no-repeat fixed; background-size: cover; color: #fff; padding: 80px 0; text-align: center; }
.hero h1 { font-size: 2.5rem; margin-bottom: 20px; }
.hero .tagline { font-size: 1.25rem; margin-bottom: 30px; opacity: 0.9; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: 15px 30px; border: none; border-radius: 5px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: transform 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #e94560; color: #fff; }
.btn-secondary { background: transparent; border: 2px solid #fff; color: #fff; }

/* Sections */
section { padding: 60px 0; }
section h2 { font-size: 2rem; margin-bottom: 40px; text-align: center; }

/* USP Section */
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; }
.usp-item { text-align: center; padding: 25px 30px; border-right: 1px solid #ddd; }
.usp-item:last-child { border-right: none; }
.usp-item h3 { margin: 0 0 8px; color: #1a1a2e; }
.usp-item p { font-size: 0.95rem; color: #555; }
@media (max-width: 580px) {
	.usp-item { border-right: none; border-bottom: 1px solid #ddd; }
	.usp-item:last-child { border-bottom: none; }
}

/* Services Section */
.services { }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.service-card h3 { margin-bottom: 15px; }
.section-cta { text-align: center; margin-top: 30px; }

/* CTA Section */
.cta { /*background: #1a1a2e;*/ background: transparent url("/images/aurora-borealis.jpg") center bottom no-repeat fixed; background-size: cover; color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { margin-bottom: 30px; font-size: 1.1rem; }

/* Projects Section */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.project-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.project-card:hover { border: 1px solid #e94560; }
.project-card-content { padding: 20px; }
.project-card h3 { margin-bottom: 10px; }

/* Footer */
.site-footer { /*background: #1a1a2e; color: #fff;*/ padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { font-family: Diavlo, sans-serif; margin-bottom: 15px; }
.footer-section ul li { margin-bottom: 8px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.7; }

.footer-section p.narrow { padding-right: 35%; }
.footer-bottom p { margin-bottom: 5px; }
.footer-bottom a:hover { color: #e94560; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 1rem; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #1a1a2e; }
.form-confirmation { text-align: center; max-width: 600px; margin: 0 auto; }
.form-confirmation h2 { margin-bottom: 15px; }
.form-confirmation p { margin-bottom: 30px; }
.form-error { background: #fee; border: 1px solid #e94560; color: #c00; padding: 15px; border-radius: 5px; margin-bottom: 20px; max-width: 600px; margin-left: auto; margin-right: auto; }
form p { margin-top: 5px; color: #666; font-size: 0.85rem; }

/* 404 Page */
.error-page { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; text-align: center; padding: 100px 0; min-height: 50vh; display: flex; align-items: center; }
.error-page .container { width: 100%; }
.error-page h1 { font-size: 8rem; margin-bottom: 20px; opacity: 0.8; }
.error-page p { font-size: 1.25rem; margin-bottom: 30px; }

/* Landing Page */
.landing-hero { padding: 60px 0; }
.landing-grid { display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: start; }
.landing-content h1 { font-size: 2.2rem; margin-bottom: 20px; line-height: 1.3; }
.landing-intro { font-size: 1.1rem; margin-bottom: 30px; color: #555; }
.usp-list { list-style: none; }
.usp-list li { padding: 15px 0; border-bottom: 1px solid #ddd; }
.usp-list li:last-child { border-bottom: none; }
.usp-list strong { display: block; font-size: 1.1rem; color: #1a1a2e; margin-bottom: 5px; }
.usp-list span { color: #666; font-size: 0.95rem; }
.landing-form-wrapper { position: sticky; top: 20px; }
.landing-form-box { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 5px 30px rgba(0,0,0,0.15); }
.landing-form-box h2 { font-size: 1.5rem; margin-bottom: 10px; text-align: left; }
.landing-form-box > p { color: #666; margin-bottom: 20px; font-size: 0.95rem; }
.landing-form .form-group { margin-bottom: 15px; }
.landing-form .form-group label { font-size: 0.9rem; }
.landing-form .form-group input, .landing-form .form-group textarea { padding: 10px 12px; }
.btn-full { width: 100%; text-align: center; }

/* Page Hero (generic) */
.page-hero { background: transparent url("/images/stars.jpg") center top no-repeat fixed; background-size: cover; color: #fff; padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
.page-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Projects Page */
.projects-section { }

/* Project overview cards */
.project-card { display: block; background: #fff; border-radius: 10px; overflow: visible; box-shadow: 0 2px 10px rgba(0,0,0,0.1); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.project-card h2 { font-size: 1.3rem; margin-bottom: 10px; }
.project-card p { color: #555; margin-bottom: 15px; }
.project-link { color: #e94560; font-weight: bold; }
.project-card-img { width: 100%; height: 180px; object-fit: cover; display: block; border-radius: 10px 10px 0 0; }

/* Project labels */
.project-card { position: relative; }
.project-label { position: absolute; top: -5px; right: 15px; padding: 2px 10px; border-radius: 3px; font-size: 0.6rem; font-weight: bold; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; z-index: 5; }
.label-ai { background: #e94560; }
.label-no-ai { background: #51BE18; }

/* Project detail page */
.project-detail-page { }
.project-detail-page .container { max-width: 800px; }
.project-detail-page .project-content { background: #fff; padding: 40px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.project-detail-page .project-content:first-of-type { padding-top: 0; overflow: hidden; }
.project-screenshot { width: calc(100% + 80px); max-width: none; max-height: 350px; object-fit: cover; object-position: top; margin-left: -40px; display: block; margin-bottom: 30px; border-bottom: 1px solid #ddd; }
.project-detail-page .project-content:last-of-type { padding-bottom: 10px; }
.project-detail-page .project-content h2 { font-size: 1.3rem; color: #1a1a2e; margin-top: 30px; margin-bottom: 10px; }
.project-detail-page .project-content p { color: #555; margin-bottom: 15px; line-height: 1.7; }
.project-detail-page .project-cta { background: #fff; padding: 25px 40px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); margin-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }

/* Accordion */
.accordion-item { border-bottom: 1px solid #eee; padding: 15px 0; }
.accordion-item:last-child { border-bottom: none; }
.accordion-title { cursor: pointer; position: relative; padding-right: 30px; user-select: none; margin: 0; }
.accordion-title::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-family: sans-serif; color: #e94560; transition: transform 0.2s; }
.accordion-item.open .accordion-title::after { content: '\2212'; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-item.open .accordion-content { max-height: 1000px; }

/* Breadcrumb */
.breadcrumb { margin-top: 45px !important; opacity: 0.8; font-size: 0.95rem; }
.breadcrumb a { text-decoration: underline; }

/* Cookie Consent */
.cookie-consent { position: fixed; bottom: 20px; left: 20px; background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); padding: 20px; max-width: 320px; z-index: 9999; font-size: 0.9rem; display: none; }
.cookie-consent.visible { display: block; }
.cookie-consent p { color: #555; margin-bottom: 15px; line-height: 1.5; }
.cookie-toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: #ccc; border-radius: 24px; transition: background 0.3s; }
.toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: transform 0.3s; }
.toggle-switch input:checked + .toggle-slider { background: #e94560; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
#cookie-toggle-label { color: #555; font-size: 0.85rem; }
.cookie-consent-btn { padding: 8px 20px; font-size: 0.85rem; width: 100%; }

/* Assessment */
.assessment { padding: 60px 0; }
.assessment-inner { max-width: 700px; margin: 0 auto; background: #fff9e9; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 40px; text-align: center; position: relative; }
.assessment h2 { font-size: 2rem; margin-bottom: 15px; }
.assessment-step { display: none; }
.assessment-step.active { display: block; animation: assessmentFadeIn 0.4s ease; }
@keyframes assessmentFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.assessment-progress { height: 4px; background: #f0e4c8; border-radius: 2px; margin-bottom: 30px; overflow: hidden; display: none; }
.assessment-progress.visible { display: block; }
.assessment-progress-fill { height: 100%; background: #d4a017; border-radius: 2px; transition: width 0.4s ease; width: 0; }
.assessment-step-label { font-size: 0.9rem; color: #888; margin-bottom: 10px; }
.assessment-step h3 { font-size: 1.4rem; margin-bottom: 25px; }
.assessment-step p { font-size: 1.1rem; color: #555; margin-bottom: 25px; }
.assessment-options { display: grid; gap: 12px; text-align: left; }
.assessment-option { display: block; width: 100%; padding: 18px 20px; background: #fff9e9; border: 2px solid #e8d9b4; border-radius: 8px; font-size: 1rem; cursor: pointer; text-align: left; transition: border-color 0.2s, background 0.2s; font-family: inherit; line-height: 1.4; }
.assessment-option:hover { border-color: #d4a017; background: #fff3d0; }
.assessment-option.selected { border-color: #d4a017; background: #fff3d0; font-weight: bold; }
.assessment-back { display: inline-block; margin-top: 25px; background: none; border: none; color: #888; cursor: pointer; font-size: 0.9rem; font-family: inherit; padding: 5px 10px; }
.assessment-back:hover { color: #333; }
.assessment-result-text { text-align: left; line-height: 1.8; color: #444; margin-bottom: 35px; font-size: 1rem; }
.assessment-result-text p { margin-bottom: 10px; }
.assessment-contact-form { background: #fff3d0; padding: 30px; border-radius: 10px; text-align: left; margin-bottom: 20px; }
.assessment-contact-form h3 { font-size: 1.3rem; margin-bottom: 5px; text-align: left; }
.assessment-contact-form > p { color: #666; margin-bottom: 20px; font-size: 0.95rem; }
.assessment-confirmation { background: #fff3d0; padding: 30px; border-radius: 10px; text-align: center; margin-bottom: 20px; }
.assessment-confirmation h3 { margin-bottom: 10px; }
.assessment-confirmation p { color: #555; }
@media (max-width: 600px) {
	.assessment-inner { padding: 25px 20px; }
	.assessment h2 { font-size: 1.5rem; }
	.assessment-step h3 { font-size: 1.2rem; }
	.assessment-option { padding: 14px 16px; font-size: 0.95rem; }
}

/* Sticky CTA Bar */
.sticky-cta-bar { position: fixed; bottom: 0; left: 0; right: 0; height: 45px; background: #fff9e9; color: #555; display: flex; align-items: center; justify-content: center; z-index: 9990; font-size: 0.9rem; transition: opacity 0.3s ease, transform 0.3s ease; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); }
.sticky-cta-bar.hidden { opacity: 0; transform: translateY(100%); pointer-events: none; }
.sticky-cta-bar a { color: #555; font-weight: bold; text-decoration: none; margin-left: 5px; }
.sticky-cta-bar a:hover { text-decoration: underline; }
.sticky-cta-bar .cta-short { display: none; }
.sticky-cta-bar ~ #cookie-consent { bottom: 65px; transition: bottom 0.3s ease; }
.sticky-cta-bar.hidden ~ #cookie-consent { bottom: 20px; }
@media (max-width: 480px) {
	.sticky-cta-bar .cta-full { display: none; }
	.sticky-cta-bar .cta-short { display: inline; }
}

/* Responsive */
@media (max-width: 900px) {
	.landing-grid { grid-template-columns: 1fr; gap: 40px; }
	.landing-form-wrapper { position: static; }
}

@media (max-width: 768px) {
	.hero h1 { font-size: 1.8rem; }
	.landing-content h1 { font-size: 1.8rem; }
}