/* 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; }
	.logo { width: 100%; }
	.main-nav { margin: 23px 0; }
	.main-nav li { float: left; margin: 0 15px; }
	.main-nav a { text-decoration: underline; }
}
@media screen and (min-width: 401px) and (max-width: 579px) {
	.site-header { width: 90%; background: transparent url("/images/line.svg") no-repeat center 101px; background-size: 100% auto; }
	.logo { width: 230px; }
	.main-nav { margin-top: 23px; }
	.main-nav li { display: block; clear: both; margin: 6px; text-align: right; }
}
@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; }

/* 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: 30px; }
.usp-item { text-align: center; padding: 30px; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.usp-item h3 { margin: 15px 0 10px; }

/* Services Section */
.services { background: #f8f9fa; }
.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; }

.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; }

/* 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 { background: #f8f9fa; 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 { background: #f8f9fa; }

/* 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 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 { background: #f8f9fa; }
.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; }
.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%; }

/* 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; }
}