/* ========================================
   Make it Happen Concrete Work — Styles
   Palette: Midnight Blue (#0B1D3A) + Mint (#7FB8A8)
   Fonts: Playfair Display + Lato
======================================== */

/* ---- Custom Properties ---- */
:root {
    --midnight-900: #0B1D3A;
    --midnight-950: #060F1F;
    --mint-400: #A8D4C4;
    --mint-500: #7FB8A8;
    --mint-600: #5A9E8E;
    --mint-100: #E8F4F0;
    --stone-50: #FAFAF8;
    --stone-100: #F5F5F4;
    --stone-200: #E7E5E4;
    --stone-500: #78716C;
    --stone-600: #57534E;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
}

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--midnight-900);
    background-color: var(--stone-50);
    overflow-x: hidden;
}

.font-playfair {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-lato {
    font-family: 'Lato', sans-serif;
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.35s; }
    .reveal:nth-child(6) { transition-delay: 0.4s; }
}

/* ---- Header ---- */
.site-header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(11, 29, 58, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, #0B1D3A 0%, #060F1F 100%);
    position: relative;
}

.hero-bg {
    background-image: url('https://images.pexels.com/photos/1249611/pexels-photo-1249611.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(6, 15, 31, 0.88) 0%,
        rgba(11, 29, 58, 0.82) 50%,
        rgba(6, 15, 31, 0.88) 100%
    );
}

.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237FB8A8' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Hero entrance animations */
@media (prefers-reduced-motion: no-preference) {
    .hero-badge {
        animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    }
    .hero-title {
        animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
    }
    .hero-subtitle {
        animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
    }
    .hero-ctas {
        animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
    }
    .hero-stats {
        animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
    }
    .hero-scroll {
        animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.2s both;
    }
}

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

.hero-scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ---- Buttons ---- */
.cta-primary {
    box-shadow: 0 4px 20px rgba(127, 184, 168, 0.3);
}

.cta-primary:hover {
    box-shadow: 0 8px 30px rgba(127, 184, 168, 0.4);
}

.cta-secondary {
    backdrop-filter: blur(8px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--mint-500) 0%, var(--mint-600) 100%);
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 15px rgba(127, 184, 168, 0.3);
    border: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(127, 184, 168, 0.4);
    background: linear-gradient(135deg, var(--mint-400) 0%, var(--mint-500) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--midnight-900);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    border: 2px solid var(--midnight-900);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    background: transparent;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--midnight-900);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 29, 58, 0.25);
}

/* ---- Section Styles ---- */
.section-label {
    letter-spacing: 0.25em;
}

.section-title {
    letter-spacing: -0.02em;
}

.section-desc {
    line-height: 1.75;
}

.about-divider {
    transition: width 0.3s ease;
}

/* ---- Service Cards ---- */
.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--stone-200);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mint-400), var(--mint-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(11, 29, 58, 0.1);
    border-color: var(--mint-200);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrap {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-wrap {
    transform: scale(1.05);
}

.service-link {
    text-decoration: none;
}

/* ---- Gallery ---- */
.gallery-item {
    position: relative;
}

.gallery-img-wrap {
    position: relative;
}

/* ---- Testimonials ---- */
.testimonial-card {
    transition: all 0.3s ease;
}

/* ---- Contact Form ---- */
.form-label {
    letter-spacing: 0.02em;
}

.form-input {
    background: white;
}

.form-input:focus {
    border-color: var(--mint-400);
    box-shadow: 0 0 0 4px rgba(127, 184, 168, 0.1);
}

.form-input::placeholder {
    color: #CBD5E1;
}

.form-success {
    animation: successFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ---- Footer ---- */
.footer-social-icon {
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    transform: translateY(-2px);
}

/* ---- Mobile Menu ---- */
#mobile-menu.open {
    max-height: 500px;
}

#mobile-menu.closed {
    max-height: 0;
}

#line1.active {
    transform: rotate(45deg) translate(5px, 5px);
}

#line2.active {
    opacity: 0;
}

#line3.active {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 5rem;
}

/* ---- Mobile Menu Links ---- */
.mobile-nav-link {
    text-decoration: none;
}

/* ---- Decorative Patterns ---- */
.about-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230B1D3A' fill-opacity='0.08'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.gallery-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%237FB8A8' fill-opacity='0.3' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230B1D3A' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .about-img-secondary {
        display: none;
    }
    
    .about-badge {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Focus styles ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--mint-400);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* ---- Print ---- */
@media print {
    .site-header,
    .hero-scroll,
    .cta-pattern,
    .hero-pattern {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
