/* 
 * Michigan Highland Co. - Premium Styles
 * Design Direction: Editorial Luxury + Modern Architectural
 */

:root {
    --primary-dark: #121212;
    --secondary-dark: #1a1a1a;
    --accent-gold: #c5a059;
    --warm-ivory: #f9f7f2;
    --soft-gray: #e5e5e5;
    --text-main: #333333;
    --text-muted: #666666;
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: all 0.4s ease;
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--warm-ivory);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif-font {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-medium);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition-medium);
}

header.scrolled {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: white;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--primary-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* For parallax */
    background: url('assets/hero.jpg') center/cover no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.2s;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.4s;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.6s;
}

.hero-btns {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards 0.8s;
}

.btn {
    padding: 18px 35px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: inline-block;
    cursor: pointer;
    border: none;
    transition: var(--transition-medium);
}

.btn-primary {
    background-color: var(--accent-gold);
    color: white;
}

.btn-primary:hover {
    background-color: #b08e4d;
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-dark);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

/* About Section */
.section {
    padding: 140px 0;
}

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

.about-image-wrapper {
    position: relative;
}

.about-image-main {
    width: 90%;
    height: 600px;
    object-fit: cover;
    box-shadow: var(--shadow-premium);
}

.about-image-offset {
    position: absolute;
    bottom: -40px;
    right: 0;
    width: 60%;
    height: 350px;
    object-fit: cover;
    border: 15px solid var(--warm-ivory);
    box-shadow: var(--shadow-premium);
}

.section-label {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: block;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.quote-block {
    margin-top: 40px;
    padding-left: 30px;
    border-left: 2px solid var(--accent-gold);
}

.quote-block blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 10px;
}

.quote-author {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

/* Services Section */
.services {
    background-color: var(--primary-dark);
    color: white;
}

.services .section-title {
    color: white;
    text-align: center;
}

.services .section-label {
    text-align: center;
}

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

.service-card {
    background: var(--secondary-dark);
    padding: 0;
    overflow: hidden;
    transition: var(--transition-slow);
    position: relative;
    height: 500px;
}

.service-card:nth-child(even) {
    transform: translateY(40px);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    opacity: 0.6;
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    z-index: 2;
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-medium);
}

.service-card:hover {
    transform: scale(1.02) !important;
}

.service-card:hover .service-img {
    transform: scale(1.1);
    opacity: 0.4;
}

.service-card:hover p {
    max-height: 100px;
    margin-top: 15px;
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.stat-item h4 {
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.stat-item p {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.feature-list {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    box-shadow: var(--shadow-premium);
    border-radius: 50%;
}

/* Portfolio Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item.wide { grid-column: span 8; }
.gallery-item.tall { grid-row: span 2; grid-column: span 4; }
.gallery-item.square { grid-column: span 4; }

/* Testimonials */
.testimonials {
    background: var(--primary-dark);
    color: white;
    text-align: center;
}

.testimonial-slider {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 60px;
    display: none;
    animation: fadeIn 0.5s forwards;
}

.testimonial-card.active {
    display: block;
}

.stars {
    color: var(--accent-gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 30px;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-initials {
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    background: white;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.contact-info-panel {
    background: var(--primary-dark);
    color: white;
    padding: 80px;
}

.contact-info-item {
    margin-bottom: 40px;
}

.contact-info-item h4 {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.contact-info-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form-panel {
    padding: 80px;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid var(--soft-gray);
    background: transparent;
    outline: none;
    font-size: 1rem;
    transition: var(--transition-medium);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-medium);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.75rem;
    color: var(--accent-gold);
}

.form-group input:focus, 
.form-group textarea:focus {
    border-bottom-color: var(--accent-gold);
}

.error-message {
    color: #e74c3c;
    font-size: 0.75rem;
    margin-top: 5px;
}

#form-success {
    display: none;
    background: #27ae60;
    color: white;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-container {
    height: 500px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(1) contrast(1.2) opacity(0.8);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    display: block;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
}

.footer-heading {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--accent-gold);
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollMouse {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 30px; }
    .about-grid, .why-us-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 60px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        color: white;
        font-size: 1.5rem;
    }
    
    .section-title { font-size: 2.5rem; }
    .hero h1 { font-size: 3.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .gallery-item.wide, .gallery-item.tall, .gallery-item.square { grid-column: span 12; }
    .contact-info-panel, .contact-form-panel { padding: 40px; }
}
