/*
Theme Name: Dull Automation
Theme URI: https://dull-automation.com
Author: Dull Automation
Description: A minimal black and white WordPress theme for business automation services. Features clean typography with sans-serif headlines, serif body text, and typewriter accents.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dull-automation
*/

/* 
===================================
FONT STACK CONFIGURATION
===================================
Sans-serif headlines: System font stack for performance
Serif body: Georgia with elegant fallbacks
Typewriter: Courier New for quotes and accents
*/

:root {
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', Times, serif;
    --font-mono: 'Courier New', Courier, monospace;
}

/* 
===================================
RESET & BASE STYLES
===================================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-serif);
    line-height: 1.7;
    color: #000;
    background: #fff;
}

/* 
===================================
TYPOGRAPHY
===================================
*/

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

/* Typewriter styling for blockquotes */
blockquote {
    font-family: var(--font-mono);
    font-size: 1rem;
    padding: 2rem;
    border-left: 4px solid #000;
    margin: 2rem 0;
    background: #f5f5f5;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    opacity: 0.2;
}

code, pre {
    font-family: var(--font-mono);
    background: #f5f5f5;
}

/* 
===================================
LAYOUT
===================================
*/

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-header {
    padding: 2rem 0;
    border-bottom: 1px solid #000;
}

.site-footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid #000;
    margin-top: 4rem;
}

/* 
===================================
NAVIGATION
===================================
*/

.main-navigation {
    font-family: var(--font-sans);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.2s;
}

.main-navigation a:hover {
    opacity: 0.6;
}

/* 
===================================
BUTTONS & FORMS
===================================
*/

.wp-block-button__link,
.button,
button[type="submit"] {
    font-family: var(--font-sans);
    background: #000;
    color: #fff;
    padding: 0.875rem 2rem;
    border: 2px solid #000;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}

.wp-block-button__link:hover,
.button:hover,
button[type="submit"]:hover {
    background: #333;
    color: #fff;
}

.is-style-outline .wp-block-button__link {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

.is-style-outline .wp-block-button__link:hover {
    background: #f5f5f5;
    color: #000;
}

/* Box shadows for cards */
.wp-block-group.has-white-background-color.has-border-color {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    font-family: var(--font-serif);
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #000;
    background: #fff;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #666;
}

/* 
===================================
SERVICES LIST (AUTOMATION PAGE)
===================================
*/

.service-item {
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.service-item:last-child {
    border-bottom: none;
}

.service-title {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-description {
    font-family: var(--font-serif);
    color: #333;
}

.service-meta {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

/* 
===================================
TESTIMONIALS
===================================
*/

.testimonial {
    padding: 3rem;
    border: 2px solid #000;
    margin: 2rem 0;
}

.testimonial-text {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-family: var(--font-sans);
    font-weight: 700;
    text-align: right;
}

.testimonial-company {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: #666;
    text-align: right;
}

/* 
===================================
BLOG
===================================
*/

.post-list {
    margin: 3rem 0;
}

.post-item {
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.post-title a {
    color: #000;
    text-decoration: none;
}

.post-title a:hover {
    text-decoration: underline;
}

.post-meta {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-excerpt {
    font-family: var(--font-serif);
}

.read-more {
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* 
===================================
UTILITY CLASSES
===================================
*/

.text-center {
    text-align: center;
}

.mt-large {
    margin-top: 4rem;
}

.mb-large {
    margin-bottom: 4rem;
}

.divider {
    height: 1px;
    background: #000;
    margin: 3rem 0;
}

.accent-text {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* 
===================================
RESPONSIVE
===================================
*/

@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    blockquote {
        padding: 1.5rem;
    }
    
    .testimonial {
        padding: 2rem;
    }
}

/* 
===================================
CARD EQUAL HEIGHTS
===================================
*/

/* Make columns equal height */
.wp-block-columns {
    align-items: stretch !important;
}

.wp-block-column {
    display: flex !important;
}

/* Cards take full height of column */
.automation-card,
.benefit-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    height: 100% !important;
    width: 100% !important;
}

/* Center all content in cards */
.automation-card > *,
.benefit-card > * {
    width: 100%;
    text-align: center;
}

/* Push button to bottom of card */
.automation-card .wp-block-buttons,
.benefit-card .wp-block-buttons {
    margin-top: auto !important;
    justify-content: center !important;
    display: flex !important;
}

/* Force buttons to center */
.automation-card .wp-block-button,
.benefit-card .wp-block-button {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Box shadow for automation cards */
.automation-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Override WordPress button alignment defaults */
.wp-block-buttons.is-content-justification-center,
.wp-block-buttons.is-layout-flex {
    justify-content: center !important;
}

/* Footer link styling */
footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.7;
}
