/* MASTER 1.CSS - UNIVERSAL VERSION */

:root {
    --brand: #C9A24D;
    --ink: #1a1a1a;
    --paper: #ffffff;
    --bg: #111111;
    --border-color: #222;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

/* Added for JS functionality */
.is-hidden { display: none !important; }

body {
    background-color: var(--bg);
    font-family: 'Montserrat', sans-serif;
    color: var(--paper);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    padding: 40px 0;
}

.landing-wrap {
    width: 100%;
    max-width: 1200px;
    position: relative;
	margin: 0 auto;
    z-index: 2;
}

/* GHOST TEXT */
.header-bg {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(6rem, 18vw, 14.4rem);
    font-weight: 900;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
    white-space: nowrap;
    letter-spacing: -5px;
    pointer-events: none;
}

.header-section, .main-content {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.logo-text {
    font-size: clamp(2.2rem, 8vw, 5rem);
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: -2px;
            line-height: 1.1;
            margin-bottom: 20px;
}

.logo-text span { color: var(--brand); }

.logo-text-modal {
    font-size: clamp(1.67rem, 5.33vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 13px;
}

.logo-text-modal span { color: var(--brand); }

.divider {
    width: 53px;
    height: 3px;
    background: var(--brand);
    margin: 20px auto;
}
.intro-box {
    max-width: 600px;
    margin: 0 auto;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 4vw, 1.8rem);
    font-weight: 400;
    color: #ccc;
    margin-bottom: 25px;
}

h6 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.74rem, 2.68vw, 1.2rem);
    font-weight: 400;
    color: #C9A24D;
    margin-bottom: 25px;
    line-height: 1.4;
}

.manifesto {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #888;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.top-action-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.main-action-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

/* --- FORM STYLING --- */
.form-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 50px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.form-container:hover {
    border-color: var(--brand);
    transition: 0.3s ease-in-out;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    color: var(--brand);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 900;
}

.form-input, .form-textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 15px;
    color: var(--paper);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: 0.3s;
    border-radius: 0;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--brand);
    background: rgba(233, 82, 51, 0.05);
}

.form-textarea {
    height: 150px;
    resize: vertical;
}

.submit-area {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

/* --- CONTENT BLOCK --- */
        .zagran-container {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--border-color);
            padding: 60px 50px;
            position: relative;
            z-index: 2;
            width: 100%;
            text-align: left;
        }

        .zagran-title {
            color: var(--brand);
            font-size: 2rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 20px;
            text-align: center;
        }

        .zagran-message {
            font-size: 0.95rem;
            line-height: 1.8;
            color: #888;
            letter-spacing: 0.5px;
            max-width: 850px;
            margin: 0 auto;
        }

        .zagran-message p {
            margin-bottom: 20px;
        }

        .zagran-message strong {
            color: #ccc;
}


/* --- BUTTONS --- */
.btn-submit, .btn-brand, .btn-secondary, .btn-directory-reversed, .btn-forum, .btn-directory, .btn-zagran-co-uk {
    padding: 20px 40px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: 0.3s all ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border-radius: 0;
}

.btn-submit, .btn-directory, .btn-forum {
    background-color: transparent;
    color: var(--brand);
    font-weight: 900;
    border: 2px solid var(--brand);
}

.btn-submit:hover, .btn-directory:hover, .btn-forum:hover {
    background-color: var(--brand);
    color: white;
}

.btn-brand {
    background-color: var(--brand);
    color: white;
    font-weight: 900;
    border: 2px solid var(--brand);
}

.btn-brand:hover {
    background-color: transparent;
    color: var(--brand);
}

.btn-secondary {
    border: 2px solid #333;
    color: #666;
    font-weight: 700;
}

.btn-secondary:hover {
    border-color: #666;
    color: white;
}

.btn-zagran-co-uk {
    border: 2px solid #666;
    color: white;
    font-weight: 700;
}

.btn-zagran-co-uk:hover {
    border-color: #666;
    color: var(--brand);
}

.btn-directory-reversed {
    background-color: var(--brand);
    color: #000000;
    font-weight: 900;
    border: 2px solid var(--brand);
    position: relative;
    overflow: hidden; 
}

.btn-directory-reversed::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: glint 2s infinite;
}

@keyframes glint {
    0% { left: -150%; }
    40% { left: 150%; }
    100% { left: 150%; }
}

.btn-directory-reversed:hover {
    background-color: transparent;
    color: var(--brand);
}

.btn-round { border-radius: 50px; }

/* --- PAGE SPECIFIC COMPONENTS --- */
.thank-you-title {
    color: var(--brand);
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.thank-you-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    max-width: 800px;
    margin: 0 auto;
}

.brick-link {
    color: var(--brand) !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s ease;
    font-weight: 900;
}

.brick-link:hover {
    border-bottom: 1px solid var(--brand);
	color: #666 !important;
    opacity: 0.8;
}

.zagran-link {
    color: #fff !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s ease;
    font-weight: 900;
}

.zagran-link:hover {
    border-bottom: 1px solid var(--brand);
	color: var(--brand) !important;
    opacity: 0.8;
}


/* --- DIRECTORY TABLE --- */
.directory-container {
    width: 100%;
    overflow-x: auto;
    position: relative;
    z-index: 2;
}

.business-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    margin-bottom: 20px;
}

.business-table thead tr {
    background: rgba(255, 255, 255, 0.02);
    cursor: default;
}

.business-table th {
    text-align: left;
    padding: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: #ffffff;
    border-top: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
}

.business-table th:first-child { border-left: 2px solid var(--brand); }
.business-table th:last-child { border-right: 2px solid var(--brand); }

.business-table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.business-table td {
    padding: 25px;
    font-size: 0.85rem;
    color: #ccc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: 0.3s ease;
}

.business-table td:first-child {
    border-left: 1px solid var(--border-color);
    font-weight: 900;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.business-table td:last-child {
    border-right: 1px solid var(--border-color);
    color: #888;
    padding-right: 50px;
}

.business-table td:last-child::after {
    content: '→';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand);
    font-weight: 900;
    opacity: 0;
    transition: 0.3s;
}

.business-table tbody tr:hover {
    background: rgba(233, 82, 51, 0.04);
    transform: translateY(-3px);
}

.business-table tbody tr:hover td { border-color: var(--brand); }
.business-table tbody tr:hover td:last-child::after { opacity: 1; right: 20px; }

/* Unified Hierarchy Styling */
tr[data-level="1"] td { background-color: var(--brand); color: #000000 !important; font-weight: 900; }
tr[data-level="2"] td { background-color: var(--brand); filter: brightness(0.8); color: #000 !important; }
tr[data-level="3"] td { background-color: var(--brand); filter: brightness(0.6); color: #000 !important; }
tr[data-level="4"] td { background-color: var(--brand); filter: brightness(0.4); color: #fff; }
tr[data-level="5"] td { color: #ffffff !important; }

/* Override to apply Level 5 design to product rows regardless of data-level */
tr.product-row td { 
    background-color: transparent !important; 
    filter: none !important; 
    color: #ffffff !important; 
}
tr.brand-row[data-level="4"] td {
    background-color: #50411F !important; /* The dark gold background */
    filter: none !important;            /* Removes the "grey" tint from text */
    color: #C9A24D !important;           /* Pure brand text */
	text-shadow: 1px 1px 2px #000; /* Tiny black shadow */
}
/* --- CTA --- */
.cta-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 60px;
            margin-bottom: 20px;
            position: relative;
            z-index: 2;
        }


/* --- FOOTER --- */
footer {
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.humour-footer {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #444;
    margin-bottom: 25px;
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 900;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--brand); }

.copyright {
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: #fff;
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
    display: inline-block;
}

 /* Legal Notice Integration */
        .legal-lane {
            padding: 10px;
            border-left: 3px solid var(--brand);
            margin-top: 45px;
        }

        .legal-lane strong {
            display: block;
            color: var(--brand);
            text-transform: uppercase;
            font-size: 0.9rem;
            letter-spacing: 2px;
            margin-bottom: 4px;
        }

        .legal-lane p {
            font-size: 0.85rem;
            color: #fff;
            line-height: 1.6;
        }

/* Call to Action */
     .cta-zagran-box {
            background: #1d1d1d;
            padding: 40px;
            text-align: center;
            border: 5px solid var(--brand);
            margin: 45px 0 45px 0;
		 position: relative;
		 display: block;
        }
/* Your hover arrow logic */
.cta-zagran-box::after {
    content: '→';
    position: absolute;
    right: 30px;
    bottom: 30px;
    color: var(--brand);
    font-weight: 900;
    opacity: 0;
    transition: 0.3s;
}

.cta-zagran-box:hover::after {
    opacity: 1;
    right: 20px;
}
.cta-zagran-label {
    font-weight: 700;
    font-size: clamp(10px, 3vw, 1.1rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand);
	            margin-bottom: 20px;

}

.url-zagran-text {
    font-size: clamp(14px, 4vw, 2.9rem);
    font-weight: 900;
    letter-spacing: -2px;
    color: #fff;
    line-height: 1;
}
/* UNIVERSAL FIELD STYLING - NO PARENT CLASS NEEDED */

.label {
    color: var(--brand);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 900;
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 15px;
    color: var(--paper);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: 0.3s;
    border-radius: 0;
}
/* UNIVERSAL PLACEHOLDER STYLING */

textarea {resize: vertical;}

.error-msg {
    display: none;
    color: var(--brand);
    font-size: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    margin-top: 5px;
    text-transform: uppercase;
}

#main-totals-row, #main-totals-row *, #modal-totals-placeholder, #modal-totals-placeholder * {
    font-family: 'Montserrat', sans-serif !important;
}


/* Fix for subtotal wrapping below quantity input */
.product-row td:last-child {
    white-space: nowrap;
}

.subtotal {
    display: inline-block;
    vertical-align: middle;
}

/* --- UNIVERSAL MEDIA QUERIES (Breakpoint: 640px) --- */

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .business-table thead { display: none; }
    .business-table tr { display: block; margin-bottom: 15px; }
    .business-table td {
        display: block;
        width: 100% !important;
        padding: 15px 20px;
        border-left: 1px solid var(--border-color) !important;
        border-right: 1px solid var(--border-color) !important;
        border-top: none;
        border-bottom: none;
    }
    .business-table td:first-child { border-top: 1px solid var(--border-color) !important; }
    .business-table td:last-child { border-bottom: 1px solid var(--border-color) !important; }
    .business-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.6rem;
        text-transform: uppercase;
        color: var(--brand);
        font-weight: 900;
    }
	
	.landing-wrap {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
}

@media (max-width: 640px) {
/* TARGETS THE INLINE-STYLED STICKY WRAPPER */
    div[style*="position: fixed"][style*="bottom: 0"] > div > div {
        flex-direction: column !important;
        gap: 15px;
    }

    div[style*="position: fixed"][style*="bottom: 0"] div {
        text-align: center !important;
    }
    .logo-text span { display: block; margin-top: 5px; }
    .cta-container { 
        flex-direction: column; 
        margin-top: 40px; 
        gap: 15px;
    }
    .top-action-bar { flex-direction: column; gap: 15px; }
    .btn-submit, .btn-brand, .btn-directory-reversed, .btn-secondary, .btn-forum { 
        width: 100%; 
    }
	.main-action-bar { flex-direction: column; gap: 15px; }
    .btn-submit, .btn-brand, .btn-directory-reversed, .btn-secondary, .btn-forum { 
        width: 100%; 
    }
    .header-bg { display: none; }
    .footer-links { gap: 15px; flex-direction: column; }
    .form-container { padding: 30px 20px; }
	
	.humour-footer {
        display: block;
        white-space: nowrap;
        text-align: center;
        /* Lowered the VW to 2.8 to ensure it fits the width of a 320px screen */
        font-size: clamp(8px, 2.8vw, 12px); 
        width: 100%;
        overflow: hidden;
        letter-spacing: 0px; /* Removing spacing to save horizontal pixels */
        padding: 0 10px;    /* Prevents the text from touching the screen edges */
        box-sizing: border-box;
    }
	.copyright {
        display: block;
        white-space: nowrap;
        text-align: center;
        /* Lowered the VW to 2.8 to ensure it fits the width of a 320px screen */
        font-size: clamp(8px, 2.8vw, 12px); 
        width: 100%;
        overflow: hidden;
        letter-spacing: 0px; /* Removing spacing to save horizontal pixels */
        padding: 0 10px;    /* Prevents the text from touching the screen edges */
        box-sizing: border-box;
    }
	
	.footer-links {
        display: block !important; /* Switch from flex to block */
        text-align: center !important;
        width: 100% !important;
        line-height: 1.1 !important; /* Controls the space between the 2 lines */
    }

    .footer-links a {
        display: inline !important; /* Forces them to sit like words in a sentence */
        font-size: 0.75rem !important;
        /* Use margins instead of gap since we are using inline display */
        margin: 0 6px !important; 
        white-space: nowrap !important;
        text-decoration: none;
    }

    /* Specifically ensure the longer links take up more space if needed */
    .footer-links a[href*="london"], 
    .footer-links a[href*="host"] {
        grid-column: span 1; 
        font-weight: bold;
    }
	.cta-container, 
    .top-action-bar {
        display: flex;
        flex-direction: column; /* Stacking them usually looks better on small phones */
        align-items: center;
        width: 100%;
        /* This prevents the buttons from touching the screen glass */
        padding: 0 20px !important; 
        box-sizing: border-box; /* Crucial: keeps padding inside the 100% width */
        gap: 10px; /* Space between buttons */
    }

    .cta-container a, 
    .top-action-bar a {
        display: block;
        width: 100%; /* Makes them uniform and easy to tap */
        max-width: 500px; /* Prevents them from becoming "stupidly" wide on tablets */
        text-align: center;
        box-sizing: border-box;
    }
}

