/* ============================================
   GROOMING SALON — Premium Organic Minimalism
   Style: Tactile Luxury / Quiet Elegance
   Colors: Warm ivory + charcoal + sage gold
   Fonts: Playfair Display + Montserrat + Inter
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Montserrat:wght@300;400;500;600&family=Inter:wght@300;400;500&display=swap');

:root {
    /* Palette — Warm Ivory / Charcoal / Sage Gold */
    --bg-primary: #F7F6F2;
    --bg-secondary: #EDECE8;
    --bg-dark: #1C1C1A;
    --text-primary: #2C2C2C;
    --text-secondary: #6B6560;
    --text-light: #9E9790;
    --accent-gold: #C4A860;
    --accent-sage: #8B9A7E;
    --border-subtle: rgba(44, 44, 44, 0.08);
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 12px 50px rgba(0, 0, 0, 0.06);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-nav: 'Montserrat', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 80px);
    --container-max: 1360px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.7s var(--ease-out-expo);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    cursor: default;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

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

::selection {
    background-color: var(--accent-gold);
    color: white;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */

.cursor-dot,
.cursor-ring {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    border-radius: 50%;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: white;
    transition: transform 0.1s ease;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    transition: width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                background-color 0.3s ease;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: clamp(20px, 3vw, 36px) clamp(20px, 4vw, 60px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

nav.scrolled {
    padding: 16px clamp(20px, 4vw, 60px);
    background: rgba(247, 246, 242, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.nav-links {
    display: flex;
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
}

.nav-link {
    font-family: var(--font-nav);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: width 0.4s var(--ease-out-expo);
}

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

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

.nav-phone {
    font-family: var(--font-nav);
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-phone svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent-gold);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 1.5px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    transform-origin: center;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out-expo);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--text-primary);
    letter-spacing: 1px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(30px, 5vw, 80px);
    padding: calc(clamp(90px, 12vh, 140px)) clamp(20px, 4vw, 80px) var(--section-padding);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-label {
    font-family: var(--font-nav);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: clamp(16px, 2vw, 28px);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background-color: var(--accent-gold);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: clamp(20px, 3vw, 36px);
}

.hero h1 em {
    font-style: italic;
    color: var(--accent-gold);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: clamp(32px, 4vw, 56px);
    max-width: 480px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-nav);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-ghost:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.btn-filled {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-nav);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    background-color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-filled:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

.hero-image-wrapper {
    position: relative;
    height: 80vh;
    min-height: 500px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--accent-gold);
    border-radius: 4px;
    z-index: -1;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: clamp(30px, 5vh, 60px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.hero-scroll-indicator span {
    font-family: var(--font-nav);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background-color: var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-gold);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

/* ============================================
   PHILOSOPHY / ABOUT SECTION
   ============================================ */

.philosophy {
    padding: var(--section-padding);
    background-color: var(--bg-secondary);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.philosophy-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.philosophy-image img {
    width: 100%;
    height: clamp(400px, 50vh, 650px);
    object-fit: cover;
    transition: transform 1.2s var(--ease-out-expo);
}

.philosophy-image:hover img {
    transform: scale(1.03);
}

.philosophy-content {
    padding: clamp(20px, 3vw, 40px) 0;
}

.section-label {
    font-family: var(--font-nav);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: clamp(12px, 2vw, 24px);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background-color: var(--accent-gold);
}

.philosophy-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: clamp(20px, 3vw, 36px);
}

.philosophy-content h2 em {
    font-style: italic;
    color: var(--accent-gold);
}

.philosophy-text {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 24px;
    font-weight: 300;
}

.pull-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    padding-left: 24px;
    border-left: 2px solid var(--accent-gold);
    margin: clamp(30px, 4vw, 48px) 0;
}

.master-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: clamp(24px, 3vw, 40px);
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.master-info-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.master-info-text {
    font-family: var(--font-nav);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.master-info-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-top: 2px;
}

/* ============================================
   ADVANTAGES / STATS SECTION
   ============================================ */

.advantages {
    padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 80px);
    background-color: var(--bg-dark);
    color: var(--bg-primary);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 48px);
    text-align: center;
}

.stat-item {
    padding: clamp(20px, 3vw, 40px) 0;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-family: var(--font-nav);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(247, 246, 242, 0.5);
    line-height: 1.6;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

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

.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(48px, 6vw, 80px);
}

.services-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

.services-header h2 em {
    font-style: italic;
    color: var(--accent-gold);
}

.services-header p {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 36px);
}

.service-card {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.service-card-image {
    height: clamp(200px, 25vw, 300px);
    overflow: hidden;
    position: relative;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.service-card:hover .service-card-image img {
    transform: scale(1.06);
}

.service-card-body {
    padding: clamp(20px, 3vw, 32px);
}

.service-card-tag {
    font-family: var(--font-nav);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 300;
}

.service-price {
    font-family: var(--font-nav);
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-price strong {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-gold);
}

/* ============================================
   GALLERY / PORTFOLIO SECTION — Masonry Layout
   ============================================ */

.gallery {
    padding: var(--section-padding);
    background-color: var(--bg-secondary);
}

.gallery-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(48px, 6vw, 80px);
}

.gallery-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gallery-header h2 em {
    font-style: italic;
    color: var(--accent-gold);
}

/* Masonry — CSS Columns */
.gallery-masonry {
    column-count: 4;
    column-gap: clamp(12px, 1.5vw, 20px);
}

.masonry-item {
    break-inside: avoid;
    display: block;
    margin-bottom: clamp(12px, 1.5vw, 20px);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.8s var(--ease-out-expo), filter 0.4s ease;
}

.masonry-item:hover img {
    transform: scale(1.03);
    filter: brightness(0.92);
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(28, 28, 26, 0.95);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: calc(100vw - 80px);
    max-height: calc(100vh - 80px);
    object-fit: contain;
    border-radius: 4px;
    animation: lbZoomIn 0.3s var(--ease-out-expo);
}

.lightbox-close {
    position: absolute;
    top: 24px; right: 32px;
    color: white; font-size: 36px; font-weight: 300;
    cursor: pointer; background: none; border: none;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover { opacity: 0.6; }

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    color: white; font-size: 48px; cursor: pointer;
    background: none; border: none; user-select: none;
    transition: opacity 0.3s ease;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 0.5; }

@keyframes lbZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

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

.testimonials-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(48px, 6vw, 80px);
}

.testimonials-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

.testimonials-header h2 em {
    font-style: italic;
    color: var(--accent-gold);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 40px);
}

.testimonial-card {
    padding: clamp(28px, 3vw, 40px);
    background-color: white;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
}

.testimonial-stars span {
    color: var(--accent-gold);
    font-size: 14px;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-style: italic;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-name {
    font-family: var(--font-nav);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.testimonial-author-detail {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* Quote mark decoration */
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--accent-gold);
    opacity: 0.15;
    line-height: 1;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: clamp(80px, 12vw, 160px) clamp(20px, 4vw, 80px);
    background-color: var(--bg-dark);
    color: var(--bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(196, 168, 96, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: clamp(16px, 2vw, 28px);
}

.cta-section h2 em {
    font-style: italic;
    color: var(--accent-gold);
}

.cta-text {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: rgba(247, 246, 242, 0.6);
    max-width: 560px;
    margin: 0 auto clamp(36px, 5vw, 56px);
    line-height: 1.8;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-family: var(--font-nav);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bg-primary);
    border: 1px solid rgba(247, 246, 242, 0.3);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-outline-light:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: clamp(20px, 3vw, 36px);
}

.contact-info h2 em {
    font-style: italic;
    color: var(--accent-gold);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: clamp(20px, 3vw, 32px);
    padding-bottom: clamp(20px, 3vw, 32px);
    border-bottom: 1px solid var(--border-subtle);
}

.contact-detail:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-gold);
}

.contact-detail-label {
    font-family: var(--font-nav);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-detail-value {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: var(--text-primary);
    line-height: 1.6;
}

.contact-detail-value a {
    color: var(--text-primary);
    border-bottom: 1px solid transparent;
}

.contact-detail-value a:hover {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

/* Contact Form */
.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 400;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.form-group {
    margin-bottom: clamp(16px, 2vw, 28px);
}

.form-group label {
    display: block;
    font-family: var(--font-nav);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent-gold);
}

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

.form-submit {
    margin-top: clamp(24px, 3vw, 40px);
}

/* Contact Map */
.contact-map-wrapper h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 400;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.contact-map-wrapper iframe {
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--bg-dark);
    color: rgba(247, 246, 242, 0.5);
    padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 80px) clamp(24px, 3vw, 40px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: clamp(30px, 4vw, 60px);
    padding-bottom: clamp(32px, 4vw, 56px);
    border-bottom: 1px solid rgba(247, 246, 242, 0.08);
}

.footer-brand .nav-logo {
    color: var(--bg-primary);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-nav);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--bg-primary);
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(247, 246, 242, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: clamp(20px, 3vw, 36px);
    font-size: 0.75rem;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out-expo),
                transform 0.9s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: calc(clamp(90px, 12vh, 140px) + 60px);
    }

    .hero-image-wrapper {
        height: 50vh;
        min-height: 350px;
        order: -1;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: clamp(30px, 5vw, 60px);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-masonry {
        column-count: 3;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */

@media (max-width: 768px) {
    .nav-links, .nav-phone {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding-top: calc(clamp(90px, 12vh, 140px) + 60px);
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-image-wrapper {
        height: 45vh;
        min-height: 280px;
    }

    .hero-image-accent {
        display: none;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: clamp(2rem, 8vw, 3rem);
    }

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

    .gallery-masonry {
        column-count: 2;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

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

    .gallery-masonry {
        column-count: 1;
    }
}

/* ====== Testimonials Button (Yandex) + Phone CTA ====== */
.btn-yandex-reviews {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-nav);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-yandex-reviews:hover {
    background-color: var(--accent-gold);
    color: white;
}

.contact-phone-wrapper {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.contact-phone-large {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--accent-gold) !important;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.contact-phone-large:hover {
    opacity: 0.7;
}

/* ====== Mobile Gallery CTA Button (5 photos limit) ====== */
.mobile-gallery-cta {
    text-align: center;
    margin-top: clamp(32px, 5vw, 60px);
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
    justify-content: center;
}

/* ====== Footer + Map Responsive Tweaks ====== */
@media (max-width: 768px) {
    #mobileGalleryCta.mobile-gallery-cta { display: block !important; }

    .contact-map-wrapper iframe { height: 260px !important; }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: clamp(24px, 5vw, 36px);
    }
    .footer-social   { justify-content: center; }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
}

@media (min-width: 769px) {
    #mobileGalleryCta.mobile-gallery-cta { display: none !important; }
    .contact-map-wrapper iframe { height: 380px !important; }
}

/* ====== Footer Map (.footer-map) — Yandex iframe inside footer ====== */
.footer-map {
    margin-top: clamp(32px, 5vw, 64px);
    border-radius: 4px;
    overflow: hidden;
}

.footer-map iframe {
    display: block;
    width: 100% !important;
    height: 320px;
}

@media (max-width: 768px) {
    .footer-map iframe {
        height: 240px !important;
    }

    /* Footer map wrapper — existing contact section */
    .contact-map-wrapper iframe { height: 250px !important; }

    /* Phone CTA responsive */
    .contact-phone-large { font-size: clamp(1.3rem, 4vw, 1.8rem) !important; }
}

@media (min-width: 769px) {
    .footer-map iframe { height: 320px !important; }
    .contact-map-wrapper iframe { height: 380px !important; }
}
