/*
Theme Name: Photography Custom
Theme URI: https://demo.juncipriano.online
Author: Custom
Author URI: https://demo.juncipriano.online
Description: A modern photography portfolio theme with elegant design. Edit colors and fonts easily in Appearance > Site Editor.
Version: 2.2
Requires at least: 6.0
Tested up to: 6.9
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: photography-custom
*/

/* === CSS Custom Properties === */
:root {
    /* Colors - Edit these to change theme colors */
    --primary: #1a1a1a;
    --secondary: #f4c430;
    --accent: #c9a227;
    --light: #f8f8f8;
    --dark: #16213e;
    --dark-alt: #1a1a2e;
    --white: #ffffff;
    
    /* Text Colors - High contrast for readability */
    --text-dark: #333333;
    --text-light: #d0d0d0;
    --text-gray: #4a4a4a;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Layout */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1200px;
    --header-height: 70px;
}

/* === Base Reset === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #333333;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary);
}

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

/* === Container === */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* === Header - Mobile First === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(0.75rem, 2vw, 1.2rem) 0;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.site-title a {
    color: var(--white);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Playfair Display', Georgia, serif;
    transition: var(--transition);
}

.site-title a:hover {
    color: var(--secondary);
}

/* === Navigation - Hamburger Menu === */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--dark);
    padding: calc(var(--header-height) + 2rem) 2rem 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-navigation.active {
    right: 0;
}

.main-navigation a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--secondary);
    padding-left: 0.5rem;
}

/* Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 9998;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === Hero Section === */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.4) 50%,
        rgba(10, 10, 10, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
}

.hero-subtitle {
    display: inline-block;
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(244, 196, 48, 0.3);
    border-radius: 50px;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--white);
}

.hero p {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    min-height: 48px;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--secondary);
    color: var(--dark);
}

.btn-primary:hover,
.btn-primary:active {
    background: var(--accent);
    transform: translateY(-2px);
}

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

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

/* === Sections === */
section {
    padding: clamp(3rem, 10vw, 6rem) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 6vw, 4rem);
    padding: 0 1rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #4a4a4a;
}

/* === Services === */
.services {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.services h2 {
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
}

.service-card {
    text-align: center;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
}

.service-card h3 {
    color: var(--white);
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: #d0d0d0;
    font-size: clamp(0.9rem, 2vw, 0.95rem);
}

.service-icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1;
}

/* === Gallery === */
.gallery h2 {
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* === Testimonials === */
.testimonials {
    background: var(--light);
}

.testimonials h2 {
    color: var(--primary);
}

.testimonials-grid {
    display: grid;
    gap: 1.5rem;
    padding: 0 1rem;
}

.testimonial-card {
    background: var(--white);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.testimonial-card p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-style: italic;
    color: #444444;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.testimonial-card .role {
    color: var(--secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* === CTA Section === */
.cta {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.cta-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.cta-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    padding: 2rem 1rem;
}

.cta h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--white);
}

.cta p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
}

/* Center all buttons in cover blocks */
.wp-block-cover .wp-block-buttons {
    justify-content: center !important;
}

/* === Footer === */
.site-footer {
    background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
    color: var(--white);
    padding: clamp(2rem, 6vw, 4rem) 0 clamp(1rem, 3vw, 2rem);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: #c0c0c0;
    font-size: 0.95rem;
}

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

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

.footer-links a {
    color: #c0c0c0;
    text-decoration: none;
    display: block;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #888888;
    font-size: 0.8rem;
}

.site-footer a {
    color: var(--secondary);
    text-decoration: none;
}

/* === Page Content === */
.page-content {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 60vh;
}

.page-content h1 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 2rem 0;
    color: var(--primary);
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */

/* Tablet - 600px+ */
@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 0 2rem;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop - 1024px+ */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
    
    .main-navigation {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        padding: 0;
        flex-direction: row;
        gap: 2.5rem;
    }
    
    .main-navigation a {
        padding: 0;
        border-bottom: none;
        font-size: 0.9rem;
    }
    
    .main-navigation a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--secondary);
        transition: var(--transition);
    }
    
    .main-navigation a:hover::after {
        width: 100%;
    }
    
    .nav-overlay {
        display: none;
    }
    
    .hero h1 {
        font-size: clamp(3rem, 6vw, 4.5rem);
    }
    
    .hero p {
        font-size: clamp(1rem, 2vw, 1.3rem);
    }
    
    .hero-buttons {
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0;
    }
    
    .testimonials-grid {
        padding: 0;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Large Desktop - 1200px+ */
@media (min-width: 1200px) {
    section {
        padding: 6rem 0;
    }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */

/* Touch improvements */
@media (hover: none) {
    .btn:active {
        transform: scale(0.98);
    }
    
    .service-card:active {
        transform: translateY(-2px);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #0a0a0a;
        color: #ccc;
    }
}