:root {
    --primary-orange: #E9732D;
    --text-dark: #202A32;
    --text-gray: #A2A5A8;
    --bg-light-gray: #EFF0F0;
    --bg-white: #FFFFFF;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Top Header */
.divider-line {
    width: 40px;
    height: 2px;
    background-color: var(--text-dark);
    margin-right: 30px;
    flex-shrink: 0;
}

h1 {
    font-size: 64px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--text-dark);
    margin-bottom: 40px !important;
}

/* First Block: Introduction */
.intro-block {
    padding: 0 0 60px;
}
.intro-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-orange);
    max-width: 900px;
    line-height: 1.4;
}

/* Overlapping Layout Section */
.overlap-section {
    position: relative;
    display: flex;
    min-height: 700px;
    margin: 0 -80px;
}

/* The background image */
.image-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 75%;
    height: 100%;
    background-image: url('../images/pages/directions/industrial_kitchen_bw_1774352564485.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: contrast(1.1) brightness(0.9);
}

/* The grey text box overlapping */
.content-box-gray {
    background-color: var(--bg-light-gray);
    padding: 60px 80px;
    width: 50%;
    position: relative;
    margin-top: 50px;
    margin-bottom: 50px;
    z-index: 2;
}

.content-box-gray p {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 25px;
    color: var(--text-dark);
    line-height: 1.8;
    text-align: justify;
}

.content-box-gray p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    font-weight: 700;
    color: var(--primary-orange);
}

/* Final Block */
.notice-block {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 80px;
    display: flex;
    gap: 50px;
    margin-bottom: 80px;
}

.notice-block .accent-col {
    width: 5px;
    background-color: var(--primary-orange);
    flex-shrink: 0;
}

.notice-block p {
    font-size: 20px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 1000px;
}

/* Services Block */
.services-block {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.services-block h2 {
    font-size: 40px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 50px;
    letter-spacing: -0.03em;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-light-gray);
    padding: 40px 30px;
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-top-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    background-color: #FFFFFF;
}

.service-card .card-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-orange);
    opacity: 0.2;
    margin-bottom: 15px;
    line-height: 1;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    text-transform: uppercase;
}

/* Subpage Specific Styles */
.subpage-container {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
}

.top-bar {
    padding: 40px 80px 0;
}

.back-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.back-link:hover {
    color: var(--primary-orange);
}

.back-link::before {
    content: '←';
    margin-right: 8px;
    font-size: 18px;
}

.content-area {
    flex: 1;
    padding: 0 0 80px;
    display: flex;
    gap: 60px;
}

.text-block {
    background-color: var(--bg-light-gray);
    padding: 60px 80px;
    width: 70%;
    position: relative;
}

.text-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background-color: var(--primary-orange);
}

.text-block p {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 25px;
    color: var(--text-dark);
    line-height: 1.8;
    text-align: justify;
}

.text-block p:last-child {
    margin-bottom: 0;
}

ul {
    list-style: none;
    padding-left: 30px;
    margin-bottom: 30px;
}

li {
    position: relative;
    font-size: 16px;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}

li::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-orange);
}

li strong {
    font-weight: 700;
}

.decorative-col {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 40px;
}

.deco-number {
    font-size: 240px;
    font-weight: 900;
    color: #F4F5F6;
    line-height: 0.8;
    letter-spacing: -0.05em;
    user-select: none;
}

/* Responsive tweaks */

/* Tablet / Small Desktop */
@media (max-width: 1024px) {
    .content-box-gray {
        width: 80%;
    }
    .image-bg {
        width: 100%;
    }
    .content-area { flex-direction: column; padding: 0 0 40px; }
    .top-bar { padding: 40px 40px 0; }
    .text-block { width: 100%; padding: 40px; }
    .decorative-col { width: 100%; align-items: flex-start; }
    h1 { font-size: 40px; }
    .intro-block { padding: 0 0 40px; }
    .services-block { padding: 40px 0; }
    .notice-block { padding: 40px; flex-direction: column; gap: 30px; }
}

/* Mobile Devices */
@media (max-width: 768px) {
    body { padding: 20px 10px; }
    .divider-line { margin-bottom: 20px; }
    h1 { font-size: 32px; }
    .intro-block { padding: 0 0 40px; }
    .intro-text { font-size: 18px; }
    .overlap-section { display: flex; flex-direction: column; min-height: auto; margin: 0; }
    .image-bg { position: relative; width: 100%; height: 300px; }
    .content-box-gray { width: 100%; margin: -40px 0 0; padding: 40px 20px; z-index: 2; box-shadow: 0 -10px 20px rgba(0,0,0,0.05); }
    .services-block { padding: 40px 0; }
    .services-block h2 { font-size: 28px; margin-bottom: 30px; }
    .services-grid { grid-template-columns: 1fr; }
    .notice-block { padding: 40px 20px; gap: 20px; }
    .notice-block .accent-col { width: 50px; height: 5px; }
    .notice-block p { font-size: 16px; }

    .top-bar { padding: 20px 20px 0; }
    .content-area { padding: 0 0 20px; }
    .text-block { padding: 30px 20px; }
    .deco-number { font-size: 120px; }
}

@media (max-width: 480px) {
    body { padding: 10px 5px; }
    h1 { font-size: 28px; }
    .intro-text { font-size: 16px; }
    .content-box-gray p { font-size: 14px; }
    .service-card h3 { font-size: 16px; }
}

/* Gallery Styles */
.gallery-section {
    padding: 0 0 80px;
}

.gallery-section h2 {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 40px;
    letter-spacing: -0.03em;
    border-left: 5px solid var(--primary-orange);
    padding-left: 15px;
}

.gallery-category {
    margin-bottom: 50px;
}

.gallery-category h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gallery-img-large {
    grid-column: 1 / -1;
    height: 400px !important;
}

@media (max-width: 1024px) {
    .gallery-section { padding: 0 0 40px; }
}

@media (max-width: 768px) {
    .gallery-section { padding: 0 0 40px; }
    .gallery-section h2 { font-size: 24px; }
    .gallery-category h3 { font-size: 18px; }
    .gallery-grid img { height: 200px; }
    .gallery-img-large { height: 250px !important; }
}
@media (max-width: 650px) {
    .back-arrow {
        top: 100px !important;
    }
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
    justify-items: center;
}

.certificates-grid img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.certificates-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    animation: scaleUp 0.3s forwards;
}

@keyframes scaleUp {
    to { transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-orange);
}
