/*
Theme Name: Brand Nest Digitals
Theme URI: https://www.brandnestdigitals.com
Author: Brand Nest Digitals
Author URI: https://www.brandnestdigitals.com
Description: Custom WordPress theme for Brand Nest Digitals - Web Design & SEO Agency New Zealand
Version: 1.0
License: Private
Text Domain: brandnest
*/

/* === CSS VARIABLES === */
:root {
    --primary-dark: #0f172a;
    --primary-light: #1e293b;
    --accent-gold: #c5a059;
    --accent-hover: #a38446;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --transition: all 0.3s ease;
    --shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); background: var(--white); line-height: 1.6; overflow-x: hidden; }
h1,h2,h3 { font-family: 'Playfair Display', serif; color: var(--primary-dark); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 80px 0; }

/* === BUTTONS === */
.btn { display: inline-block; padding: 0.8rem 2rem; border-radius: 4px; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); text-align: center; font-size: 0.95rem; }
.btn-primary { background-color: var(--accent-gold); color: var(--white); }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--accent-gold); color: var(--accent-gold); background: transparent; }
.btn-outline:hover { background-color: var(--accent-gold); color: var(--white); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* === HEADER === */
header { position: fixed; top: 0; width: 100%; z-index: 1000; background: transparent; padding: 1.5rem 0; transition: var(--transition); }
header.sticky { background: var(--white); padding: 0.8rem 0; box-shadow: var(--shadow); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.site-logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--white); z-index: 1001; }
.site-logo img { height: 45px; }
header.sticky .site-logo { color: var(--primary-dark); }
header.sticky .site-logo img { filter: invert(1) brightness(0.15); }
.site-logo span { color: var(--accent-gold); }
.nav-menu { display: flex; gap: 2.5rem; align-items: center; }
.nav-link { color: var(--white); font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; position: relative; cursor: pointer; }
header.sticky .nav-link { color: var(--primary-dark); }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent-gold); transition: var(--transition); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--accent-gold); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 200px; border-radius: 8px; box-shadow: var(--shadow); padding: 0.5rem 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 100; margin-top: 0.75rem; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 0.65rem 1.25rem; color: var(--text-main); font-size: 0.875rem; }
.dropdown-menu li a:hover { background: var(--bg-light); color: var(--accent-gold); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; padding: 4px; }
.hamburger span { width: 25px; height: 2px; background: var(--white); transition: var(--transition); display: block; }
header.sticky .hamburger span { background: var(--primary-dark); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.hamburger.active span { background: var(--primary-dark); }

/* === HERO === */
.hero { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat; opacity: 0.15; }
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); line-height: 1.2; margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.2rem; color: rgba(255,255,255,0.85); margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* === SECTION TITLES === */
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.section-title p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent-gold); margin: 1rem auto 0; }

/* === ABOUT === */
.flex-row { display: flex; gap: 4rem; align-items: center; }
.flex-row > div { flex: 1; }
.image-box img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.stat-item { text-align: center; padding: 1.5rem; background: var(--bg-light); border-radius: 10px; }
.stat-item h4 { font-size: 2rem; color: var(--accent-gold); margin-bottom: 0.5rem; }

/* === SERVICES === */
.grid { display: grid; gap: 2rem; }
.card { background: var(--white); border-radius: 12px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.07); transition: var(--transition); border: 1px solid rgba(0,0,0,0.05); cursor: pointer; }
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); border-color: var(--accent-gold); }
.card-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--accent-gold), var(--accent-hover)); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; color: white; }
.card-icon svg { width: 28px; height: 28px; stroke: white; }
.card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* === PORTFOLIO === */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.portfolio-item { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; }
.portfolio-img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.4s; }
.portfolio-item:hover .portfolio-img { transform: scale(1.05); }
.portfolio-overlay { position: absolute; inset: 0; background: rgba(15,23,42,0.88); opacity: 0; transition: var(--transition); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2rem; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: var(--white); margin-bottom: 0.75rem; }
.portfolio-overlay p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 1.5rem; }
.portfolio-category { background: var(--accent-gold); color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.75rem; }
.portfolio-info { padding: 1rem; background: var(--white); }
.portfolio-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.p-category { color: var(--accent-gold); font-size: 0.8rem; font-weight: 600; margin-bottom: 0.25rem; }

/* === TESTIMONIALS === */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background: var(--white); border-radius: 12px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.07); border-left: 4px solid var(--accent-gold); }
.stars { color: var(--accent-gold); font-size: 1.2rem; margin-bottom: 1rem; }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin-bottom: 1.5rem; }
.reviewer { display: flex; align-items: center; gap: 1rem; }
.reviewer-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.reviewer-info strong { display: block; color: var(--primary-dark); }
.reviewer-info span { font-size: 0.85rem; color: var(--text-muted); }

/* === CTA === */
.cta-banner { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); padding: 100px 0; text-align: center; }
.cta-banner h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2.5rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === CONTACT === */
.contact-wrapper { display: flex; gap: 4rem; align-items: flex-start; }
.contact-info { flex: 1; }
.contact-form-container { flex: 1.2; background: var(--white); border-radius: 16px; padding: 2.5rem; box-shadow: 0 4px 30px rgba(0,0,0,0.08); }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 2rem; align-items: flex-start; }
.contact-icon { width: 48px; height: 48px; background: var(--accent-gold); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { stroke: white; width: 22px; height: 22px; }
.contact-detail h4 { font-size: 0.9rem; margin-bottom: 0.25rem; }
.contact-detail p { color: var(--text-muted); font-size: 0.9rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.85rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 8px; font-family: inherit; font-size: 0.95rem; transition: var(--transition); outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent-gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.map-placeholder { background: var(--bg-light); border-radius: 12px; height: 250px; display: flex; align-items: center; justify-content: center; margin-top: 2rem; color: var(--text-muted); font-size: 0.9rem; border: 2px dashed #e2e8f0; }

/* === FOOTER === */
footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: rgba(255,255,255,0.6); margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-link { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: var(--transition); }
.social-link:hover { background: var(--accent-gold); color: white; }
.social-link svg { width: 18px; height: 18px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 1.25rem; font-family: 'Inter', sans-serif; font-weight: 700; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--accent-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.copyright { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* === BLOG === */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.blog-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.07); transition: var(--transition); }
.blog-card:hover { transform: translateY(-5px); }
.blog-img { width: 100%; height: 220px; object-fit: cover; }
.blog-body { padding: 1.5rem; }
.blog-category { color: var(--accent-gold); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.blog-body h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.blog-body p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.blog-meta { display: flex; gap: 1rem; color: var(--text-muted); font-size: 0.8rem; }

/* === NEWSLETTER === */
.newsletter-section { background: var(--bg-light); padding: 60px 0; }
.newsletter-box { max-width: 550px; margin: 0 auto; text-align: center; }
.newsletter-box h3 { font-size: 1.8rem; margin-bottom: 0.75rem; }
.newsletter-box p { color: var(--text-muted); margin-bottom: 1.5rem; }
.newsletter-form { display: flex; gap: 0.75rem; }
.newsletter-form input { flex: 1; padding: 0.85rem 1rem; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 0.95rem; outline: none; }
.newsletter-form input:focus { border-color: var(--accent-gold); }

/* === UTILITY === */
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.success-msg { display: none; background: #e6f7ee; color: #27ae60; padding: 1rem; border-radius: 8px; margin-top: 1rem; text-align: center; font-weight: 600; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    header { background: var(--primary-dark) !important; }
    header.sticky { background: var(--primary-dark) !important; }
    header.sticky .site-logo img { filter: none; }
    header .hamburger span { background: var(--white) !important; }
    .hamburger.active span { background: var(--primary-dark) !important; }
    .hamburger { display: flex; }
    .nav-menu { position: fixed; top: 0; right: -100%; width: 75%; max-width: 300px; height: 100vh; background: var(--white); flex-direction: column; padding: 5rem 2rem 2rem; gap: 0; box-shadow: -5px 0 20px rgba(0,0,0,0.15); transition: right 0.3s ease; z-index: 999; align-items: flex-start; overflow-y: auto; }
    .nav-menu.active { right: 0; }
    .nav-link { color: var(--primary-dark) !important; font-size: 1rem; padding: 0.85rem 0; border-bottom: 1px solid #f0f0f0; width: 100%; display: block; }
    .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 1rem; background: transparent; display: none; }
    .dropdown.open .dropdown-menu { display: block; }
    .flex-row { flex-direction: column; gap: 2rem; }
    .contact-wrapper { flex-direction: column; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; max-width: 280px; }
    .cta-btns { flex-direction: column; align-items: center; }
    section { padding: 60px 0; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: 1fr; }
}
