/* ============================================
   PADILLA TILE — Custom Styles
   ============================================ */

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

:root {
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-100: #d1fae5;
    --green-50:  #ecfdf5;
    --neutral-900: #1a1a1a;
    --neutral-800: #2d2d2d;
    --neutral-700: #404040;
    --neutral-600: #525252;
    --neutral-500: #6b7280;
    --neutral-400: #9ca3af;
    --neutral-300: #d1d5db;
    --neutral-200: #e5e7eb;
    --neutral-100: #f3f4f6;
    --neutral-50:  #f9fafb;
    --white: #ffffff;
    --cream: #faf9f6;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--neutral-800);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.skip-link {
    position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
    background: var(--green-900); color: var(--white); padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm); z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.75rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9375rem;
    transition: all var(--transition); white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--green-700); color: var(--white);
    box-shadow: 0 2px 8px rgba(4,120,87,0.3);
}
.btn-primary:hover { background: var(--green-800); box-shadow: 0 4px 16px rgba(4,120,87,0.4); }

.btn-outline-light {
    background: transparent; color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---- Header ---- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(250,249,246,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}

.logo { display: flex; align-items: center; gap: 0.625rem; }
.logo-icon { color: var(--green-800); }
.logo-text {
    font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
    color: var(--neutral-900); letter-spacing: -0.02em;
}
.logo-light .logo-text { color: var(--white); }
.logo-light .logo-icon { color: var(--white); }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a {
    font-size: 0.9375rem; font-weight: 500; color: var(--neutral-700);
    transition: color var(--transition); position: relative;
}
.nav-menu a:not(.btn):hover { color: var(--green-700); }
.nav-menu a:not(.btn)::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
    height: 2px; background: var(--green-600); transition: width var(--transition);
}
.nav-menu a:not(.btn):hover::after { width: 100%; }

/* Nav Toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav-toggle-bar {
    display: block; width: 24px; height: 2px; background: var(--neutral-700);
    transition: all var(--transition); border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Hero ---- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    justify-content: center; overflow: hidden;
    background: linear-gradient(135deg, #064e3b 0%, #047857 30%, #059669 55%, #0d9488 80%, #0f766e 100%);
    padding: 6rem 1.5rem 4rem;
}
.hero-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(16,185,129,0.3) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(13,116,110,0.4) 0%, transparent 50%);
    pointer-events: none;
}
.hero-pattern {
    position: absolute; inset: 0; opacity: 0.4; pointer-events: none;
    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%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/svg%3E");
    background-size: 80px 80px;
}

.hero-content {
    position: relative; z-index: 1; text-align: center; max-width: 800px;
}
.hero-badge {
    display: inline-block; padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px; color: rgba(255,255,255,0.9); font-size: 0.8125rem;
    font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    margin-bottom: 1.75rem; backdrop-filter: blur(4px);
}
.hero-headline {
    font-family: var(--font-heading); font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 800; color: var(--white); line-height: 1.08;
    letter-spacing: -0.03em; margin-bottom: 1.5rem;
}
.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,0.85);
    max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats {
    display: flex; justify-content: center; gap: 0; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.15); padding-top: 2.5rem;
}
.hero-stat { text-align: center; padding: 0 2rem; }
.stat-number {
    display: block; font-family: var(--font-heading); font-size: 2rem;
    font-weight: 700; color: var(--white); line-height: 1;
}
.stat-label {
    display: block; font-size: 0.8125rem; color: rgba(255,255,255,0.65);
    margin-top: 0.375rem; font-weight: 500;
}
.hero-stat-divider {
    width: 1px; height: 48px; background: rgba(255,255,255,0.2);
}

/* ---- Section Shared ---- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-tag {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-700);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700; color: var(--neutral-900); line-height: 1.15;
    letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-subtitle { font-size: 1.0625rem; color: var(--neutral-600); line-height: 1.7; }

/* ---- Services ---- */
.services { padding: 6rem 0; background: var(--white); }
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.service-card {
    padding: 2rem; border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200); background: var(--cream);
    transition: all var(--transition);
}
.service-card:hover {
    border-color: var(--green-200, #a7f3d0);
    box-shadow: var(--shadow-md); transform: translateY(-3px);
    background: var(--white);
}
.service-icon {
    width: 52px; height: 52px; border-radius: var(--radius-md);
    background: var(--green-50); border: 1px solid var(--green-100);
    display: flex; align-items: center; justify-content: center;
    color: var(--green-700); margin-bottom: 1.25rem;
    transition: all var(--transition);
}
.service-card:hover .service-icon { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.service-title {
    font-family: var(--font-heading); font-size: 1.1875rem; font-weight: 700;
    color: var(--neutral-900); margin-bottom: 0.625rem;
}
.service-description { font-size: 0.9375rem; color: var(--neutral-600); line-height: 1.65; }

/* ---- About ---- */
.about { padding: 6rem 0; background: var(--cream); }
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-images { position: relative; }
.about-img-main {
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 420px; object-fit: cover; }
.about-img-secondary {
    position: absolute; bottom: -2rem; right: -1.5rem;
    border-radius: var(--radius-lg); overflow: hidden;
    border: 5px solid var(--cream); box-shadow: var(--shadow-lg);
}
.about-img-secondary img { width: 220px; height: 165px; object-fit: cover; }

.about-experience-badge {
    position: absolute; top: -1.25rem; left: -1rem;
    background: var(--green-800); color: var(--white);
    padding: 1.25rem 1.5rem; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); text-align: center;
}
.badge-number {
    display: block; font-family: var(--font-heading); font-size: 2rem;
    font-weight: 800; line-height: 1;
}
.badge-label { font-size: 0.75rem; font-weight: 600; opacity: 0.85; line-height: 1.3; }

.about-content .section-tag { text-align: left; }
.about-content .section-title { text-align: left; margin-bottom: 1.25rem; }
.about-text { font-size: 1rem; color: var(--neutral-600); line-height: 1.75; margin-bottom: 1rem; }
.about-features { margin-top: 2rem; display: grid; gap: 0.875rem; }
.about-feature { display: flex; align-items: center; gap: 0.75rem; }
.about-feature-icon { color: var(--green-600); flex-shrink: 0; }
.about-feature span { font-size: 0.9375rem; color: var(--neutral-700); font-weight: 500; }

/* ---- Process ---- */
.process { padding: 6rem 0; background: var(--white); }
.process-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
    position: relative;
}
.process-steps::before {
    content: ''; position: absolute; top: 36px; left: 12.5%; right: 12.5%;
    height: 2px; background: var(--neutral-200); z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; padding: 0 0.5rem; }
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--green-50); border: 2px solid var(--green-200, #a7f3d0);
    font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700;
    color: var(--green-800); margin-bottom: 1.25rem;
    transition: all var(--transition);
}
.process-step:hover .step-number { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.step-title {
    font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700;
    color: var(--neutral-900); margin-bottom: 0.5rem;
}
.step-description { font-size: 0.875rem; color: var(--neutral-600); line-height: 1.65; }

/* ---- Gallery ---- */
.gallery { padding: 6rem 0; background: var(--cream); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}
.gallery-item {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6,78,59,0.85) 0%, transparent 60%);
    display: flex; align-items: flex-end; padding: 1.5rem;
    opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-tag {
    color: var(--white); font-size: 0.875rem; font-weight: 600;
    background: rgba(255,255,255,0.15); padding: 0.375rem 0.875rem;
    border-radius: 50px; backdrop-filter: blur(4px);
}
.gallery-item--large { grid-column: span 7; }
.gallery-item--large img { height: 380px; }
.gallery-item:not(.gallery-item--large) img { height: 240px; }
.gallery-item--tall { grid-column: span 5; }
.gallery-item--tall img { height: 500px; }

/* ---- CTA Banner ---- */
.cta-banner {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 50%, #0d7377 100%);
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(16,185,129,0.2) 0%, transparent 60%);
    pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; text-align: center; max-width: 700px; margin: 0 auto; }
.cta-title {
    font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 1rem;
}
.cta-text { font-size: 1.0625rem; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Contact ---- */
.contact { padding: 6rem 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-text { font-size: 1rem; color: var(--neutral-600); line-height: 1.75; margin-bottom: 2rem; }
.contact-details { display: grid; gap: 1.5rem; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; }
.contact-detail-icon {
    width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: var(--green-50); border: 1px solid var(--green-100);
    display: flex; align-items: center; justify-content: center;
    color: var(--green-700); flex-shrink: 0;
}
.contact-detail strong {
    display: block; font-size: 0.8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--neutral-500);
    margin-bottom: 0.25rem;
}
.contact-detail p { font-size: 0.9375rem; color: var(--neutral-700); line-height: 1.6; }
.contact-detail a { color: var(--green-700); font-weight: 500; transition: color var(--transition); }
.contact-detail a:hover { color: var(--green-800); text-decoration: underline; }

/* Contact Form */
.contact-form-wrap {
    background: var(--cream); border-radius: var(--radius-lg);
    padding: 2.5rem; border: 1px solid var(--neutral-200);
}
.form-title {
    font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700;
    color: var(--neutral-900); margin-bottom: 1.75rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-size: 0.8125rem; font-weight: 600;
    color: var(--neutral-700); margin-bottom: 0.375rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--neutral-300);
    border-radius: var(--radius-sm); background: var(--white); color: var(--neutral-900);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8125rem; color: var(--neutral-500); margin-top: 0.875rem; text-align: center; }

.form-success {
    text-align: center; padding: 2rem;
}
.form-success svg { color: var(--green-600); margin: 0 auto 1rem; }
.form-success h3 {
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
    color: var(--neutral-900); margin-bottom: 0.5rem;
}
.form-success p { color: var(--neutral-600); line-height: 1.6; }

/* ---- Footer ---- */
.site-footer {
    background: var(--neutral-900); color: rgba(255,255,255,0.7); padding: 4rem 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem;
    padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { font-size: 0.9375rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-links h4, .footer-contact h4 {
    font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--white); margin-bottom: 1rem;
}
.footer-links ul { display: grid; gap: 0.625rem; }
.footer-links a { font-size: 0.9375rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: 0.9375rem; line-height: 1.75; }
.footer-contact a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 0; font-size: 0.8125rem; color: rgba(255,255,255,0.4);
    flex-wrap: wrap; gap: 0.5rem;
}

/* ---- Scroll Reveal (progressive enhancement) ---- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0; transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .reveal.revealed { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .process-steps::before { display: none; }
    .gallery-item--large { grid-column: span 12; }
    .gallery-item--large img { height: 400px; }
    .gallery-item--tall { grid-column: span 6; }
    .gallery-item--tall img { height: 300px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 72px; left: 0; right: 0;
        background: var(--cream); border-bottom: 1px solid var(--neutral-200);
        flex-direction: column; padding: 1.5rem; gap: 1rem;
        box-shadow: var(--shadow-lg); transform: translateY(-100%);
        opacity: 0; pointer-events: none;
        transition: all var(--transition);
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-menu .btn { width: 100%; justify-content: center; }

    .hero { padding: 7rem 1.5rem 4rem; min-height: auto; padding-top: 8rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .hero-stat-divider { width: 48px; height: 1px; }

    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-img-secondary { right: 0; }
    .about-img-main img { height: 320px; }

    .services-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }

    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item--large { grid-column: span 1; }
    .gallery-item--large img,
    .gallery-item--tall img { height: 280px; }
    .gallery-item--tall { grid-column: span 1; }
    .gallery-item:not(.gallery-item--large) img { height: 240px; }
    .gallery-overlay { opacity: 1; }

    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-form-wrap { padding: 1.75rem; }
    .form-row { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 2.25rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; justify-content: center; }
}
