/* =========================================
   Haleakala Construction Inc.
   Premium Modern Construction Stylesheet
========================================= */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --primary-color: #1a1a1a;        /* Dark Charcoal / Black */
    --accent-color: #c5a059;         /* Muted Bronze / Gold */
    --accent-hover: #b08d4b;
    --secondary-color: #f4f4f4;      /* Light Gray */
    --white: #ffffff;
    --text-color: #333333;
    --text-light: #777777;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --border-radius: 4px;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* --- Reusable Components (Layout) --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.align-center {
    align-items: center;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-light { background-color: var(--secondary-color); }
.bg-dark { background-color: var(--primary-color); }

.opacity-70 { opacity: 0.7; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mx-auto { margin-inline: auto; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-primary-sm {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
    padding: 8px 18px;
    font-size: 0.9rem;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.section-title span {
    color: var(--accent-color);
    font-style: italic;
    font-weight: 400;
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin-bottom: 2rem;
}

.white-underline {
    background-color: var(--white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 3rem;
    margin-inline: auto;
}

/* --- Header & Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

.navbar.scrolled {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    color: var(--white);
    transition: color 0.4s ease;
}

.logo h1 {
    font-size: 1.6rem;
    margin: 0;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo h1 span {
    color: var(--accent-color);
    font-weight: 400;
}

.navbar.scrolled .logo a {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.navbar.scrolled .nav-links li a {
    color: var(--primary-color);
}

.navbar.scrolled .nav-links li a.btn {
    color: var(--white);
}

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links li a:not(.btn):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.navbar.scrolled .hamburger {
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1001;
    padding: 80px 40px;
    transition: var(--transition-slow);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
}

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

.mobile-menu ul li a {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* --- 1. HERO SECTION --- */
.hero {
    height: 100vh;
    background: url('../images/hero_luxury_home.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 26, 26, 0.4), rgba(26, 26, 26, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero-title {
    color: var(--white);
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* --- 2. ABOUT SECTION --- */
.about-text, .about-image {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-color);
}

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

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.experience-badge span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
}

/* --- 3. SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition-fast);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--accent-color);
}

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

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

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- 4. PROJECTS / PORTFOLIO SECTION --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(26,26,26,0.95));
    padding: 40px 20px 20px;
    color: var(--white);
    transition: bottom 0.4s ease;
}

.portfolio-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
}

/* --- 5. WHY CHOOSE US --- */
.why-content, .why-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.why-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.why-list li i {
    font-size: 1.5rem;
    margin-top: 5px;
}

.why-list li h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.why-list li p {
    color: #cccccc;
    font-size: 0.95rem;
}

.why-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(26,26,26,0.5), rgba(26,26,26,0.5)), url('../images/portfolio_interior.png') no-repeat center center/cover;
    border-radius: var(--border-radius);
    min-height: 400px;
}

.trust-box {
    text-align: center;
    border: 2px solid var(--accent-color);
    padding: 40px;
    background-color: rgba(26,26,26,0.85);
    border-radius: var(--border-radius);
    max-width: 300px;
}

.trust-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.trust-box p {
    margin: 0;
    color: #cccccc;
    font-size: 0.95rem;
}

/* --- 6. CONTACT / LEAD FORM --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

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

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.info-card h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-card p, .info-card a {
    color: var(--text-light);
    margin: 0;
}

.info-card a:hover {
    color: var(--accent-color);
}

.contact-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.contact-form-container h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-form-container p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* --- 7. FOOTER --- */
.footer {
    background-color: #111111;
    color: #ffffff;
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer h3 span {
    color: var(--accent-color);
    font-weight: 400;
}

.footer-about p {
    color: #999999;
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--accent-color);
}

.footer h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul li, .footer-services ul li {
    margin-bottom: 12px;
}

.footer ul li a, .footer ul li {
    color: #999999;
    font-size: 0.95rem;
}

.footer ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #999999;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-contact a {
    color: #999999;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background-color: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom p {
    margin: 0;
    color: #777777;
    font-size: 0.9rem;
}

/* --- ANIMATIONS & UTILS --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.visible {
    opacity: 1;
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .contact-grid { gap: 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    
    .hero-title { font-size: 2.8rem; }
    
    .flex-row { flex-direction: column; }
    .about-image { margin-top: 30px; }
    .experience-badge { right: 20px; }
    
    .contact-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 2rem; }
}
