/* ================================================
   MARTÍNEZ CABALLERO - Landing Page Styles
   Color Palette:
   - Primary Red: #9B1B30 (burgundy/crimson)
   - Dark Red: #7A1526
   - Light Gray: #E8E8E8
   - Medium Gray: #999999
   - Dark Gray: #4A4A4A
   - White: #FFFFFF
   ================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: #4A4A4A;
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Arial Black', sans-serif;
    line-height: 1.15;
}

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

/* ---- Geometric Pattern CSS Background ---- */
.geo-pattern {
    background-color: #9B1B30;
    background-image:
        linear-gradient(45deg, rgba(0,0,0,0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.08) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0;
}

/* ---- Logo Grid Component ---- */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    width: 48px;
    height: 32px;
    flex-shrink: 0;
}

.logo-grid.large {
    width: 80px;
    height: 54px;
    gap: 5px;
}

.logo-grid.medium {
    width: 60px;
    height: 40px;
    gap: 4px;
}

.logo-grid.small {
    width: 36px;
    height: 24px;
    gap: 2px;
}

.logo-cell {
    border-radius: 1px;
}

.logo-cell.red {
    background-color: #9B1B30;
}

.logo-cell.gray {
    background-color: #999;
}

/* ---- Navigation ---- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    padding: 15px 0;
}

.main-nav.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 8px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo-img {
    height: 36px;
    width: auto;
    transition: filter 0.3s ease;
}

.main-nav:not(.scrolled) .nav-logo-img {
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-menu a {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    color: #4A4A4A;
}

.main-nav:not(.scrolled) .nav-menu a {
    color: #fff;
}

.nav-menu a:hover {
    background: #9B1B30;
    color: #fff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #4A4A4A;
    transition: all 0.3s;
    border-radius: 2px;
}

.main-nav:not(.scrolled) .nav-toggle span {
    background: #fff;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================================================
   SECTION 1: HERO / COVER
   ================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    background-color: #9B1B30;
    background-image:
        linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.1) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-logo-box {
    background: #fff;
    padding: 40px 60px;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    margin-left: 30%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-logo-img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 400;
    color: #fff;
    margin-top: 24px;
    margin-left: 30%;
    line-height: 1.4;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    margin-left: 30%;
}

.btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 32px;
    border-radius: 50px;
    transition: background 0.3s ease, border-color 0.3s ease;
    display: block;
    width: fit-content;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-decoration: none;
    line-height: 1.4;
    cursor: pointer;
}

.btn-primary {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}

.btn-primary:hover {
    background-color: rgba(255,255,255,0.25);
    border-color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.8);
}

.hero-date {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    z-index: 2;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 3px solid rgba(255,255,255,0.7);
    border-bottom: 3px solid rgba(255,255,255,0.7);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(10px); }
    60% { transform: rotate(45deg) translateY(5px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================
   SECTION 2: ABOUT
   ================================================ */
.about-top {
    background: #E8E8E8;
    padding: 80px 0 60px;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* ---- Stamp images ---- */
.stamp {
    flex-shrink: 0;
    max-width: 280px;
}

.stamp img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-stamp {
    margin-bottom: 40px;
    padding-left: 60%;
}

.contact-stamp img {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.about-text h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: #9B1B30;
    margin-bottom: 10px;
}

.about-text h2 .light {
    font-weight: 400;
}

.about-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: #4A4A4A;
    line-height: 1.4;
}

.about-bottom {
    background-color: #9B1B30;
    background-image:
        linear-gradient(45deg, rgba(0,0,0,0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.08) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0;
    padding: 60px 0;
}

.about-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-values h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
}

.values-desc {
    color: rgba(255,255,255,0.85);
    margin-top: 15px;
    font-size: 15px;
    text-align: center;
}

.about-map img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.about-departments ul {
    columns: 1;
}

.about-departments li {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    padding: 3px 0;
    padding-left: 10px;
    border-left: 3px solid rgba(255,255,255,0.3);
    margin-bottom: 4px;
}

/* ================================================
   SECTION 3: SERVICES
   ================================================ */
.services {
    background: #f5f5f5;
    padding: 80px 0;
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.service-card.reverse {
    direction: rtl;
}

.service-card.reverse > * {
    direction: ltr;
}

.service-image {
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.service-logo-small {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-text-small {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text-small strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #4A4A4A;
    letter-spacing: 1px;
}

.logo-text-small span {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    color: #999;
}

.service-text-box {
    background: #9B1B30;
    padding: 30px;
    border-radius: 4px;
    flex: 1;
}

.service-text-box h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    margin-bottom: 8px;
}

.service-text-box h3 {
    color: rgba(255,255,255,0.9);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-text-box p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.7;
}

.service-text-box .highlight {
    font-weight: 700;
    font-style: italic;
    color: #fff;
    margin-top: 12px;
}

/* Section Divider */
.section-divider {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.dot.gray {
    background: #ccc;
}

.dot.red {
    background: #9B1B30;
}

/* ================================================
   SECTION 4: STATS
   ================================================ */
.stats {
    background: #f0f0f0;
    padding: 80px 0 60px;
}

.stats-header {
    margin-bottom: 50px;
}

.stats-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #4A4A4A;
}

.stats-header h2 .light {
    font-weight: 300;
    font-style: italic;
    color: #999;
}

.stats-header h2 strong {
    color: #4A4A4A;
}

/* ---- Stats Layout ---- */
.stats-staircase {
    margin-bottom: 60px;
}

/* Top row: 3 cards aligned at same height */
.staircase-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.staircase-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Remove all staircase offsets - same height */
.staircase-step.step-1,
.staircase-step.step-2,
.staircase-step.step-3 {
    padding-top: 0;
}

/* ---- Stat Card (burgundy boxes) ---- */
.stat-card {
    background-color: #9B1B30;
    background-image:
        linear-gradient(45deg, rgba(0,0,0,0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.08) 75%);
    background-size: 30px 30px;
    background-position: 0 0, 0 15px, 15px -15px, -15px 0;
    padding: 30px 20px 25px;
    text-align: center;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    min-height: 160px;
}

.stat-card .stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

/* ---- Area block below each card ---- */
.stat-area-block {
    text-align: center;
    padding: 14px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-area {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #4A4A4A;
    display: inline-block;
}

.stat-area .unit {
    font-size: 0.65em;
    font-weight: 600;
    vertical-align: super;
    margin-left: 1px;
}

.stat-sublabel {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-top: 2px;
}

.stat-extra {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
    font-style: italic;
}

/* ---- Floating 295 badge ---- */
.stat-badge-floating {
    position: absolute;
    top: -18px;
    right: -14px;
    background: #7A1526;
    padding: 12px 16px 10px;
    border-radius: 6px;
    text-align: center;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    min-width: 110px;
}

.badge-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    display: block;
}

.badge-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 7px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 4px;
    line-height: 1.4;
}

/* ---- Timeline: hidden by default, shown on desktop ---- */
.staircase-timeline {
    display: none;
}

/* ---- Connector line from card 1 to disciplines ---- */
.staircase-step.step-1 .staircase-connector-down {
    width: 2px;
    height: 25px;
    background: #ccc;
}

/* ---- Disciplines section ---- */
.stats-disciplines-inline {
    display: none;
}

.stats-disciplines {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    margin-top: 0;
}

.disciplines-connector {
    width: 2px;
    height: 15px;
    background: #ccc;
}

.disciplines-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    margin-bottom: 12px;
    flex-shrink: 0;
}

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

.disciplines-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #4A4A4A;
    margin-bottom: 10px;
}

.disciplines-content ul {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    list-style: none;
}

.disciplines-content li {
    padding: 0;
}

/* ---- Otras Obras ---- */
.stats-other-section {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px 30px;
    align-items: start;
}

.other-works-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #4A4A4A;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 15px;
    line-height: 1.3;
}

.other-works-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #ccc;
    margin-top: 12px;
}

.stats-other-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card-other-wrap {
    text-align: center;
}

.stat-card-other {
    background-color: #9B1B30;
    background-image:
        linear-gradient(45deg, rgba(0,0,0,0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.08) 75%);
    background-size: 30px 30px;
    background-position: 0 0, 0 15px, 15px -15px, -15px 0;
    padding: 25px 16px 22px;
    text-align: center;
    border-radius: 6px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card-other .stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    display: block;
    margin-bottom: 6px;
}

.stat-card-other .stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    display: block;
    line-height: 1.4;
    letter-spacing: 1px;
}

.stat-desc-below {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.6;
    margin-top: 12px;
    padding: 0 5px;
}

/* ================================================
   SECTION HEADERS (Pages 5, 8, 10, 12)
   ================================================ */
.section-header-full {
    min-height: 70vh;
    background: #f0f0f0;
    display: flex;
    align-items: stretch;
    padding: 0;
}

.section-header-split {
    display: flex;
    width: 100%;
    min-height: 70vh;
}

.section-header-text {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: #f0f0f0;
}

.section-header-text h2 {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 3px;
}

.section-header-text h2 .light {
    font-weight: 300;
    color: #999;
}

.section-header-text h2 strong {
    color: #9B1B30;
    font-weight: 900;
}

.section-header-image {
    flex: 1;
    overflow: hidden;
}

.section-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================================
   PROJECT CARDS (Pages 6,7,9,11,13)
   ================================================ */
.projects-section {
    background: #f5f5f5;
    padding: 60px 0;
}

.project-card {
    margin-bottom: 40px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: #fff;
}

.project-card.featured {
    position: relative;
}

.project-image-wide {
    width: 100%;
    overflow: hidden;
}

.project-image-wide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image-wide img {
    transform: scale(1.03);
}

.project-info-overlay {
    background: #9B1B30;
    padding: 30px;
    color: #fff;
}

.project-info-overlay.inline {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info-overlay h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 900;
    margin-bottom: 5px;
}

.project-info-overlay h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.project-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    font-size: 14px;
}

.project-details dt {
    font-weight: 700;
    white-space: nowrap;
}

.project-details dd {
    font-weight: 400;
}

.project-info-overlay .project-details dt,
.project-info-overlay .project-details dd {
    color: rgba(255,255,255,0.9);
}

.project-info-badge .project-details dt,
.project-info-badge .project-details dd {
    color: rgba(255,255,255,0.9);
}

.projects-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.projects-duo .project-card {
    margin-bottom: 0;
}

.projects-duo .project-image {
    overflow: hidden;
    height: 250px;
}

.projects-duo .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.projects-duo .project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 900;
    color: #9B1B30;
    margin-bottom: 15px;
}

.project-info .project-details dt {
    color: #4A4A4A;
}

.project-info .project-details dd {
    color: #666;
}

/* Featured Full (Page 7 - Unidad Deportiva) */
.project-highlight {
    background: #f0f0f0;
    padding: 60px 0;
}

.featured-full {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.project-image-full {
    width: 100%;
    overflow: hidden;
}

.project-image-full img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.project-info-badge {
    background: #9B1B30;
    padding: 25px 30px;
    color: #fff;
    max-width: 400px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    border-radius: 0 4px 4px 0;
}

.project-info-badge h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

/* Horizontal project cards (Page 13) */
.project-card-horizontal {
    display: flex;
    min-height: 300px;
}

.project-card-horizontal .project-image {
    flex: 1;
    overflow: hidden;
    height: auto;
}

.project-card-horizontal .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-horizontal.reverse {
    flex-direction: row-reverse;
}

.project-images-duo {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    overflow: hidden;
}

.project-images-duo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-horizontal .project-info {
    flex: 0 0 40%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ================================================
   SECTION 14: CONTACT
   ================================================ */
.contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    background-color: #9B1B30;
    background-image:
        linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.1) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.1) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.1) 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0;
    padding: 80px 0;
}

.contact-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.contact-card {
    display: flex;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.contact-logo {
    background: #fff;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 60%;
}

.contact-logo-img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.contact-info {
    background: #7A1526;
    padding: 40px 30px;
    text-align: left;
    flex: 1;
    color: #fff;
}

.contact-heading {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2px;
}

.contact-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-info address {
    font-style: normal;
    margin-bottom: 20px;
}

.contact-info address p {
    font-size: 15px;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.9);
}

.contact-info address a {
    color: rgba(255,255,255,0.9);
    transition: color 0.3s;
}

.contact-info address a:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-web a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    display: inline-block;
    padding: 8px 0;
    border-top: 2px solid rgba(255,255,255,0.3);
    width: 100%;
}

.contact-web a:hover {
    text-decoration: underline;
}

/* ================================================
   FOOTER
   ================================================ */
.main-footer {
    background: #2a2a2a;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered animation for grid items */
.staircase-cards .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.staircase-cards .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

.stats-other-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.stats-other-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }

/* ================================================
   RESPONSIVE - TABLET (768px)
   ================================================ */
@media (max-width: 992px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: -4px 0 20px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        gap: 0;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu a,
    .main-nav:not(.scrolled) .nav-menu a {
        color: #9B1B30;
        padding: 12px 15px;
        font-size: 14px;
        display: block;
        border-bottom: 1px solid #eee;
    }

    .hero-logo-box {
        padding: 30px 40px;
        margin-left: 20%;
    }

    .hero-logo-img {
        max-width: 320px;
    }

    .hero-title {
        margin-left: 20%;
    }

    .hero-cta-group {
        margin-left: 20%;
    }

    .about-grid {
        flex-direction: column;
        text-align: center;
    }

    .about-bottom-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-values {
        order: 1;
    }

    .about-map {
        order: 2;
    }

    .about-departments {
        order: 3;
    }

    .about-departments ul {
        columns: 2;
        text-align: left;
        max-width: 400px;
        margin: 0 auto;
    }

    .service-card {
        grid-template-columns: 1fr;
    }

    .service-card.reverse {
        direction: ltr;
    }

    .service-image {
        height: 300px;
    }

    /* Stats tablet */
    .staircase-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 320px;
        margin: 0 auto;
    }

    .staircase-step.step-1 .staircase-connector-down {
        display: none;
    }

    .stat-badge-floating {
        position: relative;
        top: auto;
        right: auto;
        margin: 0 auto 10px;
        display: inline-block;
    }

    .stats-disciplines {
        display: none;
    }

    .stats-disciplines-inline {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }

    .stats-other-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .other-works-title {
        text-align: center;
    }

    .other-works-title::after {
        margin: 10px auto 0;
    }

    .section-header-split {
        flex-direction: column;
        min-height: auto;
    }

    .section-header-text {
        flex: none;
        padding: 40px 20px;
    }

    .section-header-text h2 {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .section-header-image {
        height: 400px;
    }

    .projects-duo {
        grid-template-columns: 1fr;
    }

    .project-card-horizontal {
        flex-direction: column;
    }

    .project-card-horizontal.reverse {
        flex-direction: column;
    }

    .project-card-horizontal .project-image {
        height: 300px;
    }

    .project-card-horizontal .project-info {
        flex: none;
    }

    .project-info-overlay.inline {
        flex: none;
    }

    .project-images-duo {
        height: 300px;
    }

    .contact-stamp {
        padding-left: 50%;
    }

    .contact-card {
        flex-direction: column;
    }

    .contact-logo {
        padding: 30px;
    }
}

/* ================================================
   RESPONSIVE - MOBILE (480px)
   ================================================ */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .hero-logo-box {
        padding: 25px 20px;
        margin-left: 10%;
    }

    .hero-logo-img {
        max-width: 240px;
    }

    .hero-title {
        margin-left: 10%;
    }

    .hero-cta-group {
        margin-left: 10%;
    }

    .btn {
        padding: 10px 24px;
        font-size: 12px;
    }

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .nav-logo-img {
        height: 28px;
    }

    .stamp {
        max-width: 200px;
    }

    .about-top,
    .about-bottom {
        padding: 40px 0;
    }

    .about-departments ul {
        columns: 1;
    }

    .service-content {
        padding: 20px;
    }

    .service-text-box {
        padding: 20px;
    }

    .stats-other-grid {
        grid-template-columns: 1fr;
    }

    .section-header-image {
        height: 280px;
    }

    .project-image-wide img {
        height: 250px;
    }

    .project-image-full img {
        height: 350px;
    }

    .projects-duo .project-image {
        height: 200px;
    }

    .project-details {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .project-details dt {
        white-space: normal;
        margin-top: 8px;
    }

    .project-info-badge {
        max-width: 100%;
        margin-top: 0;
        border-radius: 0;
    }

    .contact-stamp {
        padding-left: 0;
        text-align: center;
    }

    .contact-info {
        padding: 25px 20px;
    }

    .contact-stamp img {
        width: 160px;
    }
}

/* ================================================
   WHATSAPP FLOATING BUTTON
   ================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ================================================
   IMAGE PLACEHOLDERS (prevent layout shift)
   ================================================ */
.project-image,
.project-image-wide,
.project-image-full,
.section-header-image,
.service-image {
    background-color: #e0e0e0;
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
    .main-nav,
    .scroll-indicator,
    .nav-toggle,
    .whatsapp-float {
        display: none;
    }

    .section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .hero {
        min-height: auto;
        padding: 40px;
    }

    body {
        font-size: 12pt;
    }
}