:root {
 --primary-color: #0d4f8b; /* Deep Blue */
 --primary-dark: #0a3a66;
 --secondary-color: #4a5568; /* Steel Gray */
 --accent-color: #0891b2; /* Tech Cyan */
 --text-dark: #1a1a1a;
 --text-light: #555555;
 --text-muted: #718096;
 --bg-light: #f7fafc;
 --bg-white: #ffffff;
 --border-color: #e2e8f0;
 --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
 --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
 --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;
 
 --transition: all 0.3s ease-in-out;
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::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: var(--bg-white);
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

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

.container-narrow {
 max-width: 800px;
 margin: 0 auto;
 padding: 0 24px;
}

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

.nav-container {
 max-width: 1400px;
 margin: 0 auto;
 padding: 0 24px;
}

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

.nav-logo {
 font-size: 1.4rem;
 font-weight: 700;
 color: var(--text-dark);
 letter-spacing: -0.5px;
}

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

.nav-links a {
 font-weight: 500;
 color: var(--text-dark);
 padding: 8px 0;
 position: relative;
 font-size: 0.95rem;
}

.nav-links a::after {
 content: '';
 position: absolute;
 bottom: -2px;
 left: 0;
 width: 0;
 height: 2px;
 background: var(--accent-color);
 transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
 width: 100%;
}

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 padding: 8px;
 z-index: 1001;
}

.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: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Sections */
.section {
 padding: 80px 0;
}
.section.section-light {
 background: var(--bg-light);
}
.section.no-padding-bottom { padding-bottom: 0; }

.section-header {
 margin: 0 auto 48px;
 max-width: 700px;
}
.section-header.centered { text-align: center; }

.section-label {
 display: inline-block;
 background-color: rgba(13, 79, 139, 0.1);
 color: var(--primary-color);
 padding: 6px 16px;
 border-radius: 20px;
 font-size: 0.85rem;
 font-weight: 600;
 margin-bottom: 16px;
 text-transform: uppercase;
}

.section-title { margin-bottom: 16px; }
.section-title.medium { font-size: clamp(1.5rem, 4vw, 2rem); }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; }

/* Zen Hero */
.hero-zen {
 min-height: calc(85vh - 70px);
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 120px 24px 80px;
 background: var(--bg-white);
 text-align: center;
}
.hero-zen-content {
 max-width: 700px;
}
.hero-zen-title {
 font-size: clamp(2.5rem, 6vw, 4rem);
 font-weight: 400;
 color: var(--text-dark);
 margin-bottom: 16px;
}
.hero-zen-subtitle {
 font-size: 1.25rem;
 color: var(--text-muted);
}
.animated-line {
 width: 80px;
 height: 2px;
 background: var(--accent-color);
 margin: 32px auto 0;
 animation: expandLine 1s ease-out forwards;
}

@keyframes expandLine {
 from { width: 0; }
 to { width: 80px; }
}

/* Philosophy Section */
.philosophy-section {
 text-align: center;
}
.philosophy-text {
 font-size: 1.15rem;
 line-height: 1.8;
 color: var(--text-dark);
}

/* Services Stack */
.services-stack {
 display: flex;
 flex-direction: column;
 gap: 32px;
 max-width: 850px;
 margin: 0 auto;
}
.service-stack-item {
 display: flex;
 align-items: flex-start;
 gap: 24px;
 padding: 24px;
 border-left: 3px solid var(--accent-color);
 background: var(--bg-white);
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-sm);
}
.service-stack-number {
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--accent-color);
}
.service-stack-content h3 {
 margin-bottom: 8px;
}

/* Work Grid */
.work-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 24px;
}
.work-item {
 position: relative;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-md);
 aspect-ratio: 4 / 3;
}
.work-item img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.4s ease;
}
.work-item:hover img {
 transform: scale(1.05);
}
.work-item-overlay {
 position: absolute;
 inset: 0;
 background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 60%);
 display: flex;
 align-items: flex-end;
 padding: 20px;
}
.work-item-overlay h3 {
 color: white;
 font-size: 1.1rem;
}

/* About Zen Section */
.about-zen {
 display: flex;
 align-items: center;
 gap: 48px;
 padding: 40px 0;
}
.about-zen-image img {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 object-fit: cover;
 box-shadow: var(--shadow-lg);
}
.about-zen-content p {
 margin-bottom: 24px;
}

/* CTA Zen Section */
.cta-section-zen {
 background: var(--bg-white);
}
.contact-info-zen {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 16px;
 margin: 32px 0;
 font-size: 1.1rem;
 font-weight: 500;
}
.contact-info-zen span {
 color: var(--border-color);
}
.contact-link-zen {
 color: var(--text-dark);
}
.contact-link-zen:hover {
 color: var(--accent-color);
}

/* Page Header */
.page-header-section {
 padding: 120px 24px 60px;
 background-color: var(--bg-light);
 border-bottom: 1px solid var(--border-color);
}
.page-title {
 margin-bottom: 16px;
}
.centered {
 text-align: center;
}

/* Generic Layout Elements */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.gap-large { gap: 48px; }
.align-center { align-items: center; }
.media-visual img {
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
 object-fit: cover;
 max-height: 450px;
 width: 100%;
}
.media-copy ul {
 list-style-position: inside;
 padding-left: 0;
 margin-top: 16px;
}
.media-copy ul li {
 margin-bottom: 8px;
 padding-left: 1.5em;
 position: relative;
 list-style-type: none;
}
.media-copy ul li::before {
 content: '';
 color: var(--accent-color);
 position: absolute;
 left: 0;
 font-weight: bold;
}

/* Cards */
.cards-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 24px;
}
.card {
 background: var(--bg-white);
 border: 1px solid var(--border-color);
 border-radius: var(--radius-lg);
 padding: 28px;
 display: flex;
 flex-direction: column;
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
}
.card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-md);
}
.card-icon {
 color: var(--accent-color);
 margin-bottom: 16px;
}
.card-title {
 margin-bottom: 12px;
}
.card-text {
 flex-grow: 1;
}

/* Team section */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
}
.team-card {
 background: var(--bg-white);
 border-radius: var(--radius-lg);
 padding: 24px;
 text-align: center;
 box-shadow: var(--shadow-md);
 transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); }
.team-photo {
 width: 100px;
 height: 100px;
 border-radius: 50%;
 margin: 0 auto 16px;
 object-fit: cover;
 border: 3px solid var(--accent-color);
}
.team-name {
 font-size: 1.2rem;
 margin-bottom: 4px;
}
.team-title {
 color: var(--accent-color);
 font-weight: 500;
 font-size: 0.9rem;
 margin-bottom: 12px;
}
.team-bio {
 font-size: 0.9rem;
}

/* Partners */
.partners-logo-grid {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 align-items: center;
 gap: 40px;
}
.partner-logo {
 opacity: 0.7;
 transition: var(--transition);
}
.partner-logo:hover {
 opacity: 1;
}
.partner-logo img {
 height: 40px;
 width: auto;
 max-width: 150px;
 object-fit: contain;
}

/* Buttons */
.btn {
 display: inline-flex;
 padding: 12px 28px;
 font-size: 1rem;
 font-weight: 600;
 border-radius: var(--radius-md);
 cursor: pointer;
 transition: var(--transition);
 border: 2px solid transparent;
 text-align: center;
}
.btn-primary {
 background: var(--accent-color);
 color: white;
}
.btn-primary:hover {
 background: var(--primary-color);
 transform: translateY(-2px);
}
.btn-secondary {
 background: transparent;
 color: var(--text-dark);
 border-color: var(--border-color);
}
.btn-secondary:hover {
 background: var(--text-dark);
 color: white;
 border-color: var(--text-dark);
}
.btn.full-width { width: 100%; justify-content: center; }

/* Contact page */
.contact-layout {
 display: grid;
 grid-template-columns: 1.2fr 1fr;
 gap: 60px;
}
.contact-form-wrapper {
 background: var(--bg-light);
 padding: 40px;
 border-radius: var(--radius-lg);
}
.contact-details {
 display: flex;
 flex-direction: column;
 gap: 24px;
}
.contact-item {
 display: flex;
 gap: 16px;
 align-items: flex-start;
}
.contact-item-icon {
 color: var(--accent-color);
 flex-shrink: 0;
 margin-top: 2px;
}
.contact-item strong {
 display: block;
 color: var(--text-dark);
 margin-bottom: 4px;
}
.map-container {
 height: 450px;
 margin-top: 60px;
}
.map-container iframe {
 width: 100%;
 height: 100%;
 border: none;
}
/* Forms */
.form-group {
 margin-bottom: 20px;
}
.form-group label {
 display: block;
 font-weight: 500;
 margin-bottom: 8px;
 font-size: 0.9rem;
 color: var(--text-dark);
}
.form-control {
 width: 100%;
 padding: 12px 16px;
 font-size: 1rem;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 transition: var(--transition);
 background: var(--bg-white);
 font-family: inherit;
}
.form-control:focus {
 outline: none;
 border-color: var(--accent-color);
 box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}
textarea.form-control {
 resize: vertical;
 min-height: 120px;
}
.checkbox-group {
 display: flex;
 align-items: center;
 gap: 10px;
}
.checkbox-group input[type="checkbox"] {
 width: 1.2em;
 height: 1.2em;
}
.checkbox-group label {
 margin-bottom: 0;
 font-weight: 400;
 font-size: 0.9em;
}
/* Form validation styles */
.input-error {
 border-color: #dc2626 !important;
 box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}
.field-error {
 color: #c53030;
 font-size: 0.85rem;
 margin-top: 4px;
}
.spinner {
 display: inline-block;
 width: 16px;
 height: 16px;
 border: 2px solid rgba(255,255,255,0.3);
 border-radius: 50%;
 border-top-color: #fff;
 animation: spin 0.8s linear infinite;
 margin-right: 8px;
 vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
button[disabled] { opacity: 0.7; cursor: not-allowed; }

/* Thank you page */
.thank-you-section {
 min-height: calc(100vh - 250px);
 display: flex;
 align-items: center;
 justify-content: center;
}
.thank-you-content { text-align: center; }
.thank-you-icon {
 color: var(--accent-color);
 margin-bottom: 24px;
}
.thank-you-content .page-subtitle { margin-bottom: 32px; }

/* Legal pages */
.legal-page { padding-top: 120px; }
.legal-page h1, .legal-page h3 { margin-bottom: 16px; padding-top: 16px; }
.legal-page p, .legal-page ul { margin-bottom: 16px; }
.legal-page ul { list-style-position: inside; }
.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin: 24px 0;
}
.cookie-table th, .cookie-table td {
 border: 1px solid var(--border-color);
 padding: 12px;
 text-align: left;
}
.cookie-table th {
 background: var(--bg-light);
 font-weight: 600;
}

/* Footer */
.footer {
 background: var(--text-dark);
 color: #a0aec0;
 padding: 60px 0 30px;
 margin-top: 80px;
}
.footer-container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 20px;
}
.footer-grid {
 display: grid;
 grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
 gap: 40px;
 margin-bottom: 40px;
}
.footer-brand { max-width: 320px; }
.footer-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: white;
 margin-bottom: 16px;
 display: block;
}
.footer-description {
 font-size: 0.9rem;
 line-height: 1.6;
}
.footer-heading {
 font-size: 1rem;
 font-weight: 600;
 color: white;
 margin-bottom: 20px;
 text-transform: uppercase;
 letter-spacing: 1px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
 color: #a0aec0;
 text-decoration: none;
 font-size: 0.9rem;
 transition: color 0.2s ease;
}
.footer-links a:hover { color: white; }
.footer-contact-item {
 display: flex;
 align-items: flex-start;
 gap: 12px;
 margin-bottom: 16px;
 font-size: 0.9rem;
}
.footer-contact-item svg {
 width: 18px;
 height: 18px;
 flex-shrink: 0;
 margin-top: 2px;
 color: var(--accent-color);
}
.footer-contact-item a { color: #a0aec0; }
.footer-contact-item a:hover { color: white; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
 width: 40px;
 height: 40px;
 border-radius: 50%;
 background: rgba(255,255,255,0.1);
 display: flex;
 align-items: center;
 justify-content: center;
 color: white;
 transition: all 0.3s ease;
}
.footer-social a:hover {
 background: var(--accent-color);
 transform: translateY(-3px);
}
.footer-divider {
 height: 1px;
 background: rgba(255,255,255,0.1);
 margin: 30px 0;
}
.footer-bottom {
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.85rem;
 color: #718096;
}
.footer-legal-links { display: flex; gap: 24px; }
.footer-legal-links a { color: #718096; }
.footer-legal-links a:hover { color: white; }

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: #2d3748;
 color: white;
 padding: 16px 24px;
 display: none;
 align-items: center;
 justify-content: space-between;
 z-index: 1001;
 gap: 16px;
 box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
#cookie-banner p {
 margin: 0;
 font-size: 0.9rem;
}
#cookie-banner a {
 color: var(--accent-color);
 text-decoration: underline;
}
.cookie-buttons {
 display: flex;
 gap: 12px;
 flex-shrink: 0;
}
#cookie-banner button {
 padding: 8px 16px;
 border-radius: var(--radius-md);
 border: none;
 cursor: pointer;
 font-weight: 600;
 transition: var(--transition);
}
#cookie-accept {
 background: var(--accent-color);
 color: white;
}
#cookie-accept:hover {
 background: var(--primary-color);
}
#cookie-decline {
 background: #4a5568;
 color: white;
}
#cookie-decline:hover {
 background: #718096;
}

/* Responsive */
@media (max-width: 992px) {
 .work-grid { grid-template-columns: 1fr 1fr; }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .contact-layout { grid-template-columns: 1fr; }
 .media-copy { text-align: center; }
 .media-copy ul { text-align: left; }
 .media-visual { margin-bottom: 32px; }
 .grid-2 { grid-template-columns: 1fr; }
 .reverse-mobile {
 display: flex;
 flex-direction: column-reverse;
 }
}

@media (max-width: 768px) {
 html { font-size: 15px; }

 .nav-toggle { display: block; }
 .nav-links {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100vh;
 background: var(--bg-white);
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 32px;
 transform: translateX(100%);
 transition: transform 0.4s ease-in-out;
 }
 .nav-links.active {
 transform: translateX(0);
 }
 .nav-links a {
 font-size: 1.5rem;
 }

 .work-grid { grid-template-columns: 1fr; }
 .about-zen { flex-direction: column; text-align: center; }
 
 .footer-grid { grid-template-columns: 1fr; text-align: center; }
 .footer-brand { margin: 0 auto 32px; max-width: 100%; }
 .footer-social { justify-content: center; }
 .footer-bottom { flex-direction: column; gap: 16px; }

 #cookie-banner {
 flex-direction: column;
 text-align: center;
 }
}