/* ===================================
   PRECETTO WEBSITE STYLES
   Color Palette:
   - Primary Dark Blue: #1a3a52
   - Secondary Blue: #2d5f7f
   - Accent Light Blue: #6ba3c8
   - Neutral Dark: #4a4238
   - Neutral Light: #8b7d6b
   =================================== */

/* ===================================
   RESET & BASE STYLES
   =================================== */

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

:root {
    --primary-dark: #1a3a52;
    --secondary-blue: #2d5f7f;
    --accent-blue: #6ba3c8;
    --vibrant-blue: #2563eb;
    --neutral-dark: #4a4238;
    --neutral-light: #8b7d6b;
    --white: #ffffff;
    --light-bg: #f5f3f0;
    --warm-bg: #faf8f6;
    --warm-beige: #ebe6df;
    --soft-taupe: #d9d0c4;
    --text-dark: #2c3e50;
    --text-light: #6c757d;

    /* Typography */
    --font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing — tightened for denser layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.875rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-dark);
    background-color: var(--warm-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-dark);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--neutral-light);
}

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

ul {
    list-style: none;
}

/* ===================================
   LAYOUT & CONTAINER
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    background: linear-gradient(to bottom, #ffffff 0%, #f7f9fc 100%);
    box-shadow: 0 2px 8px rgba(26, 58, 82, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.25rem 0;
    padding: var(--spacing-sm) 0;
    border-bottom: 2px solid rgba(139, 125, 107, 0.25);
}

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

.nav-brand a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-menu {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu a {
    font-weight: 600;
    color: var(--neutral-dark);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--neutral-dark);
    background-color: rgba(139, 125, 107, 0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background-image:
        linear-gradient(135deg, rgba(15, 38, 64, 0.92) 0%, rgba(26, 58, 82, 0.88) 40%, rgba(45, 95, 127, 0.85) 100%),
        url('../images/hero-morpho.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    position: relative;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 0.875rem;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-accent {
    color: var(--accent-blue);
    background: linear-gradient(180deg, var(--accent-blue) 0%, #8fc7e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-logo {
    width: 320px;
    height: auto;
    margin: 0 auto 0.5rem;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
    .hero-logo { width: 200px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
}

.hero-subtitle {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 720px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--secondary-blue) 50%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: var(--primary-dark);
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-blue) 50%, var(--accent-blue) 100%);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 58, 82, 0.45);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-blue);
}

/* ===================================
   VALUE PROPOSITION
   =================================== */

.value-proposition {
    background: var(--white);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.value-card {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--warm-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px rgba(74, 66, 56, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(139, 125, 107, 0.2);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(74, 66, 56, 0.15);
    background-color: var(--white);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--secondary-blue) 60%, var(--primary-dark) 100%);
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 6px 14px rgba(26, 58, 82, 0.25);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
}

.value-card p {
    color: var(--neutral-light);
    line-height: 1.7;
}

/* ===================================
   SERVICES
   =================================== */

.services-overview {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3fa 100%);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::before {
    content: "";
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto -0.25rem;
    background-image: url('../images/precetto-logo-mark.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.95;
}

.why-precetto .section-title::before {
    background-image: url('../images/precetto-logo-mark-white.svg');
    opacity: 0.92;
}

@media (max-width: 768px) {
    .section-title { font-size: 2.25rem; }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--primary-dark) 50%, var(--accent-blue) 100%);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    padding: var(--spacing-lg);
    border: 1px solid rgba(45, 95, 127, 0.18);
    border-top: 6px solid var(--vibrant-blue);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.08);
}

.service-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    border-top-color: var(--primary-dark);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
    transform: translateY(-4px);
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.service-card p {
    color: var(--neutral-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.service-link {
    display: inline-block;
    color: var(--secondary-blue);
    font-weight: 600;
    margin-top: var(--spacing-xs);
}

.service-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.service-link:hover {
    color: var(--neutral-light);
}

/* ===================================
   WHY PRECETTO
   =================================== */

.why-precetto {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-blue) 100%);
    color: var(--white);
}

.why-precetto .section-title {
    color: var(--white);
}

.why-precetto .section-title::after {
    background: linear-gradient(90deg, var(--accent-blue) 0%, #ffffff 50%, var(--accent-blue) 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.why-item {
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    border-left: 5px solid var(--accent-blue);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: var(--transition);
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.why-item h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.why-item p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-blue) 50%, var(--accent-blue) 100%);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

/* ===================================
   PAGE HEADER
   =================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-blue) 60%, var(--accent-blue) 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.page-header .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   ABOUT PAGE - OUR STORY
   =================================== */

.our-story {
    background: linear-gradient(135deg, var(--warm-beige) 0%, var(--warm-bg) 100%);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--soft-taupe) 0%, var(--warm-beige) 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(139, 125, 107, 0.3);
    box-shadow: 0 4px 12px rgba(74, 66, 56, 0.1);
}

.story-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--neutral-dark);
    margin-bottom: var(--spacing-md);
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* ===================================
   ABOUT PAGE - TEAM
   =================================== */

.team-section {
    background: linear-gradient(135deg, var(--warm-bg) 0%, var(--light-bg) 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.team-member {
    background: linear-gradient(to bottom, var(--white) 0%, var(--warm-beige) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(74, 66, 56, 0.15);
    border: 2px solid rgba(139, 125, 107, 0.25);
}

.team-photo {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--soft-taupe) 0%, var(--warm-beige) 100%);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
}

.team-info {
    padding: var(--spacing-lg);
}

.team-info h3 {
    font-size: 1.75rem;
    color: var(--neutral-dark);
    margin-bottom: var(--spacing-xs);
}

.team-title {
    font-size: 1.125rem;
    color: var(--neutral-light);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.team-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--neutral-light);
    margin-bottom: var(--spacing-md);
}

.team-expertise {
    margin: var(--spacing-md) 0;
    background: linear-gradient(135deg, var(--soft-taupe) 0%, var(--warm-beige) 100%);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--neutral-dark);
}

.team-expertise h4 {
    font-size: 1rem;
    color: var(--neutral-dark);
    margin-bottom: var(--spacing-sm);
}

.team-expertise ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
}

.team-expertise li {
    padding: var(--spacing-xs) 0;
    color: var(--neutral-dark);
    position: relative;
    padding-left: 1.25rem;
}

.team-expertise li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--neutral-light);
    font-weight: bold;
}

.team-social {
    margin-top: var(--spacing-md);
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--neutral-dark);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 2px solid var(--neutral-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    background-color: var(--soft-taupe);
}

.linkedin-link:hover {
    background: linear-gradient(135deg, var(--neutral-light) 0%, var(--neutral-dark) 100%);
    color: var(--white);
    border-color: var(--neutral-dark);
}

/* ===================================
   CERTIFICATIONS
   =================================== */

.certifications {
    background: linear-gradient(135deg, var(--warm-bg) 0%, var(--warm-beige) 100%);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.cert-item {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--soft-taupe);
    border-radius: var(--radius-md);
    border: 1px solid rgba(139, 125, 107, 0.3);
}

.cert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--secondary-blue) 60%, var(--primary-dark) 100%);
    border-radius: 50%;
    color: var(--white);
    box-shadow: 0 6px 14px rgba(26, 58, 82, 0.25);
}

.cert-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--neutral-dark);
}

.cert-item p {
    color: var(--neutral-light);
}

/* ===================================
   SERVICES PAGE
   =================================== */

.service-detail {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid rgba(45, 95, 127, 0.12);
    background: var(--white);
}

.service-detail:nth-child(even) {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3fa 100%);
}

.service-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.service-detail .service-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--secondary-blue) 60%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    color: var(--white);
    box-shadow: 0 6px 14px rgba(26, 58, 82, 0.25);
}

.service-header h2 {
    margin-bottom: 0;
}

.service-content {
    max-width: 900px;
}

.service-intro {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.service-content h3 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--vibrant-blue);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.service-list {
    list-style: none;
    background: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(45, 95, 127, 0.1);
    border-left: 5px solid var(--vibrant-blue);
    box-shadow: 0 4px 14px rgba(26, 58, 82, 0.08);
}

.service-list li {
    padding: var(--spacing-sm) 0;
    padding-left: 2.25rem;
    position: relative;
    line-height: 1.65;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(45, 95, 127, 0.08);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563eb'><path fill-rule='evenodd' d='M16.704 5.29a1 1 0 010 1.42l-7.999 7.997a1 1 0 01-1.414 0l-3.999-4a1 1 0 111.414-1.414l3.292 3.293 7.292-7.296a1 1 0 011.414 0z' clip-rule='evenodd'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
}

.service-list strong {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ===================================
   CONTACT PAGE
   =================================== */

.contact-section {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3fa 100%);
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.contact-intro p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--neutral-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.contact-form-wrapper h2,
.contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: var(--spacing-xs);
}

.required {
    color: var(--neutral-light);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid rgba(139, 125, 107, 0.2);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--warm-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neutral-light);
    box-shadow: 0 0 0 3px rgba(139, 125, 107, 0.1);
    background-color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-message {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-info {
    background: linear-gradient(135deg, var(--warm-bg) 0%, var(--light-bg) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 125, 107, 0.2);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--secondary-blue) 60%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(26, 58, 82, 0.25);
}

.contact-item h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--neutral-dark);
}

.contact-item p {
    color: var(--neutral-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.contact-item a {
    color: var(--neutral-dark);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--neutral-light);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: linear-gradient(135deg, var(--neutral-dark) 0%, var(--primary-dark) 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 380px;
}

.footer-links {
    display: flex;
    gap: var(--spacing-xl);
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-column a:hover {
    color: #d4c4af;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(139, 125, 107, 0.3);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 968px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: var(--spacing-md) 0;
        gap: var(--spacing-sm);
    }

    .nav-menu.active {
        left: 0;
    }

    .service-header {
        flex-direction: column;
        text-align: center;
    }

    .team-expertise ul {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    section {
        padding: var(--spacing-md) 0;
    }

    .hero {
        padding: var(--spacing-md) 0 var(--spacing-lg);
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .value-grid,
    .services-grid,
    .why-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

/* Focus visible styles */
*:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   SERVICES ACCORDION
   =================================== */

.page-header-compact {
    padding: var(--spacing-md) 0;
}

.page-header-compact h1 {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
}

.page-header-compact .lead {
    font-size: 1.0625rem;
}

.services-accordion-section {
    padding: var(--spacing-md) 0 var(--spacing-lg);
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3fa 100%);
}

.services-accordion-section .container {
    max-width: 880px;
}

.service-accordion {
    background: var(--white);
    border: 1px solid rgba(45, 95, 127, 0.12);
    border-left: 5px solid var(--vibrant-blue);
    border-radius: var(--radius-md);
    margin-bottom: 0.625rem;
    box-shadow: 0 2px 6px rgba(26, 58, 82, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.service-accordion:hover {
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.service-accordion[open] {
    box-shadow: 0 8px 22px rgba(26, 58, 82, 0.14);
    border-left-color: var(--primary-dark);
}

.service-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 0.15s ease;
}

.service-summary:hover {
    background-color: rgba(37, 99, 235, 0.04);
}

.service-summary::-webkit-details-marker,
.service-summary::marker {
    display: none;
}

.service-summary .service-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--secondary-blue) 60%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(26, 58, 82, 0.25);
}

.service-summary h2 {
    flex: 1;
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary-dark);
}

.service-chevron {
    flex-shrink: 0;
    color: var(--vibrant-blue);
    transition: transform 0.25s ease;
}

.service-accordion[open] .service-chevron {
    transform: rotate(180deg);
}

.service-body {
    padding: 0 1.25rem 1.125rem 5.25rem;
    border-top: 1px solid rgba(45, 95, 127, 0.08);
    margin-top: 0;
}

.service-body .service-intro {
    margin-top: 0.875rem;
    margin-bottom: 0.875rem;
    font-size: 1rem;
    line-height: 1.65;
}

.service-body h3 {
    margin-top: 0.875rem;
    margin-bottom: 0.625rem;
}

.service-body .service-list {
    padding: 0.5rem 1rem;
}

@media (max-width: 600px) {
    .service-summary { padding: 0.75rem 1rem; gap: 0.75rem; }
    .service-summary .service-icon { width: 44px; height: 44px; }
    .service-summary h2 { font-size: 1.125rem; }
    .service-body { padding: 0 1rem 1rem 1rem; }
}

/* ===================================
   SCROLL-IN ANIMATIONS (additive only — content is visible by default)
   =================================== */

.animate-on-scroll {
    opacity: 0.001;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* If JS doesn't run, .animate-on-scroll class is never added — cards stay fully visible. */

/* ===================================
   CONTACT EMAIL CTA
   =================================== */

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    margin: var(--spacing-md) 0 var(--spacing-lg);
}

.email-prompt {
    font-weight: 600;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--neutral-dark);
}

.email-prompt-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--neutral-dark);
}

.email-prompt-list li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ===================================
   NAV BRAND LOGO
   =================================== */

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
}

.nav-brand img {
    height: 84px;
    width: auto;
    display: block;
}

.nav-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 2.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .nav-brand img {
        height: 60px;
    }

    .nav-brand .brand-text {
        font-size: 1.625rem;
    }
}

@media (max-width: 480px) {
    .nav-brand img {
        height: 52px;
    }

    .nav-brand .brand-text {
        font-size: 1.375rem;
    }
}

/* ===================================
   FOOTER BRAND
   =================================== */

.footer-brand-mark {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.footer-brand-mark img {
    height: 84px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-brand-mark .brand-text {
    font-family: var(--font-heading);
    font-size: 2.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
}
