/* ============================================
   OPAL STUDIO - PROFESSIONAL WALLPAPER COMPANY
   Design Philosophy: Elegant, Premium, Trustworthy
   Color Palette: Soft neutrals with deep opal accents
   ============================================ */

/* ============================================
   1. RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f9f8f7;
}

/* ============================================
   2. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: #1a3a3a;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

a {
    color: #2d5a5a;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4a8a8a;
}

/* ============================================
   3. CONTAINER & LAYOUT
   ============================================ */

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

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */

.header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 100;
}

.sticky-header {
    position: sticky;
    top: 0;
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3a3a;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #2d5a5a;
    border-bottom-color: #2d5a5a;
}

.phone-btn {
    background-color: #2d5a5a;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.phone-btn:hover {
    background-color: #1a3a3a;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        justify-content: flex-start;
    }

    .phone-btn {
        width: 100%;
    }
}

/* ============================================
   5. HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 58, 0.7) 0%, rgba(45, 90, 90, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    width: 100%;
}

.hero-title {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: #e8e8e8;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   6. BUTTONS
   ============================================ */

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #d4af37;
    color: #1a3a3a;
}

.btn-primary:hover {
    background-color: #e8c547;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #1a3a3a;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ============================================
   7. SECTION STYLING
   ============================================ */

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1a3a3a;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #7a8a8a;
    font-weight: 300;
}

/* ============================================
   8. ABOUT SECTION
   ============================================ */

.about {
    background-color: #ffffff;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background-color: #f9f8f7;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #1a3a3a;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #7a8a8a;
    font-size: 0.95rem;
}

/* ============================================
   9. SERVICES SECTION
   ============================================ */

.services {
    background: linear-gradient(135deg, #f9f8f7 0%, #f0ebe5 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-title {
    color: #1a3a3a;
    margin-bottom: 1rem;
}

.service-description {
    color: #7a8a8a;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   10. WHY US SECTION
   ============================================ */

.why-us {
    background-color: #ffffff;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.why-us-item {
    padding: 2rem;
    border-left: 4px solid #d4af37;
    background-color: #f9f8f7;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.why-us-item:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.why-us-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #d4af37;
    color: #1a3a3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.why-us-item h3 {
    color: #1a3a3a;
    margin-bottom: 0.5rem;
}

.why-us-item p {
    color: #7a8a8a;
    font-size: 0.95rem;
}

/* ============================================
   11. GALLERY SECTION
   ============================================ */

.gallery {
    background: linear-gradient(135deg, #f9f8f7 0%, #f0ebe5 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
    cursor: pointer;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 58, 58, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay p {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   12. CONTACT SECTION
   ============================================ */

.contact {
    background-color: #ffffff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form-section {
    padding: 2rem;
}

.contact-info-section {
    padding: 2rem;
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a3a3a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #e0d5c8;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d5a5a;
    box-shadow: 0 0 0 3px rgba(45, 90, 90, 0.1);
}

.form-success {
    background-color: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.form-success h3 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: #558b2f;
}

.contact-info-item {
    margin-bottom: 2.5rem;
}

.contact-info-item h3 {
    color: #1a3a3a;
    margin-bottom: 1rem;
}

.contact-info-item p {
    color: #7a8a8a;
    line-height: 1.8;
}

.contact-link {
    color: #2d5a5a;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #d4af37;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-section,
    .contact-info-section {
        padding: 0;
    }
}

/* ============================================
   13. FOOTER
   ============================================ */

.footer {
    background-color: #1a3a3a;
    color: #e8e8e8;
    padding: 3rem 0 1rem;
}

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

.footer-section h4 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.footer-section p {
    color: #b8c8c8;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #b8c8c8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #d4af37;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: #8a9a9a;
    font-size: 0.9rem;
}

/* ============================================
   14. ERROR MESSAGES
   ============================================ */

.error-message {
    color: #ff6b6b;
    margin-top: 5px;
    font-size: 14px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   15. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .services-grid,
    .why-us-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .gallery-item {
        height: 200px;
    }
}

/* ============================================
   16. PRINT STYLES
   ============================================ */

@media print {
    .header,
    .footer,
    .hero-buttons {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}
