/* 
   Ohana Estate Services - Main Stylesheet
   A clean, modern design with a family-oriented and community-friendly feel
   Hawaiian-inspired color palette
*/

/* Base Styles */
:root {
    --primary-color: #1a6985; /* Ocean blue */
    --secondary-color: #e27d60; /* Sunset orange/coral */
    --accent-color: #f8b400; /* Golden yellow like sunset */
    --button-color: #41b3a3; /* Tropical foliage green for buttons */
    --dark-color: #2f3e46; /* Dark blue-gray for text */
    --light-color: #f8f9fa; /* Light background */
    --white: #ffffff;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --green: #41b3a3; /* Tropical foliage green */
    --sand: #e8d5b7; /* Sandy beach color */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

.text-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.text-link:hover {
    color: var(--secondary-color);
}

.text-link i {
    font-size: 0.8em;
    margin-left: 3px;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--light-color);
}

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

.text-white {
    color: var(--white);
}

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

.mt-4 {
    margin-top: 2rem;
}

/* Section Backgrounds */
.bg-coconuts {
    background-image: linear-gradient(rgba(248, 249, 250, 0.85), rgba(248, 249, 250, 0.85)), url('../images/coconuts-2000x1200.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--dark-color);
}

.bg-waves {
    background-image: linear-gradient(rgba(26, 105, 133, 0.85), rgba(26, 105, 133, 0.85)), url('../images/waves-2000x1200.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.bg-sunset {
    background-image: linear-gradient(rgba(226, 125, 96, 0.85), rgba(226, 125, 96, 0.85)), url('../images/sunset-2000x1200.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    background-attachment: fixed;
}

.bg-palm-beach {
    background-image: linear-gradient(rgba(26, 105, 133, 0.85), rgba(26, 105, 133, 0.85)), url('../images/palm-beach-2000x1200.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    background-attachment: fixed;
}

.bg-palm-trees {
    background-image: linear-gradient(rgba(65, 179, 163, 0.85), rgba(65, 179, 163, 0.85)), url('../images/palm-trees-2000x1200.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.bg-hawaii {
    background-image: linear-gradient(rgba(47, 62, 70, 0.85), rgba(47, 62, 70, 0.85)), url('../images/cropped-Hawaii-backgrounds-photo-2259.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.bg-resources {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/cropped-Hawaii-backgrounds-photo-2259.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    background-attachment: fixed;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.hero-logo {
    margin-bottom: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
}

.hero-logo img {
    height: 120px;
    margin-bottom: 15px;
}

.hero-logo h2 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 5px;
    font-weight: 700;
}

.hero-logo p {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 0;
    font-style: italic;
}

/* Map Container */
.map-container {
    height: 250px;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

/* Certificate Image */
.certificate-image {
    max-width: 150px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 20px auto;
    display: block;
}

.contact-item.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--button-color);
    color: var(--white);
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--button-color);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--button-color);
}

.learn-more {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.learn-more::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.learn-more:hover::after {
    margin-left: 10px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    transition: var(--transition);
}

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

.logo a {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.logo a span {
    display: inline-block;
    color: var(--primary-color);
}

.logo-img {
    height: 50px;
    margin-right: 10px;
    border-radius: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark-color);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--button-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.cta-button {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.nav-menu a.cta-button::after {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-bottom: 3px solid transparent;
    position: relative;
    padding-bottom: 70px; /* Space for the link at bottom */
    min-height: 350px; /* Ensure consistent height */
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(26, 105, 133, 0.1); /* primary color with opacity */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card .learn-more {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

/* Service Detail Sections */
.service-detail-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.service-detail-image,
.service-detail-text {
    flex: 1;
}

.service-detail-text h3 {
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.service-detail-text ul {
    margin-bottom: 25px;
}

.service-detail-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.service-detail-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Testimonials Section */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin: 20px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-content p {
    position: relative;
    padding: 0 20px;
    color: var(--dark-color);
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 50px;
    color: var(--light-gray);
    position: absolute;
    line-height: 0;
}

.testimonial-content p::before {
    left: 0;
    top: 30px;
}

.testimonial-content p::after {
    right: 0;
    bottom: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    min-height: 60px; /* Ensure consistent height */
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-info h4 {
    margin: 0 0 5px 0;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    color: var(--dark-color);
    margin: 0 10px;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-controls button:hover {
    background-color: var(--button-color);
    color: var(--white);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    background-color: var(--white);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    color: var(--primary-color);
    position: relative;
}

.minus-icon {
    display: none;
}

.plus-icon {
    display: inline-block;
}

.faq-answer {
    background-color: var(--white);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-item.active .faq-question {
    border-left: 3px solid var(--button-color);
}

.faq-item.active .plus-icon {
    display: none;
}

.faq-item.active .minus-icon {
    display: inline-block;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.resource-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    padding-bottom: 60px; /* Space for the link at bottom */
    min-height: 250px; /* Ensure consistent height */
}

.resource-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.resource-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.resource-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    position: absolute;
    bottom: 25px;
    left: 25px;
}

.resource-link:hover {
    color: var(--secondary-color);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.team-member-image {
    height: 300px;
    overflow: hidden;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .team-member-image img {
    transform: scale(1.05);
}

.team-member-info {
    padding: 25px;
}

.team-member-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.team-member-position {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-style: italic;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 50px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-form {
    flex: 1.5;
    padding: 40px;
    background-color: var(--white);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.required {
    color: #e27d60;
    margin-left: 4px;
}

.form-note {
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 105, 133, 0.2);
}

.submit-button {
    background-color: var(--button-color);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    width: 100%;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
    flex: 1;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px;
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--white);
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.contact-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.contact-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.contact-text h4 {
    margin: 0 10px 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.contact-text p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Two Column Layout */
.two-column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Footer */
.footer {
    background-image: linear-gradient(rgba(47, 62, 70, 0.95), rgba(47, 62, 70, 0.95)), url('../images/cropped-Hawaii-backgrounds-photo-2259.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 15px;
}

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

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

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

.footer-links a,
.footer-services a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--button-color);
    color: var(--white);
}

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

/* Responsive Styles */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .about-content,
    .service-detail-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-image,
    .service-detail-image {
        order: 1;
    }
    
    .about-text,
    .service-detail-text {
        order: 2;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo a span {
        font-size: 1.3rem;
    }
    
    .nav-menu li {
        margin-left: 15px;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
    
    .nav-menu a.cta-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        transition: var(--transition);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
