/* ============================================================
   HAZEL PHOTOGRAPHY — Main Stylesheet
   ============================================================ */

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

:root {
    --purple:        #7B2FBE;
    --purple-light:  #9B4FDE;
    --purple-dark:   #5A1F90;
    --black:         #1a1a1a;
    --dark:          #232323;
    --mid:           #555;
    --light:         #f9f7fc;
    --white:         #ffffff;
    --card-bg:       #faf8fc;
    --border:        #e8e0f0;
    --font-serif:    'Merriweather', Georgia, serif;
    --font-sans:     'Google Sans Code', 'Courier New', monospace;
    --transition:    0.25s ease;
    --shadow:        0 4px 20px rgba(123,47,190,0.12);
    --shadow-hover:  0 8px 32px rgba(123,47,190,0.22);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-serif);
    background: var(--white);
    color: var(--dark);
    line-height: 1.7;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-serif); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

/* ---------- Header ---------- */
.site-header {
    background: var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 70px;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--white);
    letter-spacing: 1px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo span { color: var(--purple-light); }

#site-logo-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
}

/* ---------- Nav ---------- */
#desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

#desktop-nav a {
    color: #ccc;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background var(--transition), color var(--transition);
    letter-spacing: 0.5px;
}

#desktop-nav a:hover,
#desktop-nav a.active {
    background: var(--purple);
    color: var(--white);
}

#desktop-nav a.nav-login {
    border: 1px solid var(--purple-light);
    color: var(--purple-light);
    margin-left: 8px;
}

#desktop-nav a.nav-login:hover {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
}

#burger-button {
    display: none;
    border: 0;
    font-size: 1.8rem;
    background: none;
    color: var(--white);
    cursor: pointer;
    margin-left: auto;
    z-index: 9999;
    position: relative;
    line-height: 1;
}

#mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

#mobile-nav.open { display: flex; }

#mobile-nav a {
    color: var(--white);
    font-size: 1.4rem;
    font-family: var(--font-sans);
    padding: 12px 32px;
    border-radius: 8px;
    transition: background var(--transition);
}

#mobile-nav a:hover { background: var(--purple); }

#mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    background: none;
    border: 0;
    color: var(--white);
    cursor: pointer;
}

@media (max-width: 1024px) {
    #desktop-nav { display: none; }
    #burger-button { display: block; }
}

/* ---------- Hero / Swiper ---------- */
.hero-section {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.swiper { width: 100%; height: 100%; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(90,31,144,.62) 0%, rgba(26,26,26,.45) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.hero-text { color: var(--white); }
.hero-text p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0.85;
}
.hero-text h1 { margin-bottom: 20px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero-text .btn { pointer-events: all; }

.swiper-button-next, .swiper-button-prev { color: var(--white) !important; }
.swiper-pagination-bullet-active { background: var(--purple-light) !important; }

/* ---------- Tagline Strip ---------- */
.tagline-strip {
    background: var(--light);
    border-top: 3px solid var(--purple);
    padding: 20px 24px;
    text-align: center;
}

.tagline-strip p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--purple);
}

/* ---------- Sections ---------- */
.section { padding: 72px 24px; max-width: 1200px; margin: 0 auto; }

.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { color: var(--dark); margin-bottom: 12px; }
.section-title p { color: var(--mid); max-width: 560px; margin: 0 auto; font-size: 0.95rem; }

/* ---------- Service Cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card img { width: 100%; height: 200px; object-fit: cover; }

.service-card-body { padding: 20px; text-align: center; }

.service-card-body .icon {
    width: 44px; height: 44px;
    background: var(--purple);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.2rem;
}

.service-card-body h3 { margin-bottom: 8px; }
.service-card-body p { color: var(--mid); font-size: 0.88rem; }

/* ---------- CTA Banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    padding: 56px 24px;
    text-align: center;
    color: var(--white);
}

.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { opacity: 0.88; max-width: 480px; margin: 0 auto 28px; font-size: 0.95rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 0;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary { background: var(--purple); color: var(--white); }
.btn-primary:hover {
    background: var(--purple-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123,47,190,.35);
}

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

/* ---------- About Page ---------- */
.about-block { display: flex; align-items: center; gap: 56px; margin-bottom: 72px; }
.about-block.reverse { flex-direction: row-reverse; }

.about-block img {
    width: 48%;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 340px;
    object-fit: cover;
}

.about-block-text h2 { margin-bottom: 16px; color: var(--purple-dark); }
.about-block-text p { color: var(--mid); margin-bottom: 16px; }

/* ---------- Gallery ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery a { display: block; overflow: hidden; border-radius: 8px; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.05); }

/* ---------- Contact ---------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px;
}

.contact-info h2 { color: var(--purple-dark); margin-bottom: 24px; }

.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }

.contact-detail .icon {
    width: 40px; height: 40px;
    background: var(--purple);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem; flex-shrink: 0;
}

.contact-detail p { color: var(--mid); font-size: 0.92rem; }

.contact-map {
    width: 100%; height: 280px;
    border-radius: 12px; overflow: hidden;
    border: 0; margin-top: 24px;
    box-shadow: var(--shadow);
}

.contact-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form-card h2 { margin-bottom: 24px; color: var(--dark); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-serif);
    font-size: 0.92rem;
    background: var(--white);
    color: var(--dark);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(123,47,190,.12);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* ---------- Login ---------- */
.login-wrapper {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--light);
}

.login-card {
    background: var(--white);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-hover);
}

.login-card .logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    text-align: center;
    color: var(--dark);
    margin-bottom: 8px;
}

.login-card .logo span { color: var(--purple); }
.login-card .subtitle { text-align: center; color: var(--mid); font-size: 0.9rem; margin-bottom: 32px; }
.login-card h2 { text-align: center; margin-bottom: 28px; font-size: 1.3rem; color: var(--dark); }

/* ---------- Admin ---------- */
.admin-wrapper { max-width: 1100px; margin: 0 auto; padding: 48px 24px; }

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-header h1 { font-size: 1.8rem; }

.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }

.data-table th {
    background: var(--purple);
    color: var(--white);
    padding: 14px 20px;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.data-table td { padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--light); }

.table-action {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-family: var(--font-sans);
    margin-right: 6px;
    transition: background var(--transition);
}

.table-action.edit { background: var(--purple); color: white; }
.table-action.edit:hover { background: var(--purple-light); }
.table-action.delete { background: #e53935; color: white; }
.table-action.delete:hover { background: #c62828; }

/* ---------- Update Form ---------- */
.update-wrapper { max-width: 520px; margin: 64px auto; padding: 0 24px; }

.update-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.update-card h2 { margin-bottom: 24px; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.alert-error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #bbb; padding: 56px 0 0; }

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand .logo span { color: var(--purple-light); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 {
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-family: var(--font-sans);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.88rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--purple-light); }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }

.footer-social a {
    width: 36px; height: 36px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    transition: background var(--transition);
}

.footer-social a:hover { background: var(--purple); }

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    text-align: center;
    padding: 16px 24px;
    font-size: 0.8rem;
    font-family: var(--font-sans);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2,1fr); }
    .about-block, .about-block.reverse { flex-direction: column; }
    .about-block img { width: 100%; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .gallery { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 580px) {
    .services-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .hero-section { height: 380px; }
    .login-card { padding: 32px 24px; }
    .contact-form-card { padding: 28px 20px; }
    .site-logo { font-size: 1.1rem; }
}
