/* ============================================
   DIYDaddyBlogs.com — Pegboard & Craft Theme
   Wood textures, Pegboard, Sticky Notes
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Kalam:wght@400;700&family=Nunito:wght@400;700;900&display=swap');

:root {
    --bg-wood: #d5b895;
    /* Light pine/kraft paper */
    --color-peg-hole: #8c6a49;
    --color-sticky: #fff9c4;
    /* Yellow post-it */
    --color-blueprint: #2196F3;
    /* Blueprint blue */
    --color-marker-red: #d32f2f;
    --text-main: #3e2723;
    /* Dark brown almost black */

    --font-heading: 'Kalam', cursive;
    /* Marker heading */
    --font-hand: 'Caveat', cursive;
    /* Handwritten notes */
    --font-ui: 'Nunito', sans-serif;
    /* Clean readable rounded */

    --shadow-soft: 3px 5px 15px rgba(0, 0, 0, 0.15);
    --shadow-float: 5px 10px 20px rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-ui);
    color: var(--text-main);
    background-color: var(--bg-wood);
    /* PEGBOARD PATTERN */
    background-image: radial-gradient(var(--color-peg-hole) 20%, transparent 25%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    line-height: 1.6;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

a {
    color: var(--color-blueprint);
    text-decoration: underline;
    font-weight: 700;
    transition: 0.2s;
}

a:hover {
    color: var(--color-marker-red);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Nav (Tape strip) --- */
.main-nav {
    background: #f5f5f5;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 2px dashed #ccc;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-main);
    text-decoration: none;
    transform: rotate(-1deg);
    display: inline-block;
}

.logo span {
    color: var(--color-marker-red);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links a {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    color: #555;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--color-blueprint);
    transform: scale(1.1) rotate(2deg);
    display: inline-block;
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 50px 0;
    background: rgba(255, 255, 255, 0.7);
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
    border: 4px solid #fff;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 15px;
    color: var(--color-blueprint);
    text-shadow: 2px 2px 0px #fff;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 700;
}

/* --- Tools Grid (Sticky Notes & Paper) --- */
.tool-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 100px;
}

/* White Card / Blueprint Tool */
.tool-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-float);
    position: relative;
}

/* Tape decoration */
.tool-card::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 120px;
    height: 35px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.panel-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-blueprint);
    position: relative;
}

.panel-header h2 {
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Yellow Sticky Note Tool */
.tool-card.sticky {
    background: var(--color-sticky);
    border-bottom: 3px solid var(--color-blueprint);
    transform: rotate(1deg);
}

.tool-card.sticky .panel-header {
    border-bottom: 2px dashed #d1c4e9;
}

.tool-card.sticky::before {
    top: -10px;
    left: 10px;
    transform: rotate(-5deg);
    width: 60px;
    height: 25px;
    background: rgba(255, 0, 0, 0.2);
    border: none;
    box-shadow: none;
}

/* Red tape */

/* Forms */
.dad-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

@media(max-width: 600px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.input-grp {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-grp label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4e342e;
    margin-bottom: 5px;
}

.input-grp .hint {
    font-family: var(--font-hand);
    font-size: 1.2rem;
    color: var(--color-marker-red);
    margin-top: -5px;
    margin-bottom: 5px;
}

.dad-input {
    background: #fafafa;
    border: 2px solid #ccc;
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 1.2rem;
    padding: 12px 15px;
    transition: 0.2s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dad-input:focus {
    outline: none;
    border-color: var(--color-blueprint);
    background: #fff;
}

.dad-btn {
    background: var(--color-blueprint);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 0 #1565C0, 0 5px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: 0.1s;
    transform: translateY(0);
}

.dad-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #1565C0;
}

/* Tape Measure Visualizer (Tool 1) */
.tape-measure {
    height: 60px;
    background: #FFEB3B;
    border: 2px solid #333;
    margin: 20px 0;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.tape-marks {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: repeating-linear-gradient(to right, #333 0, #333 2px, transparent 2px, transparent 20px);
    background-size: 20px 100%;
}

.tape-marks-half {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background-image: repeating-linear-gradient(to right, transparent 0, transparent 9px, #333 9px, #333 11px, transparent 11px, transparent 20px);
    background-size: 20px 100%;
}

.tape-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-marker-red);
    box-shadow: 0 0 5px var(--color-marker-red);
    transition: left 0.3s ease;
    left: 0%;
    z-index: 10;
}

.tape-label {
    position: absolute;
    top: 65px;
    left: 0%;
    transform: translateX(-50%);
    font-family: var(--font-hand);
    font-size: 1.5rem;
    color: var(--color-marker-red);
    transition: left 0.3s ease;
    white-space: nowrap;
}

/* Readouts */
.readout-box {
    background: rgba(33, 150, 243, 0.1);
    border: 2px dashed var(--color-blueprint);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    display: none;
    text-align: center;
}

.readout-box.active {
    display: block;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.readout-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.readout-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-blueprint);
}

.readout-sub {
    font-family: var(--font-hand);
    font-size: 1.5rem;
    color: var(--color-marker-red);
}

/* --- Ads / Sponsored --- */
.ad-slot {
    background: #fff;
    border: 2px solid #eee;
    padding: 15px;
    margin: 30px 0;
    text-align: center;
    position: relative;
    border-radius: 8px;
    transform: rotate(-1deg);
}

.ad-slot::before {
    content: 'ADVERTISEMENT';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #eee;
    padding: 2px 10px;
    font-size: 0.7rem;
    color: #888;
    border-radius: 4px;
}

.ad-img img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.ad-txt {
    margin-top: 10px;
    font-family: var(--font-ui);
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
}

.ad-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

.ad-slot:hover {
    border-color: var(--color-blueprint);
    transform: rotate(0deg);
    transition: 0.2s;
}

/* --- Subpages --- */
.text-panel {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-float);
    margin-bottom: 60px;
    line-height: 1.8;
}

.text-panel h2 {
    color: var(--color-blueprint);
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.text-panel p,
.text-panel li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.text-panel ul {
    padding-left: 20px;
    list-style-type: square;
}

/* --- Footer --- */
.garage-footer {
    background: #3e2723;
    padding: 40px 0;
    text-align: center;
    color: #d7ccc8;
    margin-top: auto;
    border-top: 10px solid var(--color-blueprint);
    box-shadow: inset 0 10px 10px rgba(0, 0, 0, 0.3);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: var(--font-ui);
    color: #d7ccc8;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-cr {
    font-family: var(--font-hand);
    font-size: 1.4rem;
    color: #a1887f;
}