/* ============================================
   R J's Mobile Lock & Key — Custom Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;
    
    --cream-50:  #fefce8;
    --cream-100: #fef9c3;
    --cream-200: #fef08a;
    --cream-300: #fde047;
    --cream-400: #facc15;
    --cream-500: #eab308;
    --cream-600: #ca8a04;
    --cream-700: #a16207;
    --cream-800: #854d0e;
    --cream-900: #713f12;
    
    --bg-primary:    #fafaf5;
    --bg-secondary:  #f5f5f0;
    --bg-dark:       #0a1f18;
    --bg-card:       #ffffff;
    
    --text-primary:   #1a1a18;
    --text-secondary: #4a4a44;
    --text-muted:     #7a7a72;
    --text-light:     #ffffff;
    
    --accent:         var(--emerald-700);
    --accent-light:   var(--emerald-100);
    --accent-hover:   var(--emerald-800);
    
    --line:           rgba(26, 26, 24, 0.12);
    --line-strong:    rgba(26, 26, 24, 0.25);
    
    --font-display:  'Cormorant Garamond', Georgia, serif;
    --font-body:     'Manrope', -apple-system, sans-serif;
    
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;
    
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.08);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

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

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

ul {
    list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-light);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--line-strong);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-white {
    background: var(--text-light);
    color: var(--accent);
    border-color: var(--text-light);
}

.btn-white:hover {
    background: var(--cream-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 245, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    position: relative;
}

.logo-mark::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: var(--bg-primary);
    border-radius: 1px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

.main-nav a:hover {
    color: var(--accent);
}

.main-nav a::after:hover {
    width: 100%;
}

.nav-cta {
    padding: 8px 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

.nav-cta::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 250, 245, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu a {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    transition: color var(--transition);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* --- Hero --- */
.hero {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 520px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-eyebrow .line {
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.hero-headline {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-headline em {
    font-style: italic;
    color: var(--accent);
}

.hero-sub {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 0;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    padding: 0 16px;
}

.trust-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.trust-value {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--line);
}

.hero-image {
    position: relative;
}

.image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.hero-accent {
    position: absolute;
    bottom: -20px;
    left: -30px;
}

.accent-box {
    background: var(--accent);
    color: var(--text-light);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.accent-number {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}

.accent-label {
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    border: 1px solid var(--line);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--text-light);
}

.service-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: var(--bg-primary);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5/6.5;
}

.about-content {
    max-width: 480px;
}

.about-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 16px;
}

.about-values {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.value-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.value-item:first-child {
    border-top: 1px solid var(--line);
}

.value-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.value-line {
    width: 24px;
    height: 1px;
    background: var(--accent);
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
    background: var(--bg-dark);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-text {
    flex: 1;
}

.cta-eyebrow {
    color: var(--emerald-400);
}

.cta-eyebrow::before {
    background: var(--emerald-400);
}

.cta-title {
    font-size: clamp(28px, 4vw, 44px);
    color: var(--text-light);
    margin-bottom: 12px;
}

.cta-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 400px;
    line-height: 1.8;
}

.cta-action {
    flex-shrink: 0;
}

/* --- Service Area --- */
.service-area {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.area-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.area-content {
    max-width: 480px;
}

.area-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 28px;
}

.area-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin-bottom: 32px;
}

.area-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.area-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

.area-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line);
}

.area-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.map-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--line);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.map-pin {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.map-info h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.map-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.map-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    transition: color var(--transition);
}

.map-phone:hover {
    color: var(--accent-hover);
}

.area-stats {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--line);
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--bg-primary);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    max-width: 440px;
}

.contact-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: all var(--transition);
}

.contact-item:first-child {
    border-top: 1px solid var(--line);
}

.contact-item:hover .contact-icon {
    background: var(--accent);
    color: var(--text-light);
}

.contact-item:hover .contact-value {
    color: var(--accent);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: all var(--transition);
}

.contact-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    transition: color var(--transition);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    gap: 16px;
}

.form-success.active {
    display: flex;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.form-success h3 {
    font-size: 24px;
}

.form-success p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-mark {
    width: 24px;
    height: 24px;
    background: var(--emerald-500);
    border-radius: var(--radius-sm);
    position: relative;
}

.footer-logo-mark::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: var(--bg-dark);
    border-radius: 1px;
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--emerald-400);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-phone {
    font-size: 18px;
    font-weight: 500;
    color: var(--emerald-400);
    transition: color var(--transition);
}

.footer-phone:hover {
    color: var(--emerald-300);
}

.footer-address {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image {
        max-width: 480px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-width: 480px;
    }
    
    .area-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: auto;
    }
    
    .hero-headline {
        font-size: clamp(32px, 8vw, 48px);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .hero-trust {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .trust-divider {
        display: none;
    }
    
    .trust-item {
        flex: none;
        flex: 1 1 calc(50% - 8px);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-desc {
        max-width: 100%;
    }
    
    .area-list {
        grid-template-columns: 1fr;
    }
    
    .area-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding-top: 80px;
    }
    
    .hero-accent {
        left: 0;
        bottom: -16px;
    }
    
    .accent-box {
        padding: 16px 20px;
    }
    
    .accent-number {
        font-size: 22px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
