:root {
    --brand-color: #ddd4cb;
    --secondary-color: #965e21;
    --neutral1-color: #262422;
    --neutral2-color: #fdfdfd;
}

/* Basic Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--neutral1-color);
    background-color: var(--neutral2-color);
}

a {
    text-decoration: none;
    color: var(--neutral1-color);
    transition: color 0.3s;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    text-align: center;
    font-weight: normal;
}

.font-allura {
    font-family: 'Allura', cursive;
}

.font-barlow {
    font-family: 'Barlow', sans-serif; /* We'll need to add Barlow to the Google Fonts import */
}

p {
    line-height: 1.6;
    text-align: justify;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: rgba(221, 212, 203, 0.3); /* Corresponds to var(--brand-color) with opacity */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header .logo img {
    height: 60px;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
}

header nav a {
    margin: 0 15px;
    font-weight: bold;
    font-size: 16px;
}

header nav a:hover,
footer nav a:hover,
header nav a.active,
footer nav a.active {
    color: var(--secondary-color);
}

/* Main Content */
main {
    padding: 40px;
    min-height: calc(100vh - 200px); /* Full height minus header/footer */
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer */
footer {
    height: 85px;
    padding: 0 40px;
    background-color: rgba(221, 212, 203, 0.3); /* Corresponds to var(--brand-color) with opacity */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

footer nav a {
    margin: 0 15px;
    font-weight: bold;
    font-size: 16px;
}

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

/* --- Homepage Specific Styles --- */

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    max-width: 80%;
    border-radius: 5px;
}

/* Features Section */
.features {
    display: flex;
    align-items: stretch;
    gap: 20px; /* Reduced from 30px */
    margin: 80px 0;
}

.feature-image {
    flex: 1.2; /* Reduced from 1.5 to make the container tighter */
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.feature-text {
    flex: 1;
    /* Reverted from grid back to default block layout */
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px; /* Restored bottom margin for spacing */
}

.feature-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0; /* Prevent icon from shrinking */
    color: var(--brand-color);
    filter: invert(91%) sepia(8%) saturate(305%) hue-rotate(320deg) brightness(89%) contrast(91%);
}

.feature-item-text h3 {
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--neutral1-color);
}

.feature-item-text p {
    text-align: left;
    margin: 0;
    color: var(--neutral1-color);
}


/* Products Preview Section */
.products-preview {
    text-align: center;
    margin-bottom: 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px; /* 40px row gap, 20px column gap */
    margin-top: 30px;
}

.product-card {
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    max-width: 100%;
    display: block;
    border-radius: 5px;
}

.product-card .product-name {
    padding: 20px 10px 5px 10px;
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    line-height: 1.2;
    color: var(--neutral1-color);
    font-weight: 400;
}

/* --- Products Page Specific Styles --- */

.product-row {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.product-row-2 {
    align-items: flex-start;
}

.product-row-1 .product-image {
    flex: 1.5;
}

.product-row-1 .product-description {
    flex: 1;
}

.product-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    max-width: 100%;
    border-radius: 5px;
}

.product-description {
    flex: 1.5;
}

.product-description h2 {
    text-align: left;
    font-size: 28px;
    font-family: 'Barlow', sans-serif;
    margin-top: 0;
}

.product-description .product-intro-text {
    font-size: 18px; /* Larger font size for introductory paragraphs */
}

.product-row-equal .product-image,
.product-row-equal .product-description {
    flex: 1;
}

.product-row-1 .product-image img {
    max-width: 90%;
}

.product-row-2 .product-image img {
    max-width: 80%;
}

/* --- Hanging & Care Page --- */
.content-section {
    padding: 20px 0;
}

.hanging-care-content h2 {
    text-align: left;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
}

.hanging-care-content p, .hanging-care-content li p {
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
}

.hanging-care-content .hanging-care-intro-text {
    font-size: 18px;
}

.hanging-care-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.hanging-care-content li {
    margin-bottom: 15px;
}

.hanging-care-content .hanging-image {
    display: block;
    max-width: 450px;
    margin: 20px 0;
    border-radius: 5px;
}

.hanging-care-content a {
    color: var(--secondary-color);
    font-weight: bold;
}

.hanging-care-content a:hover {
    text-decoration: underline;
}

/* --- Privacy Policy Page --- */
.privacy-policy-content p {
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 15px;
}

.privacy-policy-content .privacy-policy-intro-text {
    font-size: 18px;
    font-weight: bold;
}

.privacy-policy-content a {
    color: var(--secondary-color);
    font-weight: bold;
}

.privacy-policy-content a:hover {
    text-decoration: underline;
}

/* --- Contact Page --- */
.contact-hero {
    text-align: center;
    margin-bottom: 60px;
}

.contact-hero p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.contact-hero .contact-hero-intro {
    font-size: 22px;
    margin-bottom: 30px;
    text-align: center;
}

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

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 23px; /* 18px (base p) + 5px */
}

.contact-icon-emoji {
    filter: grayscale(100%);
    opacity: 0.7;
}

.contact-icon {
    width: 24px;
    height: 24px;
}

.contact-details a {
    text-decoration: none;
    color: var(--primary-text-color);
}

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

.address {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.contact-section {
    display: flex;
    gap: 60px; /* Increased gap */
    margin-top: 40px;
    align-items: flex-start;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info p {
    margin-bottom: 1em;
    line-height: 1.7;
}

.contact-info hr {
    border: 0;
    border-top: 1px solid var(--brand-color);
    margin: 20px 0;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center; /* Center all items, including the button */
}

.form-group {
    display: flex;
    flex-direction: column-reverse; /* To place label under input */
    margin-bottom: 30px;
    width: 100%; /* Ensure form groups take full width */
}


.contact-form input,
.contact-form textarea {
    padding: 10px 0; /* Padding only top/bottom */
    margin-bottom: 0;
    border: none;
    border-bottom: 1px solid var(--brand-color);
    border-radius: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    background-color: transparent;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--secondary-color);
}

.contact-form label {
    margin-top: 8px; /* Space between line and label */
    font-size: 14px;
    color: #666;
}

.contact-form button {
    padding: 12px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    align-self: flex-start;
}

.contact-form button:hover {
    background-color: #7f7367; /* A slightly lighter shade for hover */
}

.contact-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-image img {
    max-width: 100%;
    border-radius: 5px;
}

/* --- Responsive Design --- */

/* Tablet Styles (<= 992px) */
@media (max-width: 992px) {
    main {
        padding: 20px;
    }

    header {
        padding: 10px 20px;
    }

    .hero, .features, .product-row, .contact-section {
        flex-direction: column;
        gap: 30px;
    }

    /* Reorder content for mobile */
    .hero-image { order: 1; }
    .hero-text { order: 2; }
    
    .product-row-2 .product-image { order: 1; }
    .product-row-2 .product-description { order: 2; }
    
    .contact-image { order: 1; }
    .contact-form { order: 2; }

    /* Center hanging care image */
    .hanging-care-content .hanging-image {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-text, .hero-image {
        text-align: center;
    }

    .feature-text, .product-description {
        text-align: center;
    }

    .feature-item-text h3, .feature-item-text p, .product-description h2 {
        text-align: left;
    }

    .contact-form h1 {
        text-align: center !important;
    }
}

/* Mobile Styles (<= 768px) */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    header nav, footer nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
    }

    header nav a, footer nav a {
        margin: 0;
    }

    h1.font-allura, .font-allura {
        font-size: 64px !important;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-description ul, .product-description li {
        text-align: left;
    }
    
    .contact-section {
        align-items: center; /* Center form in the middle of the column */
    }

    .contact-form {
        width: 90%; /* Make form narrower than screen */
    }

    .contact-details {
        flex-direction: column;
        gap: 15px;
    }

    /* This rule is now handled by the parent form style */
    .contact-form button {
        align-self: center;
    }

    .address {
        font-size: 9px;
    }

    .address span {
        display: block;
    }
}
