/* ─── Custom Properties ─── */
:root {
    --color-off-white: #f7f7f5;
    --color-slate-850: #1e293b;
    --color-teal-600: #0d9488;
    --color-teal-700: #0f766e;
    --color-slate-900: #0f172a;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Source Sans 3', system-ui, sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background-color: var(--color-off-white); }
img { max-width: 100%; height: auto; display: block; }

/* ─── Typography ─── */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.1; }

/* ─── Section Shared ─── */
.section-eyebrow {
    font-family: var(--font-sans);
    font-weight: 500;
}
.section-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}
.section-subtitle {
    font-family: var(--font-sans);
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-teal-700);
    color: #fff;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s var(--transition-smooth), transform 0.2s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}
.btn-primary:hover {
    background: var(--color-teal-600);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--color-slate-700);
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--color-slate-200);
    cursor: pointer;
    transition: border-color 0.3s var(--transition-smooth), color 0.3s var(--transition-smooth), background 0.3s var(--transition-smooth);
}
.btn-secondary:hover {
    border-color: var(--color-teal-700);
    color: var(--color-teal-700);
    background: rgba(13, 148, 136, 0.04);
}

/* ─── Header ─── */
#site-header {
    background: rgba(247, 247, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s var(--transition-smooth);
}
#site-header.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}
.nav-logo {
    text-decoration: none;
    transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo-icon {
    color: var(--color-teal-700);
    transition: transform 0.3s var(--transition-smooth);
}
.nav-logo:hover .nav-logo-icon {
    transform: rotate(-5deg) scale(1.05);
}
.nav-logo-name {
    font-family: var(--font-serif);
}
.nav-link {
    font-family: var(--font-sans);
    text-decoration: none;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-teal-700);
    transition: width 0.3s var(--transition-smooth);
}
.nav-link:hover::after { width: 100%; }

/* ─── Mobile Menu ─── */
#mobile-menu {
    font-family: var(--font-sans);
}
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}
.mobile-nav-link {
    font-family: var(--font-serif);
    text-decoration: none;
}
.hamburger-line {
    transition: transform 0.3s var(--transition-smooth), opacity 0.3s;
}
#menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}
#menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

/* ─── Hero ─── */
.hero-section {
    background: var(--color-off-white);
    overflow: hidden;
}
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-title {
    font-size: clamp(2.75rem, 6vw, 5.5rem);
}
.hero-subtitle {
    font-family: var(--font-sans);
    font-weight: 300;
}
.hero-image-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 50vh;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-accent-bar {
    z-index: 10;
}
.hero-badge {
    z-index: 10;
}
.hero-badge p {
    font-family: var(--font-serif);
}

/* ─── Animations ─── */
@keyframes animateUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-up {
    animation: animateUp 0.8s var(--transition-smooth) forwards;
}
.animate-up:nth-child(1) { animation-delay: 0s; }
.animate-up:nth-child(2) { animation-delay: 0.12s; }
.animate-up:nth-child(3) { animation-delay: 0.24s; }
.animate-up:nth-child(4) { animation-delay: 0.36s; }
.animate-up:nth-child(5) { animation-delay: 0.48s; }

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}
.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; }

/* ─── Services ─── */
.section-services {
    background: #f4f5f7;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
    background: #fff;
    padding: 2rem;
    border: 1px solid #f1f5f9;
    transition: border-color 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth), transform 0.3s var(--transition-smooth);
}
.service-card:hover {
    border-color: rgba(13, 148, 136, 0.2);
    box-shadow: 0 12px 40px rgba(15, 118, 110, 0.08);
    transform: translateY(-4px);
}
.service-icon {
    transition: transform 0.3s var(--transition-smooth);
}
.service-card:hover .service-icon {
    transform: scale(1.1);
}
.service-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #1e293b;
}
.service-desc {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ─── About ─── */
.section-about {
    background: var(--color-off-white);
}
.about-img-main {
    position: relative;
    overflow: hidden;
}
.about-img-main-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.about-img-accent {
    bottom: -1.5rem;
    right: -1.5rem;
    width: 192px;
    height: 192px;
}
.about-img-accent-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-year-badge {
    z-index: 10;
}
.about-signature {
    border-left: 2px solid var(--color-teal-700);
    padding-left: 1.5rem;
}

/* ─── Why Us ─── */
.section-why {
    background: var(--color-slate-850);
}
.why-card {
    padding: 1.5rem;
}
.why-card-number {
    font-family: var(--font-serif);
    transition: color 0.4s var(--transition-smooth);
}
.why-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #fff;
}
.why-card-desc {
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ─── Gallery ─── */
.gallery-item {
    overflow: hidden;
    position: relative;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    transition: background 0.4s var(--transition-smooth);
}
.gallery-item:hover::after {
    background: rgba(15, 23, 42, 0.1);
}
.gallery-img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    transition: transform 0.7s var(--transition-smooth);
}
.gallery-item:hover .gallery-img {
    transform: scale(1.06);
}

/* ─── Location ─── */
.section-location {
    background: #f4f5f7;
}
.location-icon {
    transition: transform 0.3s var(--transition-smooth);
}
.location-detail:hover .location-icon {
    transform: scale(1.15);
}
.location-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}
.location-map iframe {
    filter: grayscale(30%);
    transition: filter 0.4s var(--transition-smooth);
}
.location-map iframe:hover {
    filter: grayscale(0%);
}

/* ─── Contact ─── */
.section-contact {
    background: var(--color-off-white);
}
.contact-info-row {
    text-decoration: none;
    transition: transform 0.3s var(--transition-smooth);
}
.contact-info-row:hover {
    transform: translateX(4px);
}
.contact-info-icon {
    transition: transform 0.3s var(--transition-smooth);
}

/* ─── Form ─── */
.form-label {
    font-family: var(--font-sans);
    font-weight: 500;
}
.form-input {
    font-family: var(--font-sans);
    border: 1px solid #e2e8f0;
    background: rgba(247, 247, 245, 0.5);
    transition: border-color 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}
.form-input:focus {
    border-color: var(--color-teal-600);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    background: #fff;
}
.form-input::placeholder {
    color: #94a3b8;
}
.form-success {
    font-family: var(--font-sans);
}

/* ─── Footer ─── */
.footer-logo {
    text-decoration: none;
}
.footer-logo-name {
    font-family: var(--font-serif);
}
.footer-heading {
    font-family: var(--font-sans);
}
.footer-link {
    font-family: var(--font-sans);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth), transform 0.2s var(--transition-smooth);
}
.footer-link:hover {
    transform: translateX(4px);
}

/* ─── Responsive ─── */
@media (max-width: 1023px) {
    .hero-section {
        flex-direction: column;
    }
    .hero-content {
        padding: 3rem 1.5rem;
        min-height: auto;
    }
    .hero-image-inner {
        min-height: 50vh;
        max-height: 50vh;
    }
    .hero-accent-bar { display: none; }
    .hero-badge { display: none; }
    .about-img-main-img { height: 400px; }
    .about-img-accent { display: none; }
    .location-img { height: 400px; }
}

@media (max-width: 767px) {
    .hero-content {
        padding: 2.5rem 1.25rem;
    }
    .section-services,
    .section-about,
    .section-why,
    .section-location,
    .section-contact {
        padding: 4rem 1.25rem;
    }
    .service-card { padding: 1.5rem; }
    .about-year-badge { top: 1rem; left: 1rem; }
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}
