/* Color Palette Mapping */
:root {
    --bg-dark: #0f172a;          /* Deep dark slate for page background depth */
    --bg-panel: #1e293b;         /* Industrial Slate: primary panels and cards */
    --accent-copper: #d97706;    /* Copper Kettle: Primary brand action and accents */
    --accent-blue: #2563eb;      /* Signal Blue: Supporting logic & signal paths */
    --text-silver: #e2e8f0;      /* Stainless Silver: Crisp light metallic text */
    --text-muted: #94a3b8;       /* Slaty gray for subheadings */
    --border-color: #334155;     /* Structural border color */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-silver);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 90px 0;
    
    /* The Fix: Tells the browser to stop scrolling exactly 90px early */
    scroll-margin-top: 90px; 
}


h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

/* Header & Logo */
header {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(15, 23, 42, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg {
    width: 44px;
    height: 44px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.1;
    letter-spacing: 1px;
}

.logo-title span {
    color: var(--accent-copper);
}

.logo-tagline {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-blue);
    margin-top: 2px;
    font-weight: 700;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px; /* Spaces out "Services" and "Get a Quote" beautifully */
}
/* Style the text link (Services) while ignoring the button */
nav ul li a:not(.btn) {
    color: var(--text-silver);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative; /* Anchor point for our custom underline */
    padding-bottom: 6px; /* Creates a clean gap for the underline to sit in */
    transition: color 0.3s ease;
}

/* Create the invisible custom underline using a pseudo-element */
nav ul li a:not(.btn)::after {
    content: ''; /* Required for the ghost element to exist */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-copper); /* Custom Copper Kettle color */
    
    /* The Magic: Start compressed to a scale of 0 (invisible) */
    transform: scaleX(0);
    transform-origin: bottom left; /* Expands from left-to-right */
    transition: transform 0.3s ease; /* Controls the speed of the slide */
}

/* Expand the underline to full size (scale 1) only on hover */
nav ul li a:not(.btn):hover::after {
    transform: scaleX(1);
}

/* Make sure the text color still shifts slightly on hover */
nav ul li a:not(.btn):hover {
    color: var(--text-silver); /* Keeps text steady while line slides in */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    /* Crucial: transition all properties smoothly over 0.3 seconds */
    transition: all 0.3s ease; 
}

.btn-primary {
    background-color: var(--accent-copper);
    color: #fff;
}

.btn-primary:hover {
    background-color: #b45309; /* Slightly darker copper kettle */
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1.5px solid var(--border-color);
    color: var(--text-silver);
    background: transparent;
}

.btn-secondary:hover {
    border-color: var(--accent-blue); /* Shift border to Signal Blue */
    color: var(--text-silver);       /* Keep the text clean and bright */
    
    /* The Glow: Horizontal offset, Vertical offset, Blur radius, Color with transparency */
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.5); 
    
    /* Adds a very subtle blue tint to the inside of the button */
    background-color: rgba(37, 99, 235, 0.05); 
    
    /* Tiny upward lift to make the button feel clickable */
    transform: translateY(-1px); 
}


/* Hero */
.hero {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 45%),
                radial-gradient(circle at bottom left, rgba(217, 119, 6, 0.05), var(--bg-dark));
    padding: 140px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    background-color: rgba(37, 99, 235, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 24px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Card Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 45px 35px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.card-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.card-blue { background-color: var(--accent-blue); }
.card-copper { background-color: var(--accent-copper); }
.card-silver { background-color: #cbd5e1; }

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--text-silver);
}

.card p {
    color: var(--text-muted);
}

/* Form Styling */
.contact-box {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 50px 40px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-box h2 {
    text-align: left;
    margin-bottom: 10px;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-silver);
    padding: 12px 16px;
    border-radius: 6px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
}

.feedback-msg {
    margin-top: 20px;
    font-weight: 600;
    text-align: center;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background-color: var(--bg-dark);
}
