:root {
 --primary-color: #B71C1C;
 --secondary-color: #F9A825;
 --accent-color: #388E3C;
 --text-dark: #212121;
 --text-light: #757575;
 --text-muted: #8D8D8D;
 --bg-light: #FAFAFA;
 --bg-white: #FFFFFF;
 --border-color: #E0E0E0;
 --header-bg: #1A237E;
 --header-text: #FFFFFF;
 --footer-bg: #1A237E;
 --footer-text: #E0E0E0;

 --font-title: 'Archivo Black', sans-serif;
 --font-body: 'Mulish', sans-serif;
 --font-label: 'Courier Prime', monospace;

 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
 --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
 --transition: all 0.3s ease-in-out;
}

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

html {
 scroll-behavior: smooth;
 font-size: 100%;
}

body {
 font-family: var(--font-body);
 font-size: 18px;
 line-height: 1.84;
 color: var(--text-dark);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
 overflow-x: hidden;
}

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

h1 { font-size: clamp(2.25rem, 5vw, 46px); }
h2 { font-size: clamp(1.75rem, 4vw, 36px); }
h3 { font-size: clamp(1.25rem, 3vw, 24px); }

p { margin-bottom: 1.5rem; color: var(--text-light); }
a { color: var(--accent-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-color); }
ul, ol { list-style-position: inside; padding-left: 1rem; }
img { max-width: 100%; height: auto; display: block; }

.container {
 max-width: 1200px;
 margin-left: auto;
 margin-right: auto;
 padding-left: 1.5rem;
 padding-right: 1.5rem;
}

/* Header */
.header {
 background-color: var(--bg-white);
 box-shadow: var(--shadow-sm);
 position: sticky;
 top: 0;
 z-index: 1000;
 width: 100%;
}

.header-top-bar {
 background-color: var(--header-bg);
 color: var(--header-text);
 padding: 0.5rem 0;
 font-size: 0.9rem;
}

.top-bar-content {
 display: flex;
 justify-content: flex-end;
 align-items: center;
}
.top-bar-contact a {
 color: var(--header-text);
 display: inline-flex;
 align-items: center;
 gap: 0.5rem;
}
.top-bar-contact a:hover { opacity: 0.8; }
.top-bar-contact svg { width: 16px; height: 16px; }
.top-bar-contact .separator { margin: 0 1rem; opacity: 0.5; }

.header-main-bar {
 padding: 1rem 0;
}

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

.nav-logo {
 font-family: var(--font-title);
 font-size: 1.5rem;
 color: var(--text-dark);
 font-weight: bold;
}

.nav-links {
 display: flex;
 gap: 2rem;
 list-style: none;
}
.nav-links a {
 font-weight: 700;
 color: var(--text-dark);
 padding-bottom: 0.5rem;
 position: relative;
}
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 3px;
 background: linear-gradient(90deg, var(--primary-color), var(--secondary-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; }
.nav-toggle span { display: block; width: 25px; height: 3px; background: var(--text-dark); margin: 5px 0; transition: var(--transition); }

/* Section Styling */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.bg-light { background-color: var(--bg-light); }
.centered { text-align: center; }
.section-header { margin-bottom: 3rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-label { font-family: var(--font-label); color: var(--primary-color); font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.section-title { margin-bottom: 1rem; }
.section-subtitle { font-size: 1.25rem; color: var(--text-light); max-width: 700px; margin: 0 auto; }

/* Buttons */
.btn {
 display: inline-block;
 padding: 1rem 2rem;
 font-family: var(--font-body);
 font-size: 1rem;
 font-weight: 700;
 border-radius: var(--radius-sm);
 cursor: pointer;
 text-align: center;
 transition: var(--transition);
 border: 2px solid transparent;
}
.btn-primary { 
 background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
 color: white; 
 border: none;
}
.btn-primary:hover {
 box-shadow: 0 4px 15px rgba(0,0,0,0.2);
 transform: translateY(-2px);
}
.btn-secondary {
 border-color: var(--primary-color);
 color: var(--primary-color);
 background: transparent;
}
.btn-secondary:hover {
 background-color: var(--primary-color);
 color: white;
}

/* Hero Section */
.business-hero {
 min-height: 70vh;
 display: flex;
 align-items: center;
 background-color: var(--bg-light);
 background-image:
 radial-gradient(var(--border-color) 1px, transparent 1px);
 background-size: 20px 20px;
 padding: 4rem 0;
}
.business-hero .hero-content { display: flex; align-items: center; gap: 3rem; }
.hero-image-mobile { display: none; }
.hero-label { font-family: var(--font-label); color: var(--text-muted); font-weight: 700; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.5rem, 6vw, 52px); }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 2rem; }
.hero-stats-counter {
 margin-top: 2rem;
 padding-top: 2rem;
 border-top: 1px solid var(--border-color);
 display: flex;
 gap: 2rem;
 text-align: left;
}
.counter-item .counter-number {
 font-family: var(--font-title);
 font-size: 2rem;
 color: var(--primary-color);
 display: block;
}
.counter-item .counter-label {
 font-family: var(--font-label);
 color: var(--text-muted);
}

/* Grids */
.grid-2, .grid-3, .grid-4 {
 display: grid;
 gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Services Overview */
.service-card {
 background-color: var(--bg-white);
 padding: 2rem;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-sm);
 text-align: center;
 border-bottom: 4px solid transparent;
 transition: var(--transition);
}
.service-card:hover { 
 transform: translateY(-5px); 
 box-shadow: var(--shadow-md); 
 border-bottom-color: var(--primary-color);
}
.service-icon {
 width: 60px;
 height: 60px;
 margin: 0 auto 1.5rem;
 background-color: var(--accent-color);
 color: white;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
}
.service-icon svg { width: 30px; height: 30px; }
.service-title { font-size: 1.5rem; }
.service-text { font-size: 1rem; }

/* Media Object */
.media-object { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.media-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.checklist { list-style: none; padding: 0; }
.checklist li {
 padding-left: 2rem;
 position: relative;
 margin-bottom: 1rem;
}
.checklist li::before {
 content: '';
 position: absolute;
 left: 0;
 color: var(--accent-color);
 font-weight: bold;
}

/* Case Studies */
.case-study-card {
 background: var(--bg-white);
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-sm);
 overflow: hidden;
 transition: var(--transition);
}
.case-study-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.case-study-image { width: 100%; height: 200px; object-fit: cover; }
.case-study-content { padding: 1.5rem; }
.case-study-title { font-size: 1.4rem; }
.case-study-text { font-size: 1rem; }
.case-study-tag {
 display: inline-block;
 background: var(--bg-light);
 color: var(--accent-color);
 font-family: var(--font-label);
 padding: 0.25rem 0.75rem;
 border-radius: var(--radius-sm);
 font-size: 0.9rem;
}

/* Team Section */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 2rem;
 text-align: center;
}
.team-member-card { transition: var(--transition); }
.team-member-card:hover { transform: scale(1.05); }
.team-photo {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1rem;
 border: 4px solid var(--border-color);
}
.team-name { font-size: 1.25rem; margin-bottom: 0.25rem; }
.team-title { color: var(--text-muted); font-size: 1rem; margin: 0; }
.team-bio { font-size: 0.9rem; color: var(--text-light); margin-top: 0.5rem; }

/* Partners Section */
.logos-carousel { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3rem; margin-top: 2rem; }
.partner-logo-text { font-family: var(--font-title); font-size: 1rem; color: var(--text-muted); filter: grayscale(50%); transition: var(--transition); margin:0; }
.partner-logo-text:hover { filter: grayscale(0%); color: var(--text-dark); }

/* Footer */
.footer {
 background-color: var(--footer-bg);
 color: var(--footer-text);
 padding: 4rem 0 2rem;
 margin-top: 5rem;
 font-size: 0.95rem;
}

.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 2.5rem;
 margin-bottom: 3rem;
}
.footer-logo { font-family: var(--font-title); color: white; display: block; margin-bottom: 1rem; font-size: 1.25rem; }
.footer-description { color: #BDBDBD; line-height: 1.6; }
.footer-heading {
 font-family: var(--font-title);
 color: white;
 font-size: 1.1rem;
 margin-bottom: 1.5rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #BDBDBD; }
.footer-links a:hover { color: white; text-decoration: underline; }

.footer-contact .footer-contact-item {
 display: flex;
 gap: 1rem;
 align-items: flex-start;
 margin-bottom: 1rem;
 color: #BDBDBD;
}
.footer-contact-item svg { width: 20px; height: 20px; color: var(--secondary-color); flex-shrink: 0; margin-top: 4px; }
.footer-contact-item a { color: #BDBDBD; }
.footer-contact-item a:hover { color: white; }

.footer-hours-social { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; margin-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-hours { line-height: 1.6; }
.footer-hours strong { color: white; }

.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: white; opacity: 0.7; }
.footer-social a:hover { opacity: 1; transform: translateY(-3px); }

.footer-bottom { 
 border-top: 1px solid rgba(255,255,255,0.1); 
 padding-top: 2rem; 
 margin-top: 2rem;
 text-align: center;
 color: #9E9E9E;
 font-size: 0.9rem;
}

/* Page Specific Styles */
.page-header-section { padding: 4rem 0; background: var(--bg-light); text-align: center; }
.legal-page main { background: var(--bg-white); }
.legal-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; }
.legal-content p, .legal-content ul, .legal-content ol { margin-bottom: 1.5rem; }
.legal-content ul li, .legal-content ol li { margin-bottom: 0.5rem; }

.values-section .value-card { text-align: center; padding: 2rem; }
.values-section h3 { color: var(--primary-color); }

.profile-card {
 display: grid;
 grid-template-columns: 1fr 2fr;
 gap: 3rem;
 align-items: center;
 background: var(--bg-light);
 padding: 3rem;
 border-radius: var(--radius-lg);
 margin-bottom: 3rem;
}
.profile-card:nth-child(even) { grid-template-columns: 2fr 1fr; }
.profile-card:nth-child(even) .profile-image { grid-column: 2; grid-row: 1; }
.profile-image { border-radius: var(--radius-md); object-fit: cover; width: 100%; height: 350px;}
.profile-title { font-size: 2rem; }
.profile-list { margin-top: 1rem; padding-left: 0; list-style: none; }
.profile-list li { padding-left: 1.5rem; position: relative; }
.profile-list li::before { content: '›'; color: var(--accent-color); position: absolute; left: 0; font-weight: bold; }

.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }
.contact-info-container { padding-top: 3rem; }
.contact-info-block .footer-contact-item { margin-bottom: 2rem; }
.contact-info-block strong { display: block; font-family: var(--font-title); color: var(--text-dark); margin-bottom: 0.25rem; }
.contact-info-block p { margin: 0; }
.map-container { margin-top: 4rem; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }

.thank-you-section { min-height: 60vh; display: flex; align-items: center; }
.thank-you-content { max-width: 600px; margin: 0 auto; background: var(--bg-light); padding: 3rem; border-radius: var(--radius-lg); text-align: center; }

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 width: 100%;
 background: var(--footer-bg);
 color: var(--footer-text);
 padding: 1rem 1.5rem;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 1rem;
 z-index: 2000;
 box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
#cookie-banner p { margin: 0; font-size: 0.9rem; }
#cookie-banner a { color: var(--secondary-color); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.5rem; }
#cookie-banner button {
 padding: 0.5rem 1rem;
 border-radius: var(--radius-sm);
 border: none;
 cursor: pointer;
}
#cookie-accept { background: var(--accent-color); color: white; }
#cookie-decline { background: #757575; color: white; }

/* Form Styles */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
 width: 100%;
 padding: 1rem;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-sm);
 font-family: var(--font-body);
 font-size: 1rem;
 transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.2);
}
.checkbox-group { display: flex; align-items: flex-start; gap: 0.5rem; }
.checkbox-group input { width: auto; margin-top: 5px; }
.checkbox-group label { font-size: 0.9rem; font-weight: normal; }
.input-error { border-color: red !important; }
.field-error { color: red; font-size: 0.9rem; margin-top: 0.25rem; }
.spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: spin 1s linear infinite; margin-right: 0.5em; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 992px) {
 .media-object, .contact-grid { grid-template-columns: 1fr; }
 .media-object:nth-child(even) .media-visual { grid-row: 1; }
 .profile-card, .profile-card:nth-child(even) { grid-template-columns: 1fr; }
 .profile-card .profile-image { height: 250px; }
 .business-hero .hero-content { flex-direction: column; text-align: center; }
 .hero-text { order: 1; }
 .hero-stats-counter { justify-content: center; }
 .hero-image-mobile { display: block; width: 100%; max-width: 400px; order: 2; margin-top: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
}

@media (max-width: 768px) {
 h1 { font-size: 2.5rem; }
 .nav-toggle { display: block; z-index: 1001; }
 .nav-links {
 position: fixed;
 left: -100%;
 top: 0;
 bottom: 0;
 width: 80%;
 max-width: 300px;
 flex-direction: column;
 background: var(--bg-white);
 padding: 6rem 2rem 2rem;
 box-shadow: 2px 0 10px rgba(0,0,0,0.1);
 transition: left 0.4s ease-in-out;
 }
 .nav-links.active { left: 0; }
 .top-bar-contact { width: 100%; text-align: center; }
 .top-bar-contact .separator { display: none; }
 .top-bar-contact a { justify-content: center; font-size: 0.8rem; }
 #cookie-banner { flex-direction: column; text-align: center; }
}
.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin: 2rem 0;
 font-size: 0.9rem;
}
.cookie-table th, .cookie-table td {
 border: 1px solid var(--border-color);
 padding: 0.75rem;
 text-align: left;
}
.cookie-table th {
 background-color: var(--bg-light);
 font-family: var(--font-title);
}