/* 
  Concrete Calculator Premium Styles
  Brand Colors: 
  - Primary Green: #4CAF50
  - Accent Orange: #FF9800
  - Background: #F5F5F5
  - Foundation: #333333
*/

:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --accent: #FF9800;
    --dark: #333333;
    --light: #FFFFFF;
    --bg: #F5F5F5;
    --gray: #999999;
    --border: #DDDDDD;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --font-body: 'Roboto', sans-serif;
    --font-head: 'Oswald', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: var(--light);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo span span {
    color: var(--dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background-color: var(--dark);
    color: var(--light);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Calculator Styles */
.tool-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-bottom: 50px;
}

.calculator-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.project-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.type-tab {
    padding: 15px;
    text-align: center;
    background: var(--bg);
    border-radius: var(--radius);
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.type-tab.active {
    background: var(--primary);
    color: var(--light);
}

.type-tab svg {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto 10px;
    fill: currentColor;
}

.section-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    border-bottom: 2px solid var(--bg);
    padding-bottom: 5px;
}

.grid-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray);
}

.input-group input,
.input-group select {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}

#preview-container {
    margin-top: 30px;
    background: #000;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
}

/* Sidebar Results */
.sidebar-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-card {
    background: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
}

.stat-item {
    margin-bottom: 20px;
}

.stat-item .label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
}

.stat-item .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-item.accent .value {
    color: var(--accent);
}

.breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.breakdown-item {
    background: var(--bg);
    padding: 10px;
    border-radius: 4px;
}

.breakdown-item span {
    display: block;
    font-size: 0.75rem;
    color: var(--gray);
}

.breakdown-item strong {
    font-size: 1rem;
}

.action-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn {
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
}

.btn-secondary {
    background: var(--dark);
    color: var(--light);
}

.btn:hover {
    opacity: 0.9;
}

.embed-box {
    background: var(--bg);
    padding: 10px;
    font-family: monospace;
    font-size: 0.7rem;
    border-radius: 4px;
    position: relative;
    border: 1px solid var(--border);
}

.embed-copy {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--gray);
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    cursor: pointer;
}

/* Content Area */
.content-area {
    padding: 60px 0;
}

.content-area h2 {
    font-family: var(--font-head);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.content-area h3 {
    margin: 30px 0 15px;
    color: var(--primary);
}

.content-area p {
    margin-bottom: 20px;
}

/* Footer */
.main-footer {
    background: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info .logo {
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-info p {
    opacity: 0.7;
}

.footer-grid h4 {
    font-family: var(--font-head);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 10px;
}

.footer-grid ul a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
}

.footer-grid ul a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--light);
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Ad Sense Placeholders */
.ad-placeholder {
    max-width: 100%;
    margin: 20px auto;
}