:root {
 --primary-color: #4A6572;
 --primary-dark: #344955;
 --secondary-color: #A7C0CD;
 --text-dark: #232D3F;
 --text-light: #5A6D7C;
 --bg-light: #F0F4F8;
 --bg-white: #FFFFFF;
 --border-color: #DDE2E7;
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
 --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
 --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
 --transition: all 0.3s ease;
}

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

html {
 scroll-behavior: smooth;
 font-size: 16px;
}

body {
 font-family: var(--font-main);
 line-height: 1.6;
 color: var(--text-light);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
 font-weight: 700;
 line-height: 1.2;
 color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

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

a:hover {
 color: var(--primary-dark);
}

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

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

.section {
 padding: 80px 0;
}

.bg-light {
 background-color: var(--bg-light);
}

.text-center { text-align: center; }

/* Header & Nav */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background: rgba(255, 255, 255, 0.85);
 backdrop-filter: blur(10px);
 border-bottom: 1px solid transparent;
 transition: var(--transition);
}

.header.scrolled {
 background: rgba(255, 255, 255, 0.98);
 border-bottom-color: var(--border-color);
 box-shadow: var(--shadow-sm);
}

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

.nav {
 height: 70px;
 display: flex;
 align-items: center;
 justify-content: space-between;
}

.nav-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--text-dark);
 transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-logo:hover {
 transform: scale(1.05);
}

.nav-links {
 display: flex;
 gap: 32px;
 list-style: none;
}

.nav-links a {
 font-weight: 500;
 color: var(--text-dark);
 padding: 8px 4px;
 position: relative;
 overflow: hidden;
}

.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: -100%;
 width: 100%;
 height: 2px;
 background: var(--primary-color);
 transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
 left: 0;
}

/* Page Hero */
.page-hero {
 padding: 140px 0 80px;
 background-color: var(--bg-light);
 overflow: hidden;
}

.hero-inner {
 display: grid;
 grid-template-columns: 1fr 1fr;
 align-items: center;
 gap: 48px;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 24px;
}

.hero-copy .badge {
 display: inline-block;
 background: var(--secondary-color);
 color: var(--text-dark);
 padding: 6px 16px;
 border-radius: 20px;
 font-size: 0.9rem;
 font-weight: 600;
 margin-bottom: 20px;
}
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy p { font-size: 1.1rem; max-width: 550px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; }

.hero-visual {
 position: relative;
}

.hero-visual img {
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
 width: 100%;
 height: auto;
}

/* Interactive hero elements */
.hero-interactive-element {
 position: absolute;
 border-radius: 50%;
 background: rgba(167, 192, 205, 0.5);
 transition: transform 0.1s ease-out;
}
#hero-orb-1 {
 width: 80px;
 height: 80px;
 top: 10%;
 left: -20px;
}
#hero-orb-2 {
 width: 120px;
 height: 120px;
 bottom: 5%;
 right: -40px;
}

/* Buttons */
.btn {
 display: inline-flex;
 padding: 12px 28px;
 border-radius: var(--radius-md);
 font-weight: 600;
 font-size: 1rem;
 border: 2px solid transparent;
 cursor: pointer;
 transition: var(--transition);
 text-align: center;
}

.btn-primary {
 background-color: var(--primary-color);
 color: var(--bg-white);
}
.btn-primary:hover {
 background-color: var(--primary-dark);
 transform: translateY(-2px);
 box-shadow: var(--shadow-md);
}

.btn-secondary {
 background-color: transparent;
 color: var(--primary-color);
 border-color: var(--primary-color);
}
.btn-secondary:hover {
 background-color: var(--primary-color);
 color: var(--bg-white);
}

.btn-full {
 width: 100%;
 justify-content: center;
}

/* Section Header */
.section-header {
 text-align: center;
 max-width: 700px;
 margin: 0 auto 50px;
}
.section-label {
 display: inline-block;
 background: var(--secondary-color);
 color: var(--text-dark);
 padding: 6px 16px;
 border-radius: 20px;
 font-size: 0.9rem;
 font-weight: 600;
 margin-bottom: 16px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; }

/* Interactive Cards */
.interactive-cards-grid {
 display: flex;
 flex-direction: column;
 gap: 16px;
 max-width: 800px;
 margin: 0 auto;
}
.interactive-card {
 background: var(--bg-white);
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 cursor: pointer;
 overflow: hidden;
 transition: var(--transition);
}
.interactive-card .card-header {
 padding: 20px 24px;
 display: flex;
 justify-content: space-between;
 align-items: center;
}
.interactive-card h3 {
 margin: 0;
 font-size: 1.1rem;
}
.interactive-card .card-header svg {
 transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
 color: var(--primary-color);
}
.interactive-card.active .card-header svg {
 transform: rotate(180deg);
}
.card-content {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1), padding 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.card-content p {
 padding: 0 24px 20px;
 margin: 0;
}
.interactive-card.active {
 box-shadow: var(--shadow-md);
 border-color: var(--primary-color);
}
.interactive-card.active .card-content {
 max-height: 200px;
}

/* Interactive Timeline */
.interactive-timeline {
 position: relative;
 max-width: 800px;
 margin: 0 auto;
}
.interactive-timeline::before {
 content: '';
 position: absolute;
 left: 24px;
 top: 0;
 bottom: 0;
 width: 4px;
 background: var(--border-color);
 border-radius: 2px;
}
.timeline-item {
 position: relative;
 display: flex;
 gap: 30px;
 margin-bottom: 40px;
 padding-left: 60px;
}
.timeline-step {
 position: absolute;
 left: 0;
 top: 0;
 width: 50px;
 height: 50px;
 border-radius: 50%;
 background: var(--bg-white);
 border: 4px solid var(--border-color);
 color: var(--primary-color);
 font-weight: 700;
 font-size: 1.2rem;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: var(--transition);
}
.timeline-item:hover .timeline-step {
 background: var(--primary-color);
 color: var(--bg-white);
 border-color: var(--primary-dark);
 transform: scale(1.1);
}
.timeline-content h3 { margin-bottom: 8px; }

/* Portfolio Filter */
.portfolio-filter {
 display: flex;
 justify-content: center;
 gap: 12px;
 margin-bottom: 40px;
}
.filter-btn {
 padding: 10px 20px;
 border: 2px solid var(--border-color);
 background: transparent;
 color: var(--text-light);
 border-radius: var(--radius-md);
 cursor: pointer;
 font-weight: 500;
 transition: var(--transition);
}
.filter-btn:hover {
 border-color: var(--secondary-color);
 color: var(--text-dark);
}
.filter-btn.active {
 background: var(--primary-color);
 color: var(--bg-white);
 border-color: var(--primary-color);
}

.portfolio-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 24px;
}
.portfolio-item {
 position: relative;
 border-radius: var(--radius-lg);
 overflow: hidden;
 cursor: pointer;
 transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.portfolio-item.hide {
 opacity: 0;
 transform: scale(0.9);
 pointer-events: none;
 position: absolute;
}

.portfolio-item img {
 width: 100%;
 height: 250px;
 object-fit: cover;
 transition: transform 0.4s ease;
}
.portfolio-item:hover img {
 transform: scale(1.05);
}
.portfolio-info {
 position: absolute;
 bottom: 0;
 left: 0;
 right: 0;
 padding: 20px;
 background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
 color: white;
 transform: translateY(30%);
 opacity: 0;
 transition: var(--transition);
}
.portfolio-item:hover .portfolio-info {
 transform: translateY(0);
 opacity: 1;
}
.portfolio-info h3 { color: white; margin-bottom: 4px; font-size: 1.2rem; }
.portfolio-info p { color: rgba(255,255,255,0.8); margin: 0; }

/* Testimonial Carousel */
.testimonial-carousel {
 max-width: 800px;
 margin: 0 auto;
 overflow: hidden;
 position: relative;
 -webkit-user-select: none; user-select: none;
}
.carousel-inner {
 display: flex;
 transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.testimonial-slide {
 flex: 0 0 100%;
 padding: 0 10px;
 text-align: center;
}
.testimonial-text {
 font-size: 1.2rem;
 font-style: italic;
 margin-bottom: 24px;
 color: var(--text-dark);
}
.testimonial-author {
 display: flex;
 justify-content: center;
 align-items: center;
 gap: 16px;
}
.testimonial-author img {
 width: 60px;
 height: 60px;
 border-radius: 50%;
 object-fit: cover;
}
.author-info h4 { margin-bottom: 4px; }
.author-info span { color: var(--text-light); }
.carousel-dots {
 display: flex;
 justify-content: center;
 gap: 10px;
 margin-top: 30px;
}
.dot {
 width: 12px;
 height: 12px;
 border-radius: 50%;
 background: var(--border-color);
 border: none;
 cursor: pointer;
 transition: var(--transition);
}
.dot.active {
 background: var(--primary-color);
 transform: scale(1.2);
}

/* Interactive Form */
.form-container {
 max-width: 600px;
 margin: 0 auto;
 background: var(--bg-white);
 padding: 40px;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 overflow: hidden;
}
.interactive-form {
 position: relative;
 min-height: 150px;
}
.form-step {
 position: absolute;
 width: 100%;
 opacity: 0;
 transition: opacity 0.5s ease;
 pointer-events: none;
}
.form-step.active {
 opacity: 1;
 pointer-events: auto;
}
.form-step label {
 display: block;
 font-weight: 500;
 margin-bottom: 12px;
 font-size: 1.1rem;
 color: var(--text-dark);
}
.interactive-form input,
.interactive-form textarea {
 width: 100%;
 padding: 14px 18px;
 font-size: 1rem;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 background: var(--bg-light);
 transition: var(--transition);
 margin-bottom: 20px;
}
.interactive-form input:focus,
.interactive-form textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(74, 101, 114, 0.2);
}
.interactive-form textarea {
 resize: vertical;
 min-height: 120px;
}
.next-step-btn, .submit-btn {
 display: inline-block;
 padding: 12px 28px;
 border-radius: var(--radius-md);
 border: none;
 background: var(--primary-color);
 color: white;
 cursor: pointer;
 font-weight: 600;
}

/* Page Specific Styles */
.page-header-section {
 background-color: var(--bg-light);
 padding: 120px 0 60px;
 text-align: center;
}
.page-header-section h1 { margin-bottom: 16px; }
.media-object { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.media-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.media-copy h3 { margin-bottom: 16px; }

/* Grid & Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transition: var(--transition);}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card .card-img-top {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-body { padding: 24px; }
.card-title { margin-bottom: 12px; }
.card-button {
 display: inline-block;
 margin-top: 16px;
 padding: 10px 20px;
 border: 2px solid var(--primary-color);
 color: var(--primary-color);
 font-weight: 600;
 border-radius: var(--radius-md);
}
.card-button:hover { background: var(--primary-color); color: white; }

/* Team Section */
.team-section { background-color: var(--bg-white); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.team-member { text-align: center; }
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 4px solid var(--bg-white); box-shadow: var(--shadow-md); }
.team-member h3 { margin-bottom: 4px; }
.team-role { color: var(--primary-color); font-weight: 500; font-size: 0.9rem;}

/* Contact Page */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; }
.contact-form-wrapper h3, .contact-info-wrapper h3 { margin-bottom: 8px; }
.contact-form-wrapper p, .contact-info-wrapper p { margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--text-dark); }
.form-control { width: 100%; padding: 14px 18px; font-size: 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(74, 101, 114, 0.2); }
textarea.form-control { min-height: 140px; }
.contact-details { list-style: none; }
.contact-details li { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-details svg { color: var(--primary-color); width: 24px; height: 24px; flex-shrink: 0; margin-top: 4px; }
.contact-details strong { display: block; margin-bottom: 2px; color: var(--text-dark); }
.map-section {
 margin-top: 80px;
 height: 450px;
}
.map-section iframe {
 filter: grayscale(100%) invert(90%);
}

/* Legal Pages */
.legal-page .container { max-width: 800px; padding-top: 120px; padding-bottom: 80px; }
.legal-page h1 { margin-bottom: 16px; }
.legal-page p { margin-bottom: 16px; }
.legal-page article { margin-bottom: 40px; }
.legal-page h2 { margin-bottom: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.legal-page ul { margin-left: 20px; margin-bottom: 16px; }
.cookie-table-wrapper { overflow-x: auto; }
.cookie-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.cookie-table th, .cookie-table td { border: 1px solid var(--border-color); padding: 12px; text-align: left; }
.cookie-table th { background-color: var(--bg-light); font-weight: 600; }

/* Footer */
.footer {
 background-color: var(--text-dark);
 color: #a7c0cd;
 padding: 60px 0 30px;
 margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 16px; }
.footer h4 { color: white; font-size: 1rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;}
.footer-links, .footer-contact { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a, .footer-contact a { color: #a7c0cd; }
.footer-links a:hover, .footer-contact a:hover { color: white; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { color: white; background: rgba(255,255,255,0.1); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-social a:hover { background: var(--primary-color); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.footer-legal { list-style: none; display: flex; gap: 20px; }
.footer-legal a { color: #a7c0cd; }

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 20px;
 left: 20px;
 right: 20px;
 background-color: var(--text-dark);
 color: var(--bg-white);
 padding: 20px;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-lg);
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
 flex-wrap: wrap;
}
#cookie-banner p { margin: 0; }
#cookie-banner a { color: var(--secondary-color); text-decoration: underline; }
#cookie-banner div { display: flex; gap: 10px; }

/* Responsive */
@media (max-width: 992px) {
 .hero-inner, .media-object, .contact-layout { grid-template-columns: 1fr; }
 .hero-copy { text-align: center; }
 .hero-copy p { margin-left: auto; margin-right: auto; }
 .hero-actions { justify-content: center; }
 .hero-visual { order: -1; }
 .portfolio-grid { grid-template-columns: 1fr 1fr; }
 .team-grid { grid-template-columns: 1fr 1fr; }
 .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
 .nav-toggle { display: block; z-index: 1001; }
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 80%;
 height: 100vh;
 background: var(--bg-white);
 flex-direction: column;
 padding: 100px 40px;
 gap: 16px;
 transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 }
 .nav-links.active { right: 0; }
 .nav-toggle span {
 display: block;
 width: 24px;
 height: 2px;
 background: var(--text-dark);
 margin: 6px 0;
 transition: var(--transition);
 }
 .nav-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-6px, 6px); }
 .nav-toggle.active span:nth-child(2) { opacity: 0; }
 .nav-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-6px, -6px); }

 .footer-grid { grid-template-columns: 1fr; text-align: center; }
 .footer-column { margin-bottom: 20px; }
 .footer-social, .footer-logo, .footer-contact { justify-content: center; }
 .footer-bottom { flex-direction: column; gap: 16px; }
 #cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
 .grid-3, .portfolio-grid, .team-grid { grid-template-columns: 1fr; }
 .contact-layout { gap: 30px; }
 .form-container { padding: 20px; }
 .page-hero { padding-top: 100px; }
}

/* Animations */
.animation-on-scroll {
 opacity: 0;
 transform: translateY(30px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animation-on-scroll.is-visible {
 opacity: 1;
 transform: translateY(0);
}