/* ==========================================
   CATEM — C.A. Técnica Electromecánica
   Main Stylesheet
   ========================================== */

:root {
  --black: #1A1A1A;
  --black-deep: #0D0D0D;
  --red: #C82333;
  --red-dark: #A51C2B;
  --red-bright: #E63946;
  --white: #FFFFFF;
  --off-white: #F7F7F7;
  --gray-100: #ECECEC;
  --gray-200: #D1D1D1;
  --gray-400: #777777;
  --gray-600: #555555;
  --gray-800: #333333;
  --text-dark: #1A1A1A;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 160px; }
@media (max-width: 768px) { html { scroll-padding-top: 120px; } }
body { font-family: 'DM Sans', -apple-system, sans-serif; color: var(--text-dark); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* === TOP BAR === */
.top-bar { background: var(--black-deep); padding: 7px 0; font-size: 0.78rem; color: var(--gray-200); position: fixed; top: 0; left: 0; right: 0; z-index: 101; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.lang-switch { display: flex; gap: 4px; }
.lang-btn { background: none; border: 1px solid rgba(255,255,255,0.25); color: var(--gray-200); padding: 3px 12px; font-size: 0.72rem; cursor: pointer; font-family: inherit; border-radius: 3px; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px; }
.lang-btn:hover, .lang-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* === ANNIVERSARY BANNER === */
.anniversary-banner { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); padding: 6px 0; text-align: center; position: fixed; top: 34px; left: 0; right: 0; z-index: 101; }
.anniversary-text { font-size: 0.72rem; font-weight: 700; color: var(--white); letter-spacing: 2px; text-transform: uppercase; }

/* === HEADER === */
.header { background: var(--white); position: fixed; top: 64px; left: 0; right: 0; z-index: 100; box-shadow: 0 1px 12px rgba(0,0,0,0.08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-icon-wrap { height: 72px; overflow: hidden; flex-shrink: 0; }
.logo-img { height: 90px; width: auto; display: block; }
.logo-icon { width: 44px; height: 44px; background: var(--black); border-radius: 6px; display: flex; align-items: center; justify-content: center; position: relative; }
.logo-icon::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: var(--red); border-radius: 0 0 6px 6px; }
.logo-icon span { color: var(--white); font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .name { font-size: 1.05rem; font-weight: 700; color: var(--black); letter-spacing: 1.5px; line-height: 1.2; }
.logo-text .subtitle { font-size: 0.72rem; color: var(--gray-600); letter-spacing: 1px; margin-top: 4px; font-weight: 500; }
nav { display: flex; align-items: center; }
nav a { text-decoration: none; color: var(--gray-800); font-size: 0.88rem; font-weight: 500; padding: 22px 20px; position: relative; transition: var(--transition); }
nav a::after { content: ''; position: absolute; bottom: 0; left: 20px; right: 20px; height: 3px; background: var(--red); transform: scaleX(0); transition: var(--transition); border-radius: 3px 3px 0 0; }
nav a:hover { color: var(--red); }
nav a:hover::after, nav a.active::after { transform: scaleX(1); }
nav a.active { color: var(--red); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { width: 26px; height: 2.5px; background: var(--black); border-radius: 2px; }

/* === CONTAINER === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* === HERO === */
.hero { position: relative; height: 82vh; min-height: 520px; max-height: 780px; overflow: hidden; background: var(--black-deep); margin-top: 144px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,13,13,0.8) 0%, rgba(200,35,51,0.15) 100%); }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 0 70px; z-index: 5; }
.hero-tag { display: inline-block; background: var(--red); color: var(--white); font-size: 0.7rem; font-weight: 700; padding: 5px 14px; border-radius: 3px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 4.5vw, 3.4rem); color: var(--white); line-height: 1.15; max-width: 680px; margin-bottom: 14px; }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.02rem; max-width: 520px; line-height: 1.65; margin-bottom: 26px; }
.hero-buttons { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: var(--white); padding: 13px 28px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.hero-cta:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(200,35,51,0.35); }
.hero-cta svg { width: 18px; height: 18px; }

/* Hero secondary CTA (brochure) */
.hero-cta-secondary { display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--white); padding: 12px 24px; border-radius: 4px; border: 2px solid rgba(255,255,255,0.4); font-weight: 600; font-size: 0.88rem; cursor: pointer; font-family: inherit; transition: var(--transition); }
.hero-cta-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.hero-cta-secondary svg { width: 18px; height: 18px; }

/* Brochure dropdown (shared) */
.brochure-dropdown { position: relative; display: inline-block; }
.brochure-options {
  position: absolute; bottom: calc(100% + 10px); left: 0;
  background: var(--white); border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  min-width: 180px; overflow: hidden; z-index: 20;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.brochure-options.show { opacity: 1; visibility: visible; transform: translateY(0); }
.brochure-options a {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  color: var(--black); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  transition: background 0.2s ease;
}
.brochure-options a:hover { background: var(--off-white); }
.brochure-options a + a { border-top: 1px solid var(--gray-100); }
.br-flag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 20px; border-radius: 3px;
  background: var(--red); color: var(--white);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.5px;
}

/* About section brochure button */
.about-brochure { margin-top: 24px; }
.about-brochure-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--black); color: var(--white);
  padding: 13px 28px; border-radius: 4px; border: none;
  font-weight: 600; font-size: 0.88rem; cursor: pointer; font-family: inherit;
  transition: var(--transition);
}
.about-brochure-btn:hover { background: var(--red); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(200,35,51,0.3); }
.about-brochure-btn svg { width: 18px; height: 18px; }
.about-brochure .brochure-options { bottom: auto; top: calc(100% + 10px); }

.hero-dots { position: absolute; bottom: 28px; right: 50px; display: flex; gap: 10px; z-index: 5; }
.hero-dots button { width: 38px; height: 4px; border: none; background: rgba(255,255,255,0.3); cursor: pointer; border-radius: 2px; transition: var(--transition); padding: 0; }
.hero-dots button.active { background: var(--red); width: 52px; }

/* === STATS === */
.stats-bar { background: var(--black); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 30px; text-align: center; border-right: 1px solid rgba(255,255,255,0.07); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--red); font-weight: 700; line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: 0.76rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1.2px; }

/* === SECTIONS === */
.section { padding: 85px 0; }
.section-light { background: var(--white); }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--black); color: var(--white); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .overline { display: inline-block; font-size: 0.72rem; color: var(--red); text-transform: uppercase; letter-spacing: 2.5px; font-weight: 600; margin-bottom: 10px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--black); line-height: 1.2; margin-bottom: 12px; }
.section-dark .section-header h2 { color: var(--white); }
.section-header p { color: var(--gray-600); max-width: 580px; margin: 0 auto; font-size: 0.95rem; line-height: 1.7; }
.section-dark .section-header p { color: rgba(255,255,255,0.6); }
.red-line { width: 50px; height: 3px; background: var(--red); margin: 0 auto 16px; border-radius: 2px; }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center; }
.about-image { position: relative; border-radius: 8px; overflow: hidden; }
.about-image img { width: 100%; height: 380px; object-fit: cover; display: block; }
.year-badge { position: absolute; bottom: 20px; right: 20px; background: var(--red); color: var(--white); padding: 14px 20px; border-radius: 6px; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,0.3); }
.year-badge .num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.year-badge .lbl { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.about-text .overline { display: inline-block; font-size: 0.72rem; color: var(--red); text-transform: uppercase; letter-spacing: 2.5px; font-weight: 600; margin-bottom: 10px; }
.about-text h3 { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--black); margin-bottom: 16px; }
.about-text p { color: var(--gray-600); line-height: 1.75; margin-bottom: 14px; font-size: 0.93rem; }
.about-details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.ad-item { display: flex; gap: 10px; align-items: flex-start; }
.ad-icon { width: 36px; height: 36px; min-width: 36px; background: rgba(200,35,51,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ad-icon svg { width: 16px; height: 16px; color: var(--red); }
.ad-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.7px; color: var(--gray-400); margin-bottom: 1px; }
.ad-value { font-size: 0.85rem; color: var(--text-dark); font-weight: 500; }

/* === SERVICES === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card { background: var(--white); border-radius: 8px; padding: 32px 26px; border: 1px solid var(--gray-100); position: relative; overflow: hidden; transition: var(--transition); }
.svc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: var(--transition); }
.svc-card:hover { box-shadow: 0 10px 35px rgba(0,0,0,0.07); transform: translateY(-3px); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon { width: 50px; height: 50px; background: var(--black); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.svc-icon svg { width: 24px; height: 24px; color: var(--red-bright); }
.svc-card h3 { font-size: 1.05rem; color: var(--black); margin-bottom: 10px; font-weight: 600; }
.svc-card p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.7; }

/* === PROJECTS === */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 36px; }
.proj-card { border-radius: 8px; overflow: hidden; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: var(--transition); }
.proj-card:hover { box-shadow: 0 10px 35px rgba(0,0,0,0.1); transform: translateY(-3px); }
.proj-img { height: 200px; position: relative; overflow: hidden; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.proj-card:hover .proj-img img { transform: scale(1.05); }
.proj-img .yr { position: absolute; top: 12px; right: 12px; background: var(--red); color: var(--white); padding: 3px 10px; border-radius: 3px; font-size: 0.72rem; font-weight: 700; z-index: 2; }
.proj-img .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%); }
.proj-body { padding: 22px; }
.proj-body .client { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--red); font-weight: 600; margin-bottom: 6px; }
.proj-body h3 { font-size: 0.95rem; color: var(--black); line-height: 1.35; margin-bottom: 8px; font-weight: 600; }
.proj-body p { font-size: 0.82rem; color: var(--gray-600); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.brochure-cta { text-align: center; }
.brochure-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--black); color: var(--white); padding: 14px 32px; border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 0.88rem; transition: var(--transition); }
.brochure-btn:hover { background: var(--red); transform: translateY(-2px); }
.brochure-btn svg { width: 18px; height: 18px; }

/* === CLIENTS === */
.clients-bar { padding: 40px 0; background: var(--off-white); overflow: hidden; border-top: 3px solid var(--red); }
.clients-track { display: flex; gap: 50px; animation: scroll 30s linear infinite; }
.cl-name { font-size: 0.8rem; color: var(--gray-400); font-weight: 600; white-space: nowrap; text-transform: uppercase; letter-spacing: 1px; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.contact-info h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--white); margin-bottom: 18px; }
.contact-info > p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.7; margin-bottom: 28px; }
.c-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.c-icon { width: 42px; height: 42px; min-width: 42px; background: rgba(200,35,51,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.c-icon svg { width: 18px; height: 18px; color: var(--red-bright); }
.c-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--red-bright); margin-bottom: 3px; font-weight: 600; }
.c-val { color: rgba(255,255,255,0.85); font-size: 0.88rem; line-height: 1.5; }
.c-val a { color: rgba(255,255,255,0.85); text-decoration: none; transition: var(--transition); }
.c-val a:hover { color: var(--red-bright); }
.contact-form { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 36px; }
.contact-form h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 22px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.45); margin-bottom: 5px; }
.fg input, .fg textarea, .fg select { width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 5px; padding: 11px 14px; color: var(--white); font-family: inherit; font-size: 0.88rem; transition: var(--transition); }
.fg input:focus, .fg textarea:focus, .fg select:focus { outline: none; border-color: var(--red); background: rgba(255,255,255,0.08); }
.fg textarea { height: 100px; resize: vertical; }
.fg select option { background: var(--black); }
.fg input:invalid:not(:placeholder-shown) { border-color: #e74c3c; }
.fg input:valid:not(:placeholder-shown) { border-color: rgba(74,222,128,0.5); }
.submit-btn { width: 100%; background: var(--red); color: var(--white); padding: 13px; border: none; border-radius: 5px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: inherit; }
.submit-btn:hover { background: var(--red-bright); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.office-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 24px; }
.office-card:hover { background: rgba(200,35,51,0.06); border-color: rgba(200,35,51,0.15); }
.office-card h4 { color: var(--red-bright); font-size: 0.92rem; margin-bottom: 8px; }
.office-card p { color: rgba(255,255,255,0.55); font-size: 0.8rem; line-height: 1.6; }

/* === FORM FEEDBACK === */
.form-message { padding: 14px 18px; border-radius: 6px; font-size: 0.88rem; margin-top: 14px; display: none; align-items: center; gap: 10px; }
.form-message.show { display: flex; }
.form-success { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3); color: #4ADE80; }
.form-error { background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.3); color: #e74c3c; }

/* === HONEYPOT (anti-spam) === */
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; pointer-events: none; }

/* === SEO === */
.seo-bar { background: var(--black-deep); padding: 24px 0; }
.seo-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.seo-tag { background: rgba(200,35,51,0.08); color: rgba(255,255,255,0.45); padding: 5px 14px; border-radius: 20px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.8px; border: 1px solid rgba(200,35,51,0.12); }

/* === FOOTER === */
.footer { background: #050505; padding: 45px 0 0; color: rgba(255,255,255,0.55); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 45px; padding-bottom: 35px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-col h4 { color: var(--white); font-size: 0.82rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { color: rgba(255,255,255,0.55); font-size: 0.8rem; line-height: 1.7; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.8rem; margin-bottom: 7px; transition: var(--transition); }
.footer-col a:hover { color: var(--red-bright); }
.footer-bottom { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.72rem; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-logo { height: 65px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }

/* === MOBILE === */
.mob-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; }
.mob-overlay.show { display: block; }
.mob-nav { position: fixed; top: 0; right: -300px; width: 300px; height: 100vh; background: var(--white); z-index: 201; padding: 70px 28px 28px; transition: right 0.35s ease; box-shadow: -5px 0 25px rgba(0,0,0,0.1); }
.mob-nav.open { right: 0; }
.mob-nav a { display: block; padding: 15px 0; color: var(--black); text-decoration: none; font-size: 1.05rem; font-weight: 500; border-bottom: 1px solid var(--gray-100); transition: color 0.2s ease, padding-left 0.2s ease; }
.mob-nav a:active { color: var(--red); padding-left: 8px; }
.mob-close { position: absolute; top: 18px; right: 18px; background: none; border: none; cursor: pointer; padding: 6px; }
.mob-close svg { width: 22px; height: 22px; }

/* === ACCESSIBILITY & PERFORMANCE === */
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
img[loading="lazy"] { content-visibility: auto; }

/* === ANIMATIONS === */
.fade-up { opacity: 0; transform: translateY(25px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.vis, .section-header.fade-up { opacity: 1; transform: translateY(0); }
.fade-up.vis { opacity: 1; transform: translateY(0); }

/* === PROPOSAL SECTION === */
.proposal-section {
  position: relative;
  padding: 100px 0 90px;
  background: #0A0A0F;
  overflow: hidden;
}
.proposal-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200,35,51,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(200,35,51,0.05) 0%, transparent 50%);
}
.proposal-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.proposal-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 3px;
  letter-spacing: 2.5px;
  margin-bottom: 22px;
  position: relative;
}
.proposal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}
.proposal-title span { color: var(--red); }
.proposal-subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 50px;
  position: relative;
}
.proposal-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  position: relative;
}
.proposal-details { position: relative; }
.pd-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pd-category { margin-bottom: 28px; }
.pd-cat-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pd-cat-icon {
  width: 36px; height: 36px; min-width: 36px;
  background: rgba(200,35,51,0.1);
  border: 1px solid rgba(200,35,51,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.pd-cat-icon svg { width: 18px; height: 18px; color: var(--red-bright); }
.pd-cat-header h4 { font-size: 0.95rem; color: var(--white); font-weight: 600; }
.pd-list { list-style: none; padding: 0; }
.pd-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
}
.pd-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* Pricing card */
.proposal-pricing { position: relative; }
.pricing-card {
  background: linear-gradient(165deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.pricing-header {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 36px 32px 30px;
  text-align: center;
}
.pricing-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.8); margin-bottom: 10px; }
.pricing-amount { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.pricing-amount .currency { font-size: 1.6rem; color: rgba(255,255,255,0.8); font-weight: 600; }
.pricing-amount .price { font-family: 'Playfair Display', serif; font-size: 4.5rem; font-weight: 700; color: var(--white); line-height: 1; }
.pricing-amount .usd { font-size: 0.9rem; color: rgba(255,255,255,0.7); font-weight: 500; align-self: flex-end; margin-bottom: 8px; }
.pricing-note { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin-top: 8px; }
.pricing-body { padding: 28px 32px; }
.pricing-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.pricing-item:last-child { border-bottom: none; }
.pricing-item svg { color: #4ADE80; min-width: 16px; }
.pricing-item span { font-size: 0.86rem; color: rgba(255,255,255,0.75); }
.pricing-footer { padding: 6px 32px 32px; }
.pricing-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: #25D366; color: var(--white);
  padding: 16px; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37,211,102,0.25);
}
.pricing-btn:hover { background: #22C55E; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.35); }
.pricing-disclaimer { text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 14px; }

/* Trust boxes */
.trust-box { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.trust-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 16px 18px;
}
.trust-item svg { color: var(--red-bright); margin-top: 2px; min-width: 20px; }
.trust-item strong { color: rgba(255,255,255,0.85); font-size: 0.82rem; }
.trust-item div { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.5; }

/* === FLOATING PROPOSAL BUTTON === */
.float-proposal {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.float-proposal.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.float-proposal a {
  display: flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  padding: 14px 22px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.82rem;
  box-shadow: 0 6px 25px rgba(200,35,51,0.4);
  transition: var(--transition); letter-spacing: 0.3px;
}
.float-proposal a:hover { background: var(--red-bright); transform: translateY(-3px); box-shadow: 0 10px 35px rgba(200,35,51,0.5); }
.float-proposal svg { width: 16px; height: 16px; }

/* === RESPONSIVE === */

/* --- Tablet --- */
@media (max-width: 1024px) {
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .proposal-content { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { gap: 35px; }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  nav { display: none; }
  .hamburger { display: flex; }

  /* Reduce top bar + anniversary + header stack on mobile */
  .top-bar { padding: 5px 0; font-size: 0.7rem; }
  .top-bar .container { flex-wrap: nowrap; }
  #topText { font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
  .anniversary-banner { padding: 4px 0; top: 30px; }
  .anniversary-text { font-size: 0.6rem; letter-spacing: 1px; }
  .header { top: 56px; }
  .header .container { height: 60px; }
  .logo-icon-wrap { height: 50px; }
  .logo-img { height: 62px; }
  .logo-text .name { font-size: 0.72rem; letter-spacing: 0.8px; }
  .logo-text .subtitle { font-size: 0.52rem; }

  /* Hero */
  .hero { height: 55vh; min-height: 380px; max-height: 520px; margin-top: 116px; }
  .hero h1 { font-size: 1.5rem; max-width: 90%; }
  .hero p { font-size: 0.88rem; max-width: 90%; margin-bottom: 20px; }
  .hero-tag { font-size: 0.62rem; padding: 4px 10px; margin-bottom: 12px; }
  .hero-cta { padding: 11px 20px; font-size: 0.82rem; }
  .hero-cta-secondary { padding: 10px 18px; font-size: 0.78rem; }
  .hero-buttons { gap: 10px; }
  .brochure-options { min-width: 160px; }
  .about-brochure-btn { padding: 11px 20px; font-size: 0.82rem; }
  .hero-content { padding: 0 0 50px; }
  .hero-dots { right: 16px; bottom: 18px; gap: 6px; }
  .hero-dots button { width: 28px; height: 3px; }
  .hero-dots button.active { width: 40px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 20px 12px; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 0.65rem; letter-spacing: 0.8px; }

  /* Sections */
  .section { padding: 50px 0; }
  .section-header { margin-bottom: 32px; }
  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: 0.88rem; }
  .section-header .overline { font-size: 0.65rem; letter-spacing: 2px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-image img { height: 220px; border-radius: 8px; }
  .about-text h3 { font-size: 1.3rem; }
  .about-text p { font-size: 0.88rem; }
  .about-details { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ad-icon { width: 32px; height: 32px; min-width: 32px; }
  .ad-icon svg { width: 14px; height: 14px; }
  .ad-label { font-size: 0.62rem; }
  .ad-value { font-size: 0.78rem; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .svc-card { padding: 22px 18px; }
  .svc-icon { width: 42px; height: 42px; margin-bottom: 14px; }
  .svc-icon svg { width: 20px; height: 20px; }
  .svc-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
  .svc-card p { font-size: 0.82rem; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-info h3 { font-size: 1.25rem; }
  .contact-form { padding: 24px 18px; }
  .contact-form h3 { font-size: 1rem; margin-bottom: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .fg input, .fg textarea, .fg select { padding: 10px 12px; font-size: 0.85rem; }
  .fg label { font-size: 0.68rem; }
  .submit-btn { padding: 12px; font-size: 0.88rem; }

  /* Offices */
  .offices-grid { grid-template-columns: 1fr; gap: 12px; }
  .office-card { padding: 18px; }
  .office-card h4 { font-size: 0.85rem; }
  .office-card p { font-size: 0.75rem; }

  /* SEO bar */
  .seo-bar { padding: 16px 0; }
  .seo-tags { gap: 6px; }
  .seo-tag { font-size: 0.62rem; padding: 4px 10px; }

  /* Footer */
  .footer { padding: 35px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .footer-logo { height: 50px; }
  .footer-col p { font-size: 0.78rem; }
  .footer-col a { font-size: 0.78rem; }
  .footer-col h4 { font-size: 0.78rem; margin-bottom: 12px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; padding: 16px 0; }
  .footer-bottom p { font-size: 0.68rem; }

  /* Clients bar */
  .clients-bar { padding: 24px 0; }
  .cl-name { font-size: 0.7rem; }

  /* Logo */
  .logo-text .subtitle { display: none; }

  /* Proposal */
  .proposal-section { padding: 60px 0; }
  .pricing-amount .price { font-size: 3.5rem; }
  .trust-box { gap: 10px; }
}

/* --- Small Mobile (< 420px) --- */
@media (max-width: 420px) {
  .hero { height: 50vh; min-height: 340px; margin-top: 110px; }
  .hero h1 { font-size: 1.3rem; }
  .hero p { font-size: 0.82rem; line-height: 1.55; }
  .hero-cta { padding: 10px 16px; font-size: 0.78rem; }
  .stat-number { font-size: 1.5rem; }
  .stat-item { padding: 16px 8px; }
  .about-details { grid-template-columns: 1fr; }
  .about-image img { height: 180px; }
  .section-header h2 { font-size: 1.3rem; }
  .contact-form { padding: 20px 14px; }
  .c-item { gap: 10px; }
  .c-icon { width: 36px; height: 36px; min-width: 36px; }
  .c-val { font-size: 0.82rem; }
  .c-label { font-size: 0.62rem; }
}

/* === PROJECTS SHOWCASE === */
.section-showcase {
  position: relative;
  padding: 90px 0 30px;
  background: #0A0A0F;
  overflow: hidden;
}
.showcase-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(200,35,51,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(200,35,51,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.section-showcase .section-header h2 { color: var(--white); }
.section-showcase .section-header p { color: rgba(255,255,255,0.55); }

/* Showcase Gallery */
.showcase-gallery {
  position: relative;
  max-width: 1400px;
  margin: 10px auto 0;
  padding: 0 60px;
}
.sg-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 20px 10px 30px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  user-select: none;
  -webkit-user-select: none;
}
.sg-track::-webkit-scrollbar { display: none; }

/* Cards - wider, landscape-leaning proportions */
.sg-card {
  flex: 0 0 380px;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(255,255,255,0.06);
}
.sg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,35,51,0.2);
}
.sg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.sg-card:hover img { transform: scale(1.06); }

/* Gradient - lighter, only covers bottom text area */
.sg-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,15,0.92) 0%,
    rgba(10,10,15,0.6) 25%,
    rgba(10,10,15,0.08) 55%,
    transparent 100%
  );
  transition: background 0.4s ease;
}
.sg-card:hover .sg-grad {
  background: linear-gradient(
    to top,
    rgba(10,10,15,0.95) 0%,
    rgba(10,10,15,0.65) 25%,
    rgba(10,10,15,0.1) 55%,
    transparent 100%
  );
}

/* Year badge */
.sg-year {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* Card info */
.sg-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  z-index: 2;
}
.sg-client {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 8px;
}
.sg-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 14px;
}
.sg-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.sg-card:hover .sg-cta { color: var(--white); transform: translateX(4px); }
@media (hover: none) and (pointer: coarse) {
  .sg-cta { color: rgba(255,255,255,0.7); }
}

/* Navigation Arrows */
.sg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(10,10,15,0.9);
  color: var(--white);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.sg-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(200,35,51,0.35);
}
.sg-arrow svg { width: 20px; height: 20px; }
.sg-prev { left: 10px; }
.sg-next { right: 10px; }

/* Navigation Dots */
.sg-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 30px;
}
.sg-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.sg-dots button.active {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.25);
  box-shadow: 0 0 8px rgba(200,35,51,0.4);
}
.sg-dots button:hover { border-color: var(--red-bright); }

/* === PROJECT MODAL === */
.pm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.pm-overlay.active { opacity: 1; visibility: visible; }
.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(10px);
}
.pm-panel {
  position: relative;
  width: 95vw;
  max-width: 1100px;
  max-height: 92vh;
  background: #111118;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  transform: translateY(40px) scale(0.93);
  transition: transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94);
}
.pm-overlay.active .pm-panel { transform: translateY(0) scale(1); }
.pm-scroll {
  overflow-y: auto;
  max-height: 92vh;
  scrollbar-width: thin;
  scrollbar-color: var(--red) rgba(255,255,255,0.05);
}
.pm-scroll::-webkit-scrollbar { width: 6px; }
.pm-scroll::-webkit-scrollbar-track { background: transparent; }
.pm-scroll::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* Modal Close */
.pm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  color: var(--white);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.pm-close:hover { background: var(--red); transform: rotate(90deg); }
.pm-close svg { width: 18px; height: 18px; }

/* Modal Nav */
.pm-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.6);
  color: var(--white);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}
.pm-nav:hover { background: var(--red); border-color: var(--red); box-shadow: 0 4px 15px rgba(200,35,51,0.4); }
.pm-nav svg { width: 20px; height: 20px; }
.pm-prev-btn { left: -23px; }
.pm-next-btn { right: -23px; }

/* Modal Hero */
.pm-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
}
.pm-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #111118 0%, rgba(17,17,24,0.65) 40%, rgba(17,17,24,0.25) 100%);
}
.pm-hero-info {
  position: absolute;
  bottom: 28px;
  left: 36px;
  right: 36px;
  z-index: 2;
}
.pm-year-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 5px 16px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(200,35,51,0.4);
}
.pm-hero-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}
.pm-client-badge {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* Modal Body */
.pm-body { padding: 0 36px 40px; }
.pm-meta-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 30px;
}
.pm-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red-bright);
  font-weight: 700;
  margin-bottom: 5px;
}
.pm-val {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  line-height: 1.4;
}

/* Content Grid */
.pm-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
}
.pm-scope-col h4,
.pm-gallery-col h4 {
  font-size: 0.92rem;
  color: var(--white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.pm-scope-col ul {
  list-style: none;
  padding: 0;
}
.pm-scope-col ul li {
  position: relative;
  padding: 8px 0 8px 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pm-scope-col ul li:last-child { border-bottom: none; }
.pm-scope-col ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}
/* Limit scope list height with scroll */
.pm-scope-col ul {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red) rgba(255,255,255,0.05);
}
.pm-scope-col ul::-webkit-scrollbar { width: 4px; }
.pm-scope-col ul::-webkit-scrollbar-track { background: transparent; }
.pm-scope-col ul::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* Gallery */
.pm-gal-main {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #0A0A0F;
}
.pm-gal-main img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
  background: #0A0A0F;
}
.pg-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.75);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.pg-arr:hover { background: var(--red); }
.pg-arr svg { width: 16px; height: 16px; }
.pg-prev { left: 10px; }
.pg-next { right: 10px; }
.pg-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0,0,0,0.75);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Thumbnails */
.pm-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,35,51,0.3) transparent;
}
.pm-thumbs::-webkit-scrollbar { height: 4px; }
.pm-thumbs::-webkit-scrollbar-thumb { background: rgba(200,35,51,0.3); border-radius: 2px; }
.pm-thumb {
  flex: 0 0 74px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  padding: 0;
  background: none;
  opacity: 0.5;
}
.pm-thumb.active { border-color: var(--red); opacity: 1; }
.pm-thumb:hover { border-color: rgba(200,35,51,0.5); opacity: 0.8; }
.pm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === SHOWCASE & MODAL RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
  .sg-card { flex: 0 0 320px; height: 420px; }
  .showcase-gallery { padding: 0 40px; }
  .pm-content-grid { grid-template-columns: 1fr; }
  .pm-prev-btn { left: 8px; }
  .pm-next-btn { right: 8px; }
}

/* Mobile */
@media (max-width: 768px) {
  /* ---- SHOWCASE CARDS ---- */
  .section-showcase { padding: 50px 0 10px; }
  .showcase-gallery { padding: 0; }
  .sg-track {
    padding: 10px 16px 20px;
    gap: 14px;
    -webkit-overflow-scrolling: touch;
  }
  .sg-card {
    flex: 0 0 80vw;
    height: auto;
    aspect-ratio: 3/4;
    border-radius: 10px;
  }
  .sg-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .sg-arrow { display: none; }
  .sg-info { padding: 20px 16px; }
  .sg-info h3 { font-size: 0.95rem; margin-bottom: 10px; line-height: 1.3; }
  .sg-client { font-size: 0.6rem; letter-spacing: 1.2px; margin-bottom: 6px; }
  .sg-year { font-size: 0.65rem; padding: 4px 10px; top: 12px; right: 12px; }
  .sg-dots { padding: 5px 0 24px; }

  /* ---- PROJECT MODAL ---- */
  .pm-overlay { align-items: stretch; }
  .pm-panel {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  .pm-scroll {
    max-height: 100vh;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain; /* prevents scroll chaining to body */
  }
  .pm-hero { height: 200px; min-height: 200px; }
  .pm-hero-info { left: 16px; right: 16px; bottom: 16px; }
  .pm-hero-info h2 { font-size: 1.1rem; line-height: 1.25; }
  .pm-year-badge { font-size: 0.62rem; padding: 4px 12px; margin-bottom: 8px; }
  .pm-client-badge { font-size: 0.62rem; letter-spacing: 1.5px; }
  .pm-close { top: 10px; right: 10px; width: 38px; height: 38px; }
  .pm-close svg { width: 16px; height: 16px; }
  .pm-nav { display: none; }

  /* Modal body */
  .pm-body { padding: 0 16px 30px; }
  .pm-meta-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 16px 0;
    margin-bottom: 20px;
  }
  .pm-label { font-size: 0.55rem; letter-spacing: 1.5px; margin-bottom: 3px; }
  .pm-val { font-size: 0.75rem; word-break: break-word; }

  /* Content grid - gallery FIRST on mobile, then scope */
  .pm-content-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .pm-gallery-col { order: 1; }
  .pm-scope-col { order: 2; }

  /* Scope */
  .pm-scope-col h4 { font-size: 0.82rem; margin-bottom: 12px; padding-bottom: 8px; }
  .pm-scope-col ul { max-height: none; overflow-y: visible; } /* no scroll limit on mobile */
  .pm-scope-col ul li { font-size: 0.8rem; padding: 7px 0 7px 18px; line-height: 1.5; }
  .pm-scope-col ul li::before { width: 5px; height: 5px; top: 14px; }

  /* Gallery - FULL images, no cropping */
  .pm-gallery-col h4 { font-size: 0.82rem; margin-bottom: 12px; padding-bottom: 8px; }
  .pm-gal-main {
    border-radius: 8px;
    aspect-ratio: auto;
    background: #0A0A0F;
  }
  .pm-gal-main img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    display: block;
  }
  .pg-arr { width: 32px; height: 32px; }
  .pg-arr svg { width: 14px; height: 14px; }
  .pg-counter { font-size: 0.62rem; padding: 3px 10px; }

  /* Thumbnails */
  .pm-thumbs { gap: 6px; }
  .pm-thumb { flex: 0 0 56px; height: 42px; border-radius: 4px; }
}

/* Small Mobile */
@media (max-width: 420px) {
  .sg-card {
    flex: 0 0 84vw;
    aspect-ratio: 3/4;
  }
  .sg-info h3 { font-size: 0.88rem; }
  .sg-info { padding: 16px 14px; }
  .sg-client { font-size: 0.55rem; }

  .pm-hero { height: 170px; min-height: 170px; }
  .pm-hero-info h2 { font-size: 0.95rem; }
  .pm-meta-bar { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .pm-label { font-size: 0.5rem; }
  .pm-val { font-size: 0.7rem; }
  .pm-gal-main img { max-height: 220px; }
  .pm-scope-col ul li { font-size: 0.78rem; }
  .pm-body { padding: 0 14px 24px; }
}
