/* ========================================
   Gregorys Fencing — Brand Styles
   Deep Navy (#0a1f3f) + Warm Gold (#c8a45a)
   Playfair Display + Inter
======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #1a1a2e;
    background-color: #fefdf8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0a1f3f;
    color: #fefdf8;
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    font-weight: 500;
}
.skip-link:focus {
    top: 0;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    color: #0a1f3f;
}

/* ---------- Section Labels ---------- */
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c8a45a;
    margin-bottom: 1rem;
}

/* ---------- Section Titles ---------- */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
}

.section-desc {
    font-size: 1.125rem;
    color: #4a4a5a;
    max-width: 600px;
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #c8a45a;
    color: #0a1f3f;
}
.btn-primary:hover,
.btn-primary:focus {
    background: #b8933f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 164, 90, 0.35);
}

.btn-outline {
    background: transparent;
    color: #fefdf8;
    border: 2px solid rgba(254, 253, 248, 0.6);
}
.btn-outline:hover,
.btn-outline:focus {
    border-color: #fefdf8;
    background: rgba(254, 253, 248, 0.1);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: #fefdf8;
    border: 2px solid rgba(254, 253, 248, 0.5);
}
.btn-outline-light:hover,
.btn-outline-light:focus {
    border-color: #fefdf8;
    background: rgba(254, 253, 248, 0.1);
    transform: translateY(-2px);
}

.btn-text {
    color: #c8a45a;
    font-weight: 500;
    padding: 0;
    border-bottom: 1px solid transparent;
}
.btn-text:hover {
    border-bottom-color: #c8a45a;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 31, 63, 0.0);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled {
    background: rgba(10, 31, 63, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fefdf8;
}
.nav-logo-icon {
    color: #c8a45a;
}

.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(254, 253, 248, 0.8);
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c8a45a;
    transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a:focus {
    color: #fefdf8;
}
.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #c8a45a;
    padding: 0.625rem 1.25rem;
    border: 1.5px solid #c8a45a;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.nav-cta:hover {
    background: #c8a45a;
    color: #0a1f3f;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 110;
}
.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #fefdf8;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: #0a1f3f;
    padding: 6rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}
.nav-menu.open {
    right: 0;
}
.nav-menu .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.nav-menu .nav-links a {
    font-size: 1.125rem;
    color: rgba(254, 253, 248, 0.85);
}
.nav-menu .nav-cta {
    justify-content: center;
    width: 100%;
}

@media (max-width: 900px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-container {
        height: 70px;
    }
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: #0a1f3f;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(10, 31, 63, 0.92) 0%,
        rgba(10, 31, 63, 0.75) 50%,
        rgba(10, 31, 63, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.hero-greeting {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c8a45a;
    margin-bottom: 1.5rem;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fefdf8;
    margin-bottom: 1.5rem;
    max-width: 800px;
}
.hero-headline em {
    font-style: italic;
    color: #c8a45a;
}

.hero-sub {
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    color: rgba(254, 253, 248, 0.8);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(254, 253, 248, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}
.hero-scroll svg {
    color: #c8a45a;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
}

/* ---------- SERVICES ---------- */
.services {
    background: #fefdf8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: #fff;
    border: 1px solid rgba(10, 31, 63, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(10, 31, 63, 0.1);
    border-color: rgba(200, 164, 90, 0.3);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 31, 63, 0.06);
    border-radius: 12px;
    color: #0a1f3f;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    background: #0a1f3f;
    color: #c8a45a;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: #4a4a5a;
    line-height: 1.7;
}

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

/* ---------- ABOUT ---------- */
.about {
    background: #0a1f3f;
    color: #fefdf8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 6/7;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content .section-title {
    color: #fefdf8;
}

.about-text {
    font-size: 1.0625rem;
    color: rgba(254, 253, 248, 0.75);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(254, 253, 248, 0.12);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #c8a45a;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(254, 253, 248, 0.6);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-image {
        aspect-ratio: 16/9;
    }
}

/* ---------- GALLERY ---------- */
.gallery {
    background: #fefdf8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(10, 31, 63, 0.85) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption {
    opacity: 1;
}
.gallery-caption span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #fefdf8;
}
.gallery-caption span:first-child {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
}
.gallery-caption span:last-child {
    color: #c8a45a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.6875rem;
}

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

/* ---------- CTA SECTION ---------- */
.cta-section {
    position: relative;
    padding: 7rem 0;
    background: #0a1f3f;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 164, 90, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 164, 90, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fefdf8;
    margin-bottom: 1.25rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(254, 253, 248, 0.7);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
    background: #f5f3eb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(10, 31, 63, 0.06);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10, 31, 63, 0.08);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.testimonial-card blockquote {
    font-size: 1rem;
    line-height: 1.75;
    color: #2a2a3a;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card cite {
    font-style: normal;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0a1f3f;
}
.testimonial-card cite::before {
    content: '— ';
    color: #c8a45a;
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

/* ---------- CONTACT ---------- */
.contact {
    background: #fefdf8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-desc {
    font-size: 1.0625rem;
    color: #4a4a5a;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 31, 63, 0.06);
    border-radius: 10px;
    color: #0a1f3f;
}

.contact-item strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.0625rem;
    color: #0a1f3f;
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.9375rem;
    color: #4a4a5a;
    line-height: 1.6;
}
.contact-item a:hover {
    color: #c8a45a;
}

/* Form */
.contact-form-wrap {
    background: #fff;
    border: 1px solid rgba(10, 31, 63, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(10, 31, 63, 0.06);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0a1f3f;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #1a1a2e;
    background: #fefdf8;
    border: 1.5px solid rgba(10, 31, 63, 0.12);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c8a45a;
    box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.15);
}

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

.form-note {
    font-size: 0.8125rem;
    color: #6a6a7a;
    text-align: center;
    margin-top: 1rem;
}

.form-success {
    text-align: center;
    padding: 2rem;
}
.form-success h3 {
    font-size: 1.5rem;
    margin: 1rem 0 0.75rem;
}
.form-success p {
    color: #4a4a5a;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ---------- FOOTER ---------- */
.footer {
    background: #06142a;
    color: rgba(254, 253, 248, 0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fefdf8;
    margin-bottom: 1rem;
}
.footer-logo svg {
    color: #c8a45a;
}

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

.footer h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c8a45a;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.footer-links a {
    font-size: 0.9375rem;
    color: rgba(254, 253, 248, 0.6);
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #fefdf8;
}

.footer-contact p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.footer-contact a {
    font-size: 0.9375rem;
    color: #c8a45a;
    transition: color 0.3s ease;
}
.footer-contact a:hover {
    color: #fefdf8;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #c8a45a;
    transition: color 0.3s ease;
}
.map-link:hover {
    color: #fefdf8;
}

.footer-bottom {
    border-top: 1px solid rgba(254, 253, 248, 0.08);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(254, 253, 248, 0.4);
}
.footer-bottom a {
    color: rgba(254, 253, 248, 0.5);
    transition: color 0.3s ease;
}
.footer-bottom a:hover {
    color: #c8a45a;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-inner {
        text-align: left;
    }
}

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