/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f3be32;          /* Primary background gold color */
    --text-color: #1a1918;        /* Dark charcoal/black for text */
    --accent-color: #1a1918;      /* Borders and lines */
    --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
    --font-body: 'Playfair Display', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, sans-serif;
}

/* ==========================================================================
   BODY & BACKGROUND OPACITY CONTROL
   ========================================================================== */
body {
    position: relative;
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    
    /* Base background color underneath the image */
    background-color: var(--bg-color); 
}

/* Background image overlay layer */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Keeps the background image behind all text content */
    
    /* Path to your background image */
    background-image: url('/Matlock2026/Images/2026web-bg.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    
    /* Adjust this value between 0.0 (completely invisible) and 1.0 (fully opaque) */
    opacity: 0.6; 
}

/* ==========================================================================
   LOGO IMAGE STYLING
   ========================================================================== */
.site-header {
    margin-bottom: 2rem;
    text-align: left;
}

.site-logo-img {
    max-width: 220px;  /* Adjust this width based on how large you want your logo to appear */
    width: 100%;       /* Ensures it shrinks nicely on smaller mobile screens */
    height: auto;      /* Preserves aspect ratio */
    display: block;
}

/* ==========================================================================
   LAYOUT CONTAINER (Optimized for Mobile/Tablet)
   ========================================================================== */
.page-container {
    max-width: 680px; /* Perfect width matching portrait iPad/Tablet proportions */
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* ==========================================================================
   INDIVIDUAL TEXT BOX CARDS WITH OPACITY CONTROL
   ========================================================================== */
.hero-section,
.specialization-section,
.site-footer {
    /* 
       rgba(243, 190, 50, ALPHA)
       243, 190, 50 is the RGB code for your brand yellow (#f3be32)
       Change 0.85 below to adjust transparency:
    */
    background-color: rgba(243, 190, 50, 0.15); 
    
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    /* Optional: Improves readability over semi-transparent backgrounds */
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
}

/* ==========================================================================
   HEADER / LOGO
   ========================================================================== */
.site-header {
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-icon {
    width: 90px;
    height: auto;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.brand-name {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-color);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    margin-bottom: 2rem;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-text {
    font-size: 0.92rem;
    line-height: 1.6;
    font-weight: 400;
    text-align: justify;
}

/* ==========================================================================
   DIVIDERS
   ========================================================================== */
.divider {
    border: none;
    border-top: 1px solid var(--accent-color);
    width: 3.5rem;
    margin: 2rem 0;
    opacity: 0.8;
}

/* ==========================================================================
   SPECIALIZATION / SERVICES
   ========================================================================== */
.specialization-section {
    margin-bottom: 2rem;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.service-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    align-items: start;
}

.service-number {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    padding-top: 0.2rem;
}

.service-content {
    border-left: 1px solid var(--accent-color);
    padding-left: 1rem;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.service-desc {
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ==========================================================================
   FOOTER & ADDRESS DETAILS
   ========================================================================== */
.company-note {
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.site-footer {
    margin-top: 2rem;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-col {
    min-width: 140px;
}

.footer-col:first-child {
    border-right: 1px solid var(--accent-color);
    padding-right: 2rem;
}

.footer-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.footer-address, 
.footer-email {
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.03em;
    font-family: var(--font-sans);
}

.footer-email {
    color: var(--text-color);
    text-decoration: none;
}

.footer-email:hover {
    text-decoration: underline;
}

.footer-copyright {
    font-family: "DIN", "DIN 2014", "Barlow", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.75rem;
    line-height: 1.6;
}

.footer-copyright p {
    font-family: inherit; /* Inherits the DIN/sans-serif font from .footer-copyright */
    margin-bottom: 0.25rem;
}

.privacy-link {
    color: var(--text-color);
    text-decoration: underline;
}

/* ==========================================================================
   POTATO PRODUCTIONS LOGO STYLING
   ========================================================================== */
.company-branding {
    margin-bottom: 2rem;
}

.potato-logo-img {
    max-width: 388px; /* Adjust this width based on how large you want the logo */
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.75rem; /* Spacing between the logo and text */
}

.company-note {
    /* Uses DIN first if available on the system, followed by Google Barlow, Montserrat, and generic sans-serif */
    font-family: "DIN", "DIN 2014", "Barlow", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;      /* Slightly refined size */
    font-weight: 500;        /* Medium weight matching the logo font strength */
    letter-spacing: 0.02em;  /* Slight letter spacing for crispness */
    color: var(--text-color);
    margin-bottom: 0;
} 

/* ==========================================================================
   BACK TO HOMEPAGE BUTTON STYLING
   ========================================================================== */
.back-home-btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--text-color);
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.back-home-btn:hover {
    background-color: var(--text-color);
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Smart Phone Layout Adjustments */
@media (max-width: 480px) {
    .page-container {
        padding: 1.5rem 1.25rem;
    }

    .hero-heading {
        font-size: 1rem;
    }

    .service-title {
        font-size: 0.98rem;
    }

    .footer-columns {
        flex-direction: column;
        gap: 1.25rem;
    }

    .footer-col:first-child {
        border-right: none;
        border-bottom: 1px solid var(--accent-color);
        padding-right: 0;
        padding-bottom: 1.25rem;
    }
}

/* iPad / Tablet Layout Adjustments */
@media (min-width: 481px) and (max-width: 1024px) {
    .page-container {
        padding: 3rem 2.5rem;
    }
}