/*
Theme Name: TargetWeb
Theme URI: https://targetweb.com
Author: TargetWeb
Author URI: https://targetweb.com
Description: TargetWeb — a standalone WordPress theme for equipment dealer sites, with a WooCommerce shop, drag-and-drop homepage builder, and branded page templates.
Version: 2.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: targetweb
*/

/* ============================================================
   Base reset
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--font-size-base, 16px);
    line-height: 1.6;
    color: var(--color-dark, #2a2a2a);
    background: #ffffff;
}

img,
svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--color-primary, #e63030);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul,
ol {
    margin: 0 0 1.5em;
    padding-left: 1.4em;
}

table {
    border-collapse: collapse;
    width: 100%;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading, 'Oswald', sans-serif);
    color: var(--color-dark, #2a2a2a);
    line-height: 1.25;
    margin: 0 0 0.6em;
    font-weight: 600;
}

h1 { font-size: var(--font-size-h1, 52px); }
h2 { font-size: var(--font-size-h2, 38px); }
h3 { font-size: var(--h3, 28px); }
h4 { font-size: var(--h4, 22px); }
h5, h6 { font-size: var(--h5, 18px); }

p {
    margin: 0 0 1.2em;
}

p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Layout helpers — used across every template/section
   ============================================================ */
.tw-wrap {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.tw-section {
    padding-top: var(--space-lg, 80px);
    padding-bottom: var(--space-lg, 80px);
}

.tw-section-title {
    font-size: var(--section-title-size, 38px);
    margin: 0 0 0.5em;
}

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

/* ============================================================
   Forms
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 0;
    background: #fff;
    color: var(--color-dark, #2a2a2a);
    outline: none;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary, #e63030);
}

/* ============================================================
   WordPress core / editor classes
   ============================================================ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.alignleft {
    float: left;
    margin: 0 1.5em 1.5em 0;
}

.alignright {
    float: right;
    margin: 0 0 1.5em 1.5em;
}

.aligncenter {
    display: block;
    margin: 0 auto 1.5em;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 13px;
    color: #777;
    text-align: center;
}

.gallery {
    display: grid;
    grid-gap: 12px;
    margin: 0 0 1.5em;
}

/* ============================================================
   Body state classes (see targetweb_body_classes() in functions.php)
   ============================================================ */
body.woo-page .tw-wrap {
    max-width: 1400px;
}
