
/* styles_votive.css
   Full CSS with updated color theme to match Votive logo
   Logo path: /mnt/data/votive_final.png
*/

:root {
--background-color: #000000; /* Pure black to match logo theme */
--text-color: #eef6fb;       /* very light cyan/white */
--primary-color: #1b88c9;    /* vivid logo blue (main) */
--accent-color: #e11b23;     /* logo red (triangles/accents) */
--soft-accent: #f0b0bf;      /* subtle pink for small highlights */
--card-background: #0f1b28;  /* slightly lighter than background */
--border-color: rgba(238,246,251,0.06);
--hover-border-color: rgba(238,246,251,0.18);
--header-height: 80px; /* Standard height */
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}

html {
scroll-behavior: smooth;
}

body {
font-family: 'Inter', sans-serif;
background-color: var(--background-color);
color: var(--text-color);
line-height: 1.6;
overflow-x: hidden;
display: flex;
flex-direction: column;
min-height: 100vh;
}

body.menu-open {
overflow: hidden;
}

#app {
flex-grow: 1;
display: flex;
flex-direction: column;
}

/* --- Typography --- */
h1, h2, h3 {
font-weight: 700;
line-height: 1.2;
}

h1 {
font-size: 3rem;
margin-bottom: 1rem;
}

h2 {
font-size: 2rem;
margin-bottom: 1.5rem;
position: relative;
display: inline-block;
}

h2::after {
content: '';
position: absolute;
bottom: -8px;
left: 0;
width: 50px;
height: 3px;
background-color: var(--primary-color);
}

h3 {
font-size: 1.5rem;
margin-bottom: 0.75rem;
}

p {
margin-bottom: 1rem;
max-width: 70ch;
}

.page-intro {
max-width: 85ch;
margin-left: auto;
margin-right: auto;
font-size: 1.1rem;
line-height: 1.7;
color: rgba(238,246,251,0.85);
margin-bottom: 3rem;
}

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

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

/* --- SPA Page Management --- */
.page {
display: none;
}

.page.active {
display: block;
}

.content-page {
padding: calc(var(--header-height) + 4rem) 2rem 4rem;
max-width: 1200px;
margin: 0 auto;
opacity: 0;
animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* --- Header --- */
header {
position: fixed;
top: 0;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 2rem;
height: var(--header-height);
z-index: 1000;
/* Visual styling moved to ::before to avoid containing block issues for fixed children */
background-color: transparent;
border-bottom: none;
}

header::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
z-index: -1;
background-color: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border-color);
transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
}

/* Special Case: Home Page at the top */
body:has(#home.active) header:not(.scrolled)::before {
background-color: transparent;
backdrop-filter: none;
border-bottom: 1px solid transparent;
}

header.scrolled::before {
background-color: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--border-color);
}

.logo a{
display: inline-flex;
align-items: center;
font-size: 0;
}

.logo img{
height: calc(var(--header-height) - 25px);
max-height: 55px;
width: auto;
object-fit: contain;
display: block;
}

@media (max-width: 767px){
.logo img{
max-height: 45px;
height: 45px;
  }
}

nav ul {
display: flex;
list-style: none;
gap: 2rem;
}

nav a {
color: var(--text-color);
font-weight: 500;
position: relative;
}

nav a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 100%;
height: 2px;
background-color: var(--primary-color);
transform: scaleX(0);
transform-origin: right;
transition: transform 0.3s ease-in-out;
}

nav a:hover::after {
transform: scaleX(1);
transform-origin: left;
}

.contact-button {
background-color: var(--primary-color);
color: #fff;
padding: 0.6rem 1.2rem;
border-radius: 5px;
transition: background-color 0.3s ease;
}

.contact-button:hover {
background-color: var(--accent-color);
color: #fff;
}
.contact-button:hover::after {
transform: scaleX(0);
}

.hamburger {
display: none;
cursor: pointer;
padding: 10px;
position: relative;
z-index: 1002;
-webkit-tap-highlight-color: transparent;
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 1.5rem;
}

.hamburger .bar {
display: block;
width: 25px;
height: 3px;
margin: 5px auto;
transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
background-color: var(--text-color);
border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.toggle-active .bar:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.hamburger.toggle-active .bar:nth-child(2) {
opacity: 0;
}
.hamburger.toggle-active .bar:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}

/* --- HOME PAGE --- */
body:has(#home.active) {
overflow: hidden;
}

#home.active {
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
text-align: center;
/* Increased opacity of grid lines and brightened the blue center for higher brightness */
background:
linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
radial-gradient(circle at center, #164869, var(--background-color) 80%);
background-size: 50px 50px, 50px 50px, 100% 100%;
/* Adjusted mask to be more permissive (brighter) */
mask-image: radial-gradient(
circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%),
rgba(0, 0, 0, 1) 0%,
rgba(0, 0, 0, 0.8) 50%,
rgba(0, 0, 0, 0.5) 100%
  );
transition: mask-image 0.15s ease-out;
}

.hero h1 {
font-size: 6rem;
font-weight: 700;
letter-spacing: 2px;
color: var(--text-color);
}

.hero .subtitle {
font-size: 1.5rem;
margin-top: 1rem;
margin-bottom: 2rem;
letter-spacing: 4px;
text-transform: uppercase;
background: linear-gradient(90deg, var(--soft-accent), #ffffff);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: var(--soft-accent);
}

.cta-button {
background-color: var(--primary-color);
color: #fff;
padding: 1rem 2.5rem;
border-radius: 5px;
font-size: 1.1rem;
font-weight: 500;
transition: background-color 0.3s ease, transform 0.3s ease;
display: inline-block;
}

.cta-button:hover {
background-color: var(--accent-color);
transform: translateY(-3px);
color: #fff;
}

/* --- Service Detail View --- */
.service-detail-container {
padding: 2rem 0;
}
.service-detail-content {
max-width: 900px;
margin: 0 auto;
}
.back-button {
display: inline-block;
margin-bottom: 2rem;
color: var(--primary-color);
font-weight: 500;
}
.back-button:hover {
color: var(--accent-color);
}
.service-detail-content h1 {
margin-bottom: 2rem;
}
.service-detail-content ul {
list-style-position: inside;
padding-left: 1rem;
}
.service-detail-content li {
margin-bottom: 0.5rem;
}

/* --- About Us Page --- */
.about-page-header {
text-align: center;
margin-bottom: 4rem;
}

.about-page-header h1 {
font-size: 3rem;
margin-bottom: 1.5rem;
}

.about-page-header .page-intro {
margin-bottom: 0;
}

.section-divider {
position: relative;
text-align: center;
margin-bottom: 5rem;
}

.section-divider::before,
.section-divider::after {
content: '';
position: absolute;
top: 50%;
width: calc(50% - 30px);
height: 1px;
background: linear-gradient(to right, transparent, var(--border-color));
}

.section-divider::before {
left: 0;
}

.section-divider::after {
right: 0;
background: linear-gradient(to left, transparent, var(--border-color));
}

.section-divider svg {
width: 20px;
height: 20px;
fill: var(--accent-color);
display: inline-block;
vertical-align: middle;
}

.our-philosophy {
margin-bottom: 5rem;
}

.our-philosophy h2 {
text-align: center;
width: 100%;
margin-bottom: 3rem;
}

.philosophy-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}

.philosophy-card {
background-color: var(--card-background);
padding: 2.5rem 2rem;
border-radius: 8px;
border: 1px solid var(--border-color);
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.philosophy-card:hover {
transform: translateY(-8px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
border-color: var(--primary-color);
}

.philosophy-icon {
margin-bottom: 1.5rem;
display: inline-flex;
padding: 1.25rem;
background-color: rgba(225,27,35,0.06); /* subtle red tint */
border-radius: 50%;
}

.philosophy-icon svg {
width: 32px;
height: 32px;
fill: var(--primary-color);
}

.philosophy-card h3 {
font-size: 1.4rem;
margin-bottom: 1rem;
color: #fff;
}

.philosophy-card p {
color: rgba(255, 255, 255, 0.7);
font-size: 0.95rem;
margin-bottom: 0;
max-width: 100%;
}

/* --- Votive Approach Timeline --- */
.the-votive-approach {
text-align: center;
margin: 6rem 0;
padding: 0 1rem;
}
.the-votive-approach h2 {
margin-bottom: 4rem;
}
.approach-timeline {
position: relative;
max-width: 800px;
margin: 0 auto;
}
.approach-timeline::after {
content: '';
position: absolute;
width: 3px;
background-color: var(--border-color);
top: 0;
bottom: 0;
left: 50%;
margin-left: -1.5px;
border-radius: 3px;
}
.approach-step {
padding: 2rem 0;
position: relative;
width: 50%;
margin-bottom: 2rem;
}
.approach-step:nth-child(odd) {
left: 0;
text-align: right;
padding-right: 60px;
}
.approach-step:nth-child(even) {
left: 50%;
text-align: left;
padding-left: 60px;
}
.step-icon {
position: absolute;
width: 50px;
height: 50px;
right: -25px;
top: 50%;
transform: translateY(-50%);
background-color: var(--accent-color);
border: 4px solid var(--background-color);
border-radius: 50%;
z-index: 1;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 0 15px rgba(225,27,35,0.5);
}
.approach-step:nth-child(even) .step-icon {
left: -25px;
}
.step-icon svg {
width: 24px;
height: 24px;
fill: #fff;
}
.step-content {
position: relative;
}
.step-content h3 {
font-size: 1.4rem;
margin-bottom: 0.5rem;
color: #fff;
}
.step-content p {
font-size: 0.95rem;
color: rgba(255, 255, 255, 0.8);
margin-bottom: 0;
max-width: 100%;
}

/* --- Services Page New Layout --- */
.service-feature-list {
margin-top: 4rem;
display: flex;
flex-direction: column;
gap: 5rem;
}
.service-feature-item {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
align-items: center;
}
.service-feature-item.reverse .service-feature-image {
order: 2;
}
.service-feature-image {
text-align: center;
}
.service-feature-image svg {
max-width: 300px;
width: 100%;
height: auto;
max-height: 250px;
}
.service-feature-content h3 {
font-size: 2rem;
margin-bottom: 1rem;
}
.service-feature-content p {
margin-bottom: 2rem;
color: rgba(255, 255, 255, 0.8);
max-width: 60ch;
}
.learn-more-btn {
padding: 0.8rem 2rem;
font-size: 1rem;
}
.service-feature-image svg { stroke: rgba(255,255,255,0.06); }
.service-feature-image svg [stroke="var(--primary-color)"], .service-feature-image svg [fill="var(--primary-color)"] {
stroke: var(--primary-color);
fill: var(--primary-color);
}

/* --- Consulting Page Feature List --- */
#consulting .feature-sections-container {
margin-top: 4rem;
}
.feature-section {
display: flex;
gap: 2rem;
align-items: flex-start;
padding: 2.5rem 0;
border-bottom: 1px solid var(--border-color);
}
.feature-section:first-child {
padding-top: 0;
}
.feature-section:last-child {
border-bottom: none;
}
.feature-icon {
flex-shrink: 0;
}
.feature-icon svg {
width: 40px;
height: 40px;
fill: var(--primary-color);
margin-top: 5px;
}
.feature-content h3 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}
.feature-content p {
margin-bottom: 1rem;
color: rgba(255, 255, 255, 0.7);
max-width: 100%;
}
.read-more {
font-weight: 500;
display: inline-block;
transition: transform 0.3s ease;
}
.read-more:hover {
transform: translateX(5px);
}

/* --- Careers Page --- */
.life-at-votive {
display: grid;
grid-template-columns: 1fr 1.2fr;
gap: 4rem;
align-items: center;
margin: 5rem 0;
}
.life-at-votive-image {
text-align: center;
}
.life-at-votive-image svg {
max-width: 350px;
width: 100%;
height: auto;
}
.benefits-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 2rem;
}
.benefits-list li {
display: flex;
align-items: flex-start;
gap: 1.5rem;
}
.benefit-icon {
flex-shrink: 0;
background-color: var(--card-background);
border-radius: 50%;
width: 50px;
height: 50px;
display: flex;
justify-content: center;
align-items: center;
}
.benefit-icon svg {
width: 24px;
height: 24px;
fill: var(--primary-color);
}
.benefit-text h3 {
font-size: 1.25rem;
margin-bottom: 0.5rem;
}
.benefit-text p {
margin-bottom: 0;
color: rgba(255, 255, 255, 0.7);
max-width: 100%;
}
.open-positions {
margin-top: 5rem;
text-align: center;
padding: 3rem 2rem;
background-color: var(--card-background);
border: 1px solid var(--border-color);
border-radius: 8px;
}
.open-positions-message {
max-width: 70ch;
margin: 1.5rem auto 2.5rem;
color: rgba(255, 255, 255, 0.8);
}

/* --- Contact Page --- */
.contact-container {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 3rem;
margin-top: 3rem;
}
.contact-form .form-group {
margin-bottom: 1.5rem;
}
.contact-form label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
}
.contact-form input, .contact-form textarea {
width: 100%;
padding: 0.8rem;
border-radius: 5px;
border: 1px solid var(--border-color);
background: var(--card-background);
color: var(--text-color);
font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
outline: none;
border-color: var(--primary-color);
}
.submit-button {
width: 100%;
padding: 1rem;
background: var(--primary-color);
color: #fff;
border: none;
border-radius: 5px;
font-size: 1.1rem;
font-weight: 500;
cursor: pointer;
transition: background-color 0.3s ease;
}
.submit-button:hover {
background-color: var(--accent-color);
}
.contact-info h3 {
margin-top: 0;
margin-bottom: 2rem;
font-size: 1.5rem;
}
.contact-info p {
line-height: 1.7;
margin-bottom: 0;
}
.contact-info a {
color: var(--text-color);
}
.contact-info a:hover {
color: var(--primary-color);
}
.contact-details-list {
display: flex;
flex-direction: column;
gap: 2rem;
}
.contact-item {
display: flex;
align-items: flex-start;
gap: 1.5rem;
}
.contact-item svg {
width: 24px;
height: 24px;
fill: var(--primary-color);
margin-top: 5px;
flex-shrink: 0;
}

.location-section {
margin-top: 5rem;
text-align: center;
}

.location-section h2 {
margin-bottom: 3rem;
}

.map-container {
border-radius: 8px;
overflow: hidden;
border: 1px solid var(--border-color);
line-height: 0; /* a trick to remove bottom space from iframe */
}

.map-container iframe {
width: 100%;
height: 450px;
border: 0;
}

/* --- Footer --- */
footer {
background-color: #02060a;
color: #cfeaf8;
padding: 4rem 2rem 1rem;
position: relative;
}
footer .footer-section h2 {
background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
-webkit-background-clip: text;
color: transparent;
}

footer .footer-section h2::after {
background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

body:has(#home.active) footer {
display: none;
}

.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
max-width: 1200px;
margin: 0 auto;
}
.footer-section h2 {
font-size: 1.2rem;
color: #fff;
margin-bottom: 1rem;
}
.footer-section h2::after {
content: '';
position: absolute;
bottom: -8px;
left: 0;
width: 30px;
height: 2px;
background-color: var(--primary-color);
}
.footer-section p {
font-size: 0.9rem;
}
.socials a {
display: inline-block;
width: 40px;
height: 40px;
line-height: 40px;
text-align: center;
border-radius: 50%;
background-color: #071726;
color: #fff;
margin-right: 0.5rem;
transition: background-color 0.3s;
}
.socials a:hover {
background-color: var(--accent-color);
color: #fff;
}
.socials svg {
width: 20px;
height: 20px;
fill: currentColor;
vertical-align: middle;
}
.footer-section ul {
list-style: none;
}
.footer-section ul a {
color: #a0a0a0;
font-size: 0.9rem;
display: block;
margin-bottom: 0.5rem;
}
.footer-section ul a:hover {
color: var(--primary-color);
}
.contact-info-footer span {
display: flex;
align-items: flex-start;
gap: 1rem;
margin-bottom: 1rem;
font-size: 0.9rem;
}
.contact-info-footer span a {
color: inherit;
transition: color 0.3s ease;
}
.contact-info-footer span a:hover {
color: var(--primary-color);
}
.contact-info-footer svg {
width: 18px;
height: 18px;
fill: var(--primary-color);
margin-top: 3px;
flex-shrink: 0;
}
.text-input {
width: 100%;
padding: 0.7rem 1rem;
background-color: #081624;
border: 1px solid #333;
border-radius: 5px;
color: #fff;
margin-bottom: 1rem;
}
.btn {
padding: 0.7rem 1rem;
background-color: var(--primary-color);
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}

.footer-bottom {
text-align: center;
padding: 2rem 0 1rem;
border-top: 1px solid #333;
margin-top: 3rem;
font-size: 0.9rem;
}

/* --- Scroll to top button --- */
.scroll-to-top {
position: fixed;
bottom: 20px;
right: 20px;
width: 50px;
height: 50px;
background-color: var(--primary-color);
color: #fff;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
transform: translateY(20px);
z-index: 1000;
}

.scroll-to-top.visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.scroll-to-top:hover {
background-color: var(--accent-color);
color: #fff;
}

/* --- Media Queries --- */
/* For tablets and smaller screens: Adjust nav spacing to prevent wrapping */
@media (max-width: 1024px) {
header {
padding: 0 1.5rem;
  }
nav ul {
gap: 1rem;
  }
nav ul {
backface-visibility: hidden;
transform: translateZ(0);
  }
.service-feature-item {
grid-template-columns: 1fr;
text-align: center;
  }
.service-feature-item.reverse .service-feature-image {
order: initial; /* Reset the order to follow DOM structure */
  }
.service-feature-content p {
margin-left: auto;
margin-right: auto;
  }
.life-at-votive {
grid-template-columns: 1fr;
gap: 3rem;
text-align: center;
  }
.life-at-votive-image {
order: -1; /* Image on top on mobile */
  }
.benefits-list li {
flex-direction: column;
align-items: center;
text-align: center;
gap: 1rem;
  }
}

/* For mobile only: Switch to hamburger menu */
@media (max-width: 767px) {
h1 { font-size: 2.5rem; }
.hero h1 { font-size: 4rem; }
.hero .subtitle { font-size: 1rem; }
header { padding: 0 1.5rem; }
.hamburger {
display: block;
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 1.5rem;
  }

.logo { display: flex; align-items: center; }

nav ul {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 2rem;
background-color: rgba(7, 16, 33, 0.98); 
/* Animation Initial State */
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
/* Ensure robust transition: delay visibility hide */
transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
will-change: opacity, transform;
z-index: 1001; /* Above header content (1000) so it covers the screen properly */
  }

nav ul.nav-active {
opacity: 1;
visibility: visible;
transform: translateY(0);
/* Show visibility immediately */
transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
  }

nav a {
font-size: 1.5rem;
  }

.contact-button {
background: transparent;
padding: 0;
color: var(--text-color);
  }

.contact-button:hover {
background-color: transparent;
color: var(--accent-color);
  }
.about-page-header h1 {
font-size: 2.5rem;
  }
.philosophy-grid {
gap: 1.5rem;
  }
.contact-container {
grid-template-columns: 1fr;
  }

/* Approach Timeline Mobile */
.approach-timeline::after {
left: 25px;
  }
.approach-step {
width: 100%;
padding-left: 70px;
padding-right: 15px;
text-align: left;
  }
.approach-step:nth-child(odd),
.approach-step:nth-child(even) {
left: 0;
text-align: left;
  }
.approach-step:nth-child(odd) .step-icon,
.approach-step:nth-child(even) .step-icon {
left: 0;
  }

/* Services Page Mobile Adjustments */
.service-feature-list {
gap: 4rem;
margin-top: 3rem;
  }
.service-feature-item {
gap: 2rem;
  }
.service-feature-image svg {
max-width: 250px;
  }
.service-feature-content h3 {
font-size: 1.8rem;
  }
}

/* Accessibility contrast fallback adjustments */
@media (prefers-contrast: high) {
:root {
--text-color: #ffffff;
--border-color: rgba(255,255,255,0.12);
  }
}

/* Small utility classes */
.small-accent { color: var(--accent-color); }
