/* ============================================
   MAL BROTHERS - Inspired by One United Properties
   Clean, minimal, deep purple-navy + green accent
   ============================================ */

:root {
    --primary: #2A274E;
    --primary-dark: #1a1836;
    --primary-deeper: #000633;
    --accent: #00E676;
    --accent-hover: #00c964;
    --text: #2A274E;
    --text-light: #5c5a78;
    --text-muted: #8886a0;
    --light-bg: #EEF0F2;
    --warm-bg: #FAF9F5;
    --white: #ffffff;
    --border: #e0dfe6;
    --font: 'Outfit', 'Century Gothic', CenturyGothic, -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --section-py: clamp(64px, 8vw, 120px);
    --container: 1280px;
    --px: clamp(20px, 4vw, 60px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); font-weight: 300; color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
::selection { background: var(--accent); color: var(--primary); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--px); }

/* === Nav === */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: all 0.4s ease; }
.nav.scrolled { padding: 10px 0; background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--border); }
.nav.scrolled .nav-logo, .nav.scrolled .nav-link, .nav.scrolled .nav-phone { color: var(--text); }
.nav.scrolled .nav-hamburger span { background: var(--text); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--px); display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); transition: color 0.3s ease; }
.nav-links { display: flex; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.8); transition: color 0.3s ease; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s ease; }
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.nav.scrolled .nav-link:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.8); }
.nav-phone:hover { color: var(--accent); }
.nav-cta { display: inline-block; padding: 10px 24px; background: var(--accent); color: var(--primary); font-size: 14px; font-weight: 500; border-radius: 4px; transition: all 0.3s ease; }
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.nav-hamburger { display: none; flex-direction: column; gap: 7px; padding: 8px; z-index: 1001; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--white); transition: all 0.3s ease; border-radius: 1px; }
.nav-hamburger.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.nav-hamburger.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

/* Mobile Menu */
.mobile-menu { position: fixed; inset: 0; z-index: 999; background: var(--primary); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-inner { text-align: center; }
.mobile-menu-link { display: block; font-size: clamp(28px, 5vw, 48px); font-weight: 300; color: var(--white); padding: 10px 0; transform: translateY(20px); opacity: 0; transition: all 0.4s var(--ease); }
.mobile-menu.active .mobile-menu-link { transform: translateY(0); opacity: 1; }
.mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu-link:hover { color: var(--accent); }
.mobile-menu-footer { margin-top: 40px; }
.mobile-menu-footer a { display: block; color: rgba(255,255,255,0.5); font-size: 15px; padding: 4px 0; }

/* === Hero === */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--primary-deeper); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,6,51,0.3) 0%, rgba(0,6,51,0.5) 40%, rgba(0,6,51,0.88) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 0 48px; }
.hero-title { font-size: clamp(36px, 6vw, 76px); font-weight: 300; line-height: 1.12; color: var(--white); margin-bottom: 20px; letter-spacing: -0.02em; }
.text-accent { color: var(--accent); }
.hero-subtitle { font-size: clamp(15px, 1.5vw, 19px); font-weight: 300; color: rgba(255,255,255,0.65); margin-bottom: 32px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero Stats Bar */
.hero-stats { position: relative; z-index: 2; background: rgba(42,39,78,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,0.08); }
.stats-row { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.stat-item { text-align: center; flex: 1; }
.stat-number { font-size: clamp(28px, 4vw, 48px); font-weight: 300; color: var(--white); line-height: 1; }
.stat-suffix { font-size: clamp(14px, 1.5vw, 22px); font-weight: 300; color: var(--accent); }
.stat-label { display: block; font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.45); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); flex-shrink: 0; }

/* Buttons */
.btn { display: inline-block; font-size: 14px; font-weight: 500; padding: 13px 28px; border-radius: 4px; transition: all 0.3s ease; cursor: pointer; }
.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,230,118,0.2); }
.btn-ghost { color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-full { width: 100%; text-align: center; }

/* === Section Styles === */
.section-label { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 3.5vw, 44px); font-weight: 300; line-height: 1.2; color: var(--text); letter-spacing: -0.02em; margin-bottom: 8px; }
.section-title-light { color: var(--white); }

/* === About === */
.about { padding: var(--section-py) 0; background: var(--white); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.about-left p { font-size: 15px; color: var(--text-light); margin-bottom: 16px; line-height: 1.75; }
.text-lead { font-size: 17px; font-weight: 400; color: var(--text); line-height: 1.7; }
.inline-link { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.inline-link:hover { border-bottom-color: var(--accent); }
.link-arrow { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--accent); transition: transform 0.3s ease; }
.link-arrow:hover { transform: translateX(4px); }
.link-arrow-light { color: var(--accent); }

/* About images */
.about-image-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.about-img { border-radius: 8px; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.about-img:hover img { transform: scale(1.04); }
.about-img-main { height: 360px; }
.about-img-secondary { height: 360px; }
.about-badge { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--primary); padding: 16px 28px; border-radius: 8px; text-align: center; z-index: 2; box-shadow: 0 8px 24px rgba(0,230,118,0.2); }
.about-badge-num { display: block; font-size: 28px; font-weight: 600; line-height: 1; }
.about-badge-text { font-size: 12px; font-weight: 500; }

/* === Developments === */
.developments { padding: var(--section-py) 0; background: var(--primary); }
.dev-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.dev-header-right { max-width: 400px; font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.7; }
.dev-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dev-card { border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); transition: all 0.4s ease; }
.dev-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); transform: translateY(-4px); }
.dev-card-image { height: 220px; overflow: hidden; }
.dev-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.dev-card:hover .dev-card-image img { transform: scale(1.06); }
.dev-card-content { padding: 28px; }
.dev-card-content h3 { font-size: 20px; font-weight: 400; color: var(--white); margin-bottom: 10px; }
.dev-card-content p { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 14px; }

/* === Showcase === */
.showcase { background: var(--primary-deeper); }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.showcase-item { position: relative; height: 300px; overflow: hidden; }
.showcase-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.4s ease; filter: brightness(0.7); }
.showcase-item:hover img { transform: scale(1.06); filter: brightness(0.9); }
.showcase-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 28px; background: linear-gradient(to top, rgba(0,6,51,0.7) 0%, transparent 60%); }
.showcase-overlay span { font-size: 16px; font-weight: 400; color: var(--white); letter-spacing: 0.02em; }

/* === Values === */
.values { padding: var(--section-py) 0; background: var(--light-bg); }
.values-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.values-header-text { max-width: 380px; font-size: 15px; color: var(--text-light); line-height: 1.7; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { padding: 32px 24px; background: var(--white); border-radius: 8px; border: 1px solid var(--border); transition: all 0.4s ease; }
.value-card:hover { border-color: var(--accent); box-shadow: 0 12px 40px rgba(42,39,78,0.08); transform: translateY(-3px); }
.value-number { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 16px; padding: 5px 10px; background: rgba(0,230,118,0.08); border-radius: 4px; }
.value-card h3 { font-size: 18px; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.value-card p { font-size: 13px; font-weight: 300; color: var(--text-light); line-height: 1.7; }

/* === Process Section === */
.process-section { padding: var(--section-py) 0; background: var(--white); }
.quote-banner { background: var(--warm-bg); border-radius: 12px; padding: clamp(32px, 5vw, 56px); text-align: center; margin-bottom: 64px; border: 1px solid var(--border); }
.quote-mark { font-size: 48px; font-weight: 300; color: var(--text); line-height: 0.5; opacity: 0.5; }
.quote-banner blockquote { font-size: clamp(20px, 2.5vw, 30px); font-weight: 300; color: var(--text); line-height: 1.4; margin-bottom: 16px; }
.quote-author { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.process-header { margin-bottom: 40px; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { padding: 28px 24px; border-left: 2px solid var(--border); transition: border-color 0.3s ease; }
.process-step:hover { border-left-color: var(--accent); }
.process-step-num { font-size: 24px; font-weight: 300; color: var(--accent); margin-bottom: 12px; }
.process-step h3 { font-size: 17px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.process-step p { font-size: 13px; font-weight: 300; color: var(--text-light); line-height: 1.7; }

/* === Contact === */
.contact { padding: var(--section-py) 0; background: var(--light-bg); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
.contact-desc { font-size: 15px; font-weight: 300; color: var(--text-light); margin-top: 16px; margin-bottom: 32px; line-height: 1.75; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item-label { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.contact-item a, .contact-item span { font-size: 15px; font-weight: 400; color: var(--text); line-height: 1.5; }
.contact-item a:hover { color: var(--accent); }
.contact-map { margin-top: 28px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { display: block; filter: grayscale(0.8) contrast(1.05); transition: filter 0.4s ease; }
.contact-map:hover iframe { filter: grayscale(0) contrast(1); }

/* Form */
.contact-form { background: var(--white); padding: 36px; border-radius: 8px; border: 1px solid var(--border); }
.form-title { font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 4px; background: var(--white); color: var(--text); font-size: 14px; font-weight: 300; transition: border-color 0.3s ease; outline: none; }
.form-group select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238886a0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* === Footer === */
.footer { background: var(--primary); color: rgba(255,255,255,0.6); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo { font-size: 20px; font-weight: 600; color: var(--white); display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: rgba(255,255,255,0.4); transition: color 0.3s ease; }
.footer-social a:hover { color: var(--accent); }
.footer-col h4 { font-size: 13px; font-weight: 500; color: var(--white); margin-bottom: 16px; letter-spacing: 0.03em; }
.footer-col a, .footer-col span { display: block; font-size: 14px; font-weight: 300; margin-bottom: 8px; transition: color 0.3s ease; line-height: 1.5; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: 14px; margin-bottom: 10px; }
.footer-subscribe { display: flex; gap: 8px; }
.footer-subscribe input { flex: 1; padding: 9px 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; color: var(--white); font-size: 13px; font-family: inherit; outline: none; transition: border-color 0.3s ease; }
.footer-subscribe input:focus { border-color: var(--accent); }
.footer-subscribe input::placeholder { color: rgba(255,255,255,0.3); }
.footer-subscribe button { padding: 9px 16px; background: var(--accent); color: var(--primary); font-size: 13px; font-weight: 500; border-radius: 4px; font-family: inherit; transition: background 0.3s ease; }
.footer-subscribe button:hover { background: var(--accent-hover); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 13px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; transition: color 0.3s ease; }
.footer-bottom-links a:hover { color: var(--accent); }

/* === Animations === */
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-up.revealed { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

section[id] { scroll-margin-top: 80px; }

/* === Responsive === */
@media (max-width: 1024px) {
    .nav-links, .nav-right { display: none; }
    .nav-hamburger { display: flex; }
    .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
    .dev-categories { grid-template-columns: 1fr 1fr; }
    .dev-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .values-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .values-grid, .process-steps { grid-template-columns: repeat(2, 1fr); }
    .stats-row { flex-wrap: wrap; gap: 16px; justify-content: center; }
    .stat-divider { display: none; }
    .stat-item { flex: 0 0 calc(50% - 8px); }
    .showcase-grid { grid-template-columns: 1fr; }
    .showcase-item { height: 240px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .values-grid, .process-steps { grid-template-columns: 1fr; }
    .dev-categories { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .contact-form { padding: 24px 20px; }
    .about-image-grid { grid-template-columns: 1fr; }
    .about-img-main, .about-img-secondary { height: 240px; }
    .about-badge { bottom: -16px; }
    .stat-item { flex: 0 0 calc(50% - 8px); }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; }
}
