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

html,
body {
    margin: 0 !important;
    padding: 0;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    min-height: 100vh;
    height: auto !important;
    background-color: #fff;
    box-sizing: border-box;
}

body {
    font-family: 'Instrument Serif', 'Segoe UI', Tahoma, Geneva, Verdana, serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    padding-bottom: env(safe-area-inset-bottom);
}

:root {
    --gold-1: #d4af37;
    --gold-2: #b8860b;
    --gold-3: #8f6608;
    --gold-tint: #fff8e5;
    --gold-shadow: rgba(212, 175, 55, 0.12);
    --overlay-dark: rgba(20, 20, 20, 0.65);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.clients-prefooter h2 {
    text-align: center;
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    color: #222;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background-color: #1a1a1a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-1);
}

/* Global link styling (brand) - use darker gold for contrast, lighter on hover */
a {
    color: var(--gold-3);
    text-decoration: underline;
}
a:visited {
    color: var(--gold-2);
}
a:hover,
a:focus {
    color: var(--gold-1);
    text-decoration: none;
}

/* Focus outlines for keyboard users */
a:focus,
.btn:focus {
    outline: 3px solid rgba(212,175,55,0.18);
    outline-offset: 2px;
}

/* Keep navigation links white despite global link rules */
.navbar .nav-links a {
    color: #fff;
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: var(--gold-1);
}

/* Hero Section */

.hero {
    position: relative;
    background: url('../images/home-hero.png') center center/cover no-repeat;
    color: #fff;
    padding: 6rem 2rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.6rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #bbb;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #aaa;
}

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

.services-hero {
    position: relative;
    background: url('../images/magic-reaction-cork.jpg') 60% center/cover no-repeat;
    color: #fff;
    min-height: 70vh;
    overflow: hidden;
}

.services-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

.services-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 2rem;
    text-align: left;
    color: #fff;
}

.services-hero__content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0 0 1rem 0;
    color: #fff;
}

.services-hero__content p {
    font-size: 1.2rem;
    margin: 0 0 1.5rem 0;
    color: #fff;
    line-height: 1.8;
}

.services-hero__actions {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.7);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
}

@media (max-width: 768px) {
    .services-hero {
        min-height: 400px;
    }
    .services-hero__content h1 {
        font-size: 2.5rem;
    }
    .services-hero__content p {
        font-size: 1.05rem;
    }
    .services-hero__actions {
        justify-content: center;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
}

/* Ensure button links are not affected by global `a` color rules */
.btn,
.btn:visited,
.btn:focus,
.btn:hover {
    color: inherit;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gold-1) 0%, var(--gold-2) 100%);
    color: #fff;
}
.btn.btn-primary,
.btn.btn-primary:visited,
.btn.btn-primary:focus,
.btn.btn-primary:hover {
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--gold-2) 0%, var(--gold-3) 100%);
}

.btn-secondary,
.btn.btn-secondary,
a.btn.btn-secondary {
    background-color: #343a40;
    color: #fff !important;
    border: 1px solid #2c343b;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn.btn-secondary:hover,
.btn.btn-secondary:focus,
a.btn.btn-secondary:hover,
a.btn.btn-secondary:focus {
    background-color: #1f272d;
    color: #fff !important;
    outline: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--gold-1);
    border: 2px solid var(--gold-1);
}

.btn-outline:hover {
    background: linear-gradient(45deg, var(--gold-1) 0%, var(--gold-2) 100%);
    color: #fff;
}

/* Sections */
.intro {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f8f9fa;
}

.intro h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.intro p {
    max-width: 700px;
    margin: 0 auto 1rem;
}

/* Options Grid */
.options {
    padding: 4rem 2rem;
}

/* About / platform blurb on the homepage */
.about-platform {
    padding: 2.5rem 2rem;
    background: #fff;
    color: #222;
}
.about-platform .container {
    max-width: 900px;
}
.about-platform h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}
.about-platform p {
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: left;
}

.options h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 3rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.option-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.option-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.option-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Profile Sections */
.profile-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 2rem 2rem;
    text-align: center;
}

.profile-content h1 {
    font-size: 2.8rem;
    margin: 0 0 0.5rem 0;
}

.coverage {
    font-size: 1rem;
    color: #aaa;
}

.profile-section {
    padding: 1rem 2rem;
}

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

.profile-info h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

/* Profile photo for David/Steve pages */
.profile-photo {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto 1.5rem;
    box-shadow: 0 12px 30px rgba(20,20,20,0.12);
    border: 1px solid rgba(0,0,0,0.04);
}

/* Duo image inside services section */
.duo-image {
    margin: 2rem 0;
    text-align: center;
}
.duo-image img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(10,10,10,0.12);
    border: 1px solid rgba(0,0,0,0.04);
    display: inline-block;
}

/* Inline profile image for pages where the hero image is moved into content */
.profile-inline-image {
    max-width: 1000px;
    width: 100%;
    box-sizing: border-box;
    margin: 1.5rem auto;
    text-align: center;
}
.profile-inline-image img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .profile-photo { max-width: 320px; }
    .duo-image img { max-width: 100%; }
}

/* Linked service cards on Services page - 3 on top row, 2 on bottom row that stretch to full width */
.linked-service-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}
.linked-service-card {
    display: block;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 6px 18px rgba(10,10,10,0.04);
    box-sizing: border-box;
}
.linked-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(10,10,10,0.09);
}
.linked-service-card h3 {
    margin-bottom: 0.5rem;
}
.linked-service-card p {
    color: #666;
    margin: 0;
}

/* Avatar inside linked service cards */
.linked-service-card .card-top {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.linked-service-card .avatar img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(10,10,10,0.06);
}
.linked-service-card .card-body {
    flex: 1 1 auto;
}
.linked-service-card .learn-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 100%);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 16px 32px rgba(168, 126, 15, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.linked-service-card .learn-more-button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
    box-shadow: 0 18px 38px rgba(168, 126, 15, 0.22);
}

/* Top row: first three items span 2 columns each (33.33% each).
   Bottom row: items 4 and 5 span 3 columns each (50% each) and together fill the row. */
.linked-service-cards .linked-service-card:nth-child(1),
.linked-service-cards .linked-service-card:nth-child(2),
.linked-service-cards .linked-service-card:nth-child(3) {
    grid-column: span 2;
}
.linked-service-cards .linked-service-card:nth-child(4),
.linked-service-cards .linked-service-card:nth-child(5) {
    grid-column: span 3;
}

@media (max-width: 980px) {
    .linked-service-cards { grid-template-columns: repeat(4, 1fr); }
    .linked-service-cards .linked-service-card:nth-child(1),
    .linked-service-cards .linked-service-card:nth-child(2),
    .linked-service-cards .linked-service-card:nth-child(3) { grid-column: span 2; }
    .linked-service-cards .linked-service-card:nth-child(4),
    .linked-service-cards .linked-service-card:nth-child(5) { grid-column: span 2; }
}

@media (max-width: 520px) {
    .linked-service-cards { grid-template-columns: 1fr; }
    .linked-service-cards .linked-service-card { grid-column: span 1; }
}

/* How We Work section */
.how-we-work {
    padding: 3rem 2rem;
    background: linear-gradient(180deg, #fff 0%, #fbfbfb 100%);
}
.how-we-work .how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.how-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #eee;
    box-shadow: 0 8px 30px rgba(10,10,10,0.04);
}
.how-card h3 { margin-bottom: 0.75rem; }

@media (max-width: 768px) {
    .how-we-work .how-grid { grid-template-columns: 1fr; }
}

.profile-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.profile-highlight {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.highlight-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 0.5rem 0;
    color: #666;
}

.service-list li:before {
    content: "✓ ";
    color: var(--gold-1);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #aaa;
}

/* Services Section */
.services-section {
    padding: 4rem 2rem;
}

.services-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.services-section > .container > p {
    margin-bottom: 2rem;
    color: #666;
}

.service-box {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.service-box h3 {
    margin-bottom: 1rem;
}

.alt-bg {
    background-color: #f8f9fa;
}

.duo-benefit {
    background-color: #fff;
    padding: 2rem;
    border-left: 4px solid var(--gold-1);
    margin: 2rem 0;
}

.cta-inline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* CTA Section */
.cta-section {
    padding: 3rem 2rem;
    text-align: center;
    background-color: #f8f9fa;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    color: #666;
}

.contact-cta {
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
}

.contact-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-cta p {
    margin-bottom: 2rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
}

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

.contact-form h2 {
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.booking-option {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.booking-option h3 {
    margin-bottom: 0.5rem;
}

.booking-option p {
    color: #666;
    margin-bottom: 0.5rem;
}

.contact-detail {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cta-buttons .btn {
    display: inline-block;
}

.cta-note {
    font-size: 0.9rem;
    color: #aaa;
}

.cta-note a {
    color: inherit;
    text-decoration: underline;
}

.cta-note a:hover {
    color: #fff;
}

/* Increased vertical spacing for buttons and headings for improved rhythm */
.btn {
    padding: 1.1rem 2rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
.cta-buttons .btn { margin-bottom: 0.75rem; }

h1 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
h2 {
    margin-top: 1.25rem;
    margin-bottom: 0.85rem;
}
h3 {
    font-size: 1.3rem;
    margin-top: 1rem;
    margin-bottom: 0.6rem;
}

.page-hero__content {
    padding: 1.5rem 2.5rem;
}

.contact-form h2,
.contact-info h2 {
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}
.footer-grid h3,
.footer-grid h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

/* Ensure footer columns align their content consistently */
.footer-grid > div { display: flex; flex-direction: column; justify-content: flex-start; }
.footer-grid p a {
    color: var(--gold-1);
    text-decoration: underline;
}
.footer-brand p {
    color: #ddd;
}

.footer-bottom {
    margin-top: 1rem;
}

.footer-bottom a {
    color: var(--gold-1);
    text-decoration: underline;
}

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

/* Breadcrumbs */
.breadcrumbs {
    background-color: #1a1a1a;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    -webkit-font-smoothing:antialiased;
}

.breadcrumbs a {
    color: var(--gold-1);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #eaeaea;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .tagline {
        font-size: 1.4rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .profile-content h1 {
        font-size: 1.8rem;
    }

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

    .cta-inline {
        flex-direction: column;
    }

    .cta-inline .btn {
        width: 100%;
    }
}

/* Page Hero (used across multiple pages) */
.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
}
.page-hero__img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    filter: contrast(1.02) saturate(1.05);
}

.page-hero.booking-hero,
.page-hero.faq-hero {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}
.page-hero.booking-hero::after,
.page-hero.faq-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
    z-index: 1;
}
.page-hero.booking-hero .page-hero__img,
.page-hero.faq-hero .page-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.page-hero.booking-hero .page-hero__content,
.page-hero.faq-hero .page-hero__content {
    position: absolute;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    transform: none;
    z-index: 2;
    padding: 2rem;
    color: #fff;
    background: none;
    border-radius: 0;
    max-width: 1000px;
}
.page-hero.booking-hero .page-hero__content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 0;
    word-wrap: break-word;
}
.page-hero.booking-hero .page-hero__content .subtitle {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0.5rem 0 0 0;
}

@media (max-width: 768px) {
    .page-hero.booking-hero .page-hero__content h1,
    .page-hero.faq-hero .page-hero__content h1 {
        font-size: 2rem;
    }
    .page-hero.booking-hero .page-hero__content .subtitle,
    .page-hero.faq-hero .page-hero__content .subtitle {
        font-size: 1rem;
    }
}

/* Allow per-page hero alignment for montage-style images */
.page-hero.align-top .page-hero__img { object-position: center top; }
.page-hero.align-center .page-hero__img { object-position: center center; }
.page-hero.align-bottom .page-hero__img { object-position: center bottom; }
.page-hero__content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 720px;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, rgba(10,10,10,0.55), rgba(10,10,10,0.25));
    border-radius: 6px;
}
.page-hero__content h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}
.page-hero__content .subtitle {
    color: #ddd;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page-hero__img { height: 220px; }
    .page-hero__content { left: 1rem; right: 1rem; padding: 0.75rem 1rem; }
    .page-hero__content h1 { font-size: 1.6rem; }
}

/* Clients prefooter - two images side-by-side, stack on mobile */
.clients-prefooter {
    padding: 3rem 0;
    background: #fff;
}
.clients-prefooter .clients-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}
.clients-prefooter h3 {
    text-align: center;
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    color: #222;
    font-weight: 600;
}
.clients-prefooter .clients-item {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    background: #fff;
}
.clients-prefooter .clients-item img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 6px 24px var(--gold-shadow);
    display: block;
}

@media (max-width: 768px) {
    .clients-prefooter .clients-grid { grid-template-columns: 1fr; }
    .clients-prefooter .clients-item img { max-height: 220px; }
}
