/* ==========================================================================
   Design System: Deep Red Wine, Warm Gold, & Comfortable Cream
   ========================================================================== */

:root {
    --bg-main: #FAF9F6;       /* Soft cream / off-white, easy on the eyes */
    --bg-dark: #1E0B0E;       /* Near-black with a hint of deep wine */
    --wine-primary: #581825;  /* Deep burgundy / red wine accent */
    --gold-secondary: #C5A059;/* Muted, warm gold accent */
    --text-dark: #2B2626;     /* Charcoal with warm undertones for high readability */
    --text-light: #FAF9F6;
    --border-color: #E6E1DA;  /* Subtle grid layout lines */
    
    /* Texas Heritage Font Stacks */
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Inline Header Logo Layout --- */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;              /* Spacing between the graphic asset and brand text */
    font-weight: 700;
    font-size: 1.15rem;        /* Scaled down to match header hierarchy */
    color: var(--wine-primary);
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
}

/* Tactile letter indentation effect over the cream header track */
.embossed-title {
    text-shadow: 
        -1px -1px 1px rgba(30, 11, 14, 0.15), 
        1px 1px 1px rgba(255, 255, 255, 0.8);
    letter-spacing: -0.01em;
}

/* Control the size of the header logo image */
.header-logo-img {
    height: 28px;              /* Scaled to match the tight line-height of logo text */
    width: auto;               /* Keeps aspect ratio locked so it does not distort */
    object-fit: contain;
}

/* --- Base Document Rules --- */
html {
    scroll-behavior: smooth;
    font-family: var(--font-body); 
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-size: 0.95rem;           /* Compact baseline for clean body copy readable flow */
    line-height: 1.6;
}

body {
    padding: 0;                /* Allows full-width background breakout on footer */
}

/* --- Layout Containers --- */
header, main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}

/* --- Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--wine-primary);
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--wine-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(88, 24, 37, 0.15);
}

.btn-secondary {
    border: 1px solid var(--gold-secondary);
    color: var(--wine-primary);
    background: transparent;
}

.btn-secondary:hover {
    background-color: var(--wine-primary);
    color: var(--text-light);
    border-color: var(--wine-primary);
}

/* --- Hero Section --- */
#hero {
    padding: 5rem 0;            /* Tightened spacing below the navigation divider line */
    max-width: 850px;
}

#hero h1 {
    font-size: 1.5rem;         /* Clean, executive font scale matching design language */
    line-height: 1.3;
    color: var(--wine-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
}

#hero p {
    font-size: 1.05rem;          
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

/* --- Structural Hero Artwork Stack --- */
.hero-banner-container {
    width: 100%;
    margin-bottom: 3.5rem;     /* Clean separation before primary CTA button */
}

/* Main Landscape Print Frame */
.hero-banner-img {
    width: 100%;
    height: auto;              /* Scales naturally keeping full print frame visible */
    border-radius: 6px;        
    border: 1px solid var(--border-color);
    display: block;            
}

/* --- Headings --- */
h2 {
    font-size: 1.4rem;          /* Clean and compact header scaling */
    color: var(--wine-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    font-family: var(--font-heading);
    
    /* Fine-Line Accent Grid */
    display: flex;
    align-items: center;
    gap: 1rem;
}

h2::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 2px;
    background-color: var(--gold-secondary); /* Sharp strike of gold before section titles */
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;         /* Compact font profiles inside cards */
}

section > p {
    font-size: 0.95rem;
    margin-bottom: 3rem;
    max-width: 650px;
    padding-left: calc(32px + 1rem); /* Aligns body block directly with h2 text edge */
}

/* --- Grids & Structural Cards --- */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.card {
    padding: 2.5rem;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--wine-primary); /* Uniform accent top boundary line */
    
    /* Tactile Card Hovers Base Setup */
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--wine-primary);
}

/* --- Services & Pricing --- */
.price-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.price-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--wine-primary); 
    position: relative;
    
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.price-card h3 {
    margin-bottom: 0.5rem;
    color: var(--wine-primary);
}

.price {
    display: block;
    font-size: 0.9rem;          
    font-weight: 700;
    color: var(--gold-secondary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-card ul {
    list-style: none;
}

.price-card li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.price-card li::before {
    content: "•";
    color: var(--gold-secondary);
    font-weight: bold;
    font-size: 1.25rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
}

/* --- Portfolio / Proven Infrastructure Grid --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Spreads out live environments cleanly side-by-side */
    gap: 2.5rem;
}

.portfolio-item {
    background: #ffffff;
    padding: 3rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--wine-primary); 
    
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-item h3 {
    margin-bottom: 1rem;
    color: var(--wine-primary);
}

.portfolio-item p {
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.portfolio-item a {
    color: var(--wine-primary);
    font-weight: 600;
    text-decoration: none;
}

.portfolio-item a:hover {
    color: var(--gold-secondary);
}

/* --- Shared Tactile Hover Trigger (Applies to all actionable cards) --- */
.card:hover, .price-card:hover, .portfolio-item:hover {
    transform: translateY(-4px);                  /* Clean micro-lift */
    box-shadow: 0 12px 24px rgba(30, 11, 14, 0.06); /* Soft shadow using dark wine base tint */
    border-color: var(--gold-secondary);           /* Frame transitions cleanly to gold */
}

/* --- Forms --- */
form {
    max-width: 600px;
    background: #ffffff;
    padding: 3rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-left: calc(32px + 1rem); /* Aligns input fields beautifully with text above */
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

input, textarea {
    width: 100%;
    padding: 0.85rem;
    margin-bottom: 1.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--wine-primary);
}

/* --- Footer --- */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 6rem 1.5rem;
    margin-top: 4rem;
    border-top: 4px solid var(--gold-secondary); /* Clean gold architectural top rail */
    text-align: center;
}

footer p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .grid, .price-container, .portfolio-grid {
        grid-template-columns: 1fr; /* Snaps cards to single vertical columns on mobile view */
        gap: 1.5rem;
    }
    #hero h1 {
        font-size: 1.5rem;          /* Drops scale gracefully on tighter phone windows */
    }
    section > p, form {
        padding-left: 0;
        margin-left: 0;             /* Flattens off-set alignment layout on small devices */
    }
    h2::before {
        display: none;              /* Strips decorative gold prefix line on narrow mobile widths */
    }
    nav {
        display: none;              /* Clean default mobile navigation setup hook */
    }
}