/*
Theme Name: DynaScrew
Theme URI: http://www.dynascrew.com
Author: Kinemach Engineering
Description: Precision Auto Screwing Systems - Brochure Match (Clean White).
Version: 3.0
*/

/* DynaScrew Brochure Guidelines */
:root {
    --brand-red: #A51B1A;
    /* Primary Accent - kept as requested */
    --text-black: #111111;
    /* Headings - softened from pure black */
    --text-grey: #555555;
    /* Body Text - lighter for contrast */
    --bg-white: #FFFFFF;
    /* Main Background */
    --bg-light: #F8F9FA;
    /* Section Backgrounds - much softer gray */
    --border-grey: #EAEAEA;
    /* Dividers - lighter, less intrusive */

    --font-heading: 'Bebas Neue', sans-serif;
    /* Modern, condensed heading font */
    --font-body: 'Inter', sans-serif;
    /* Unified typography for clean look */

    --container-width: 1440px;
    --header-height: 80px;

    /* New UI/UX Tokens */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
    --radius-soft: 8px;
    --radius-pill: 50px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-grey);
    background-color: var(--bg-white);
    line-height: 1.6;
    /* Increased for breathability */
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Added for premium text rendering */
}

/* Loader Animation */
.loader-spin {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-black);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-transform: uppercase;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    /* Slightly softened weight */
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Import Fonts - Matching Brochure (Bebas Neue for Headings, Inter for Body) */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

/* Buttons */
.cta-button,
.btn-primary {
    display: inline-block;
    background-color: var(--brand-red);
    color: #FFFFFF;
    padding: 12px 35px;
    border-radius: var(--radius-pill);
    /* Modern pill shape */
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smoother transition */
    box-shadow: 0 4px 10px rgba(165, 29, 36, 0.2);
    /* Soft colored shadow */
}

.cta-button:hover,
.btn-primary:hover {
    background-color: #8a171e;
    /* Darker red instead of black for cohesion */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(165, 29, 36, 0.3);
}

.btn-outline {
    border: 1.5px solid var(--text-black);
    /* Softer thin border */
    color: var(--text-black);
    padding: 10px 30px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--text-black);
    color: white;
}

/* Header */
.site-header {
    background: var(--bg-white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    /* Softer shadow */
    border-bottom: 1px solid var(--border-grey);
    /* Crisp line */
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Styles Reset for Image */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
    width: auto;
    max-height: 60px;
    /* Ensure it fits in header */
}

.main-navigation > ul {
    display: flex;
    gap: 40px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    color: var(--text-grey);
    display: block;
    padding: 10px 0;
}

.main-navigation a:hover {
    color: var(--brand-red);
}

/* Dropdown Sub-menu */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border-grey);
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-hover);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    z-index: 2000;
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation .sub-menu a {
    font-family: var(--font-body); /* Better readability for sub-items */
    font-size: 15px;
    padding: 8px 20px;
    font-weight: 400;
    text-transform: none;
    border-bottom: inset transparent;
}

.main-navigation .sub-menu a:hover {
    background-color: var(--bg-light);
    color: var(--brand-red);
}

/* Footer */
.site-footer {
    background-color: var(--brand-red);
    padding: 80px 0 30px;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-widget h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid #ffffff;
    display: inline-block;
    padding-bottom: 5px;
    color: #ffffff;
}

.footer-links li a {
    color: #ffffff;
    opacity: 0.9;
}

.footer-links li a:hover {
    color: #ffffff;
    opacity: 1;
    text-decoration: underline;
}

.footer-widget p a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-widget p a:hover {
    color: #ffffff;
    opacity: 0.8;
}

/* --- BROCHURE SPECIFIC LAYOUTS --- */
.intro-benefits {
    background-color: #ffffff;
}

/* Intro Section (Left Text, Right Benefits) */
.intro-layout {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1fr;
    /* 3-Column Layout */
    gap: 40px;
    align-items: flex-start;
    padding: 80px 0 80px 0;
}

.intro-text p {
    text-align: justify;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Benefits List (Pill shapes/Cards) */
.benefit-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: var(--radius-soft);
    padding: 10px 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-grey);
}

.benefit-row:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.benefit-icon {
    font-size: 2rem;
    color: #888;
    /* Muted icon color */
    flex-shrink: 0;
    width: 50px;
    text-align: center;
}

.benefit-content h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-black);
}

.benefit-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-grey);
}

.highlight-red {
    color: var(--brand-red);
    font-weight: 700;
}

/* Product Tree Diagram */
.tree-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
}

.tree-node {
    background: var(--brand-red);
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 40px;
    position: relative;
}

.tree-branches {
    display: flex;
    justify-content: center;
    gap: 40px;
    width: 100%;
    position: relative;
}

/* Connecting Lines (CSS Pseudo-elements) */
.tree-node::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: var(--brand-red);
}

.branch-node {
    background: var(--text-black);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-align: center;
    min-width: 150px;
    position: relative;
}

/* Leaf Nodes (The Products) */
.product-grid-disp {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-top: 40px;
    border-top: 2px solid var(--brand-red);
    /* Connector line */
    margin-top: 20px;
}

.product-item {
    background: white;
    border: 1px solid var(--border-grey);
    padding: 30px 20px;
    text-align: center;
    border-radius: var(--radius-soft);
    transition: all 0.3s ease;
}

.product-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.product-item img {
    height: 150px;
    margin: 0 auto 15px;
    object-fit: contain;
}

.product-item h5 {
    font-size: 1rem;
    color: var(--brand-red);
    margin-bottom: 5px;
}

/* Principle & Technology */
.tech-hero {
    background: var(--bg-white);
    padding: 80px 0;
    position: relative;
}

.tech-title-large {
    font-size: 4rem;
    line-height: 0.9;
    color: var(--text-black);
    margin-bottom: 40px;
    max-width: 400px;
}

.tech-visual-container {
    position: relative;
    padding: 40px;
    background: white;
    /* Simulate brochure white bg */
}

/* Specific Red Line Callouts */
.callout {
    border-left: 3px solid var(--brand-red);
    padding-left: 15px;
    margin-bottom: 30px;
}

.callout h4 {
    color: var(--brand-red);
    font-size: 1.2rem;
    margin-bottom: 10px;
}


/* --- HOW IT WORKS (Revamp) --- */
.process-section {
    padding: 100px 0;
    background: #ffffff;
}

.series-block {
    margin-bottom: 80px;
}

.series-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.series-title {
    color: var(--brand-red);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.process-visual-strip {
    background-color: #ebebeb;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    /* For connectors if needed */
}

.visual-step {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    position: relative;
    /* Placeholder for image */
    height: 200px;
    /* Adjust as needed */
}

.visual-step img {
    object-position: bottom;
}

/* Vertical Divider Lines between visual steps */
.visual-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    border-right: 1px dashed #ddd;
}

.process-text-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.process-step-text h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 10px;
    text-transform: none;
    /* Keep title case */
}

.process-step-text p {
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.5;
}