/* ===================================
   CAKES BY GRACE - STYLES
   =================================== */

/* --- VARIABLES --- */
:root {
    /* Colors */
    --primary-color: #ff6600; /* Reverted to Orange */
    --primary-dark: #cc5200;
    --text-color: #1a1a1a;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-peach: #FFE5D9; /* Reverted to Peach */
    --white: #FFFFFF;
    --brown: #6B4423;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', Arial, sans-serif;

    /* Spacing */
    --header-height: 80px;
    --section-padding: 5rem 0;
    
    /* Transitions */
    --transition: 0.3s ease;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

.section {
    padding: var(--section-padding);
}

.text-center { text-align: center; }
.text-highlight { color: var(--primary-color); }
.bg-peach { background-color: var(--bg-peach); }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.3rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

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

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

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

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

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 100;
    transition: box-shadow 0.3s;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header.scroll-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    height: 50px; /* Adjust based on logo aspect ratio */
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active-link {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-toggle, .nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* --- HERO SECTION --- */
.hero {
    padding-top: calc(var(--header-height) + 10rem);
    padding-bottom: 8rem;
    background: linear-gradient(180deg, var(--bg-peach) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    height: auto;
    opacity: 0.08; /* Subtle watermark effect */
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative; /* Ensure content is above watermark */
    z-index: 1;
}

.hero-subtitle {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: #676767;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-bg {
    position: absolute;
    width: 90%;
    height: 90%;
    background-color: rgba(255, 102, 0, 0.1);
    border-radius: 50% 50% 40% 60% / 50% 40% 60% 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% { border-radius: 50% 50% 40% 60% / 50% 40% 60% 50%; }
    50% { border-radius: 60% 40% 50% 50% / 40% 60% 50% 50%; }
    100% { border-radius: 50% 50% 40% 60% / 50% 40% 60% 50%; }
}

.hero-img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.05) rotate(2deg);
}

.floating-card {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.floating-card .icon {
    font-size: 2rem;
    padding: 0;
}

.wave-bottom {
    position: absolute;
    bottom: -45px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* --- SECTION TITLES --- */
.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height:3rem;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

/* --- SIGNATURE CAKES GRID --- */
.signature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
}

@media screen and (max-width: 1200px) {
    .signature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .signature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .signature-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.product-image .hover-img {
    opacity: 0;
    z-index: 2;
}

.product-card:hover .product-image .main-img {
    opacity: 0;
}

.product-card:hover .product-image .hover-img {
    opacity: 1;
    transform: scale(1.1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-content {
    padding: 1.5rem;
    text-align: center;
}

.product-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height:1.4rem;
}

.product-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.4;
}

/* --- CUSTOMIZED CAKES --- */
.custom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    margin: 2rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.custom-images {
    position: relative;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-grouped-img {
    max-width: 100%;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.custom-grouped-img:hover {
    transform: scale(1.02);
}

/* Removed old custom-img-card styles as they are replaced by single image */

.bg-light-grey { background-color: #f9f9f9; }

/* --- PARTNER / B2B SECTION (Redesigned) --- */
.partner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-description-left {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.partner-list {
    margin-bottom: 2.5rem;
}

.partner-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.check-icon {
    background: var(--primary-color);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.partner-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.partner-list p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.partner-image img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

@media screen and (max-width: 968px) {
    .partner-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .partner-content {
        order: 1; /* Text first on mobile */
    }
    
    .partner-image {
        order: 2;
    }
}

/* --- ABOUT SECTION --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

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

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

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- CTA BANNER --- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), #ff8f66);
    color: var(--white);
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-banner p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--text-color); /* Black */
    color: #ccc;
    padding: 4rem 0 1rem;
}

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

.footer-logo {
    margin-bottom: 1rem;
    
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    transition: var(--transition);
}

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

.footer-contact p {
    margin-bottom: 0.75rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 968px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .custom-grid, .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .custom-images {
        height: 400px;
    }
    
    .custom-img-card.img-1 { width: 70%; }
    .custom-img-card.img-2 { width: 60%; }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 4rem 0 3rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: 0.4s;
        z-index: 100;
        text-align: center;
    }

    .show-menu {
        top: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-toggle, .nav-close {
        display: block;
    }

    .nav-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .nav-actions .btn {
        display: none; /* Hide CTA in header on mobile */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }
    
    .cta-group {
        flex-direction: column;
        align-items: center;
    }
}

/* --- MODAL STYLES --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.modal-header p {
    color: var(--text-light);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.required {
    color: red;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0;
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.captcha-group {
    background: #fff3e0;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ffe0b2;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading .loading-spinner {
    display: inline-block;
}

.btn.loading .btn-text {
    display: none;
}

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

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

.delay-200 { transition-delay: 0.2s; }
