/* ========================================
   BORU CONTRACTS - BASE STYLES
   Combined from original + modern CSS
   ======================================== */

/* Color Variables */
:root {
    --color-primary: #4ECDC4;
    --color-dark: #333;
    --color-text: #666;
    --color-light: #f8f9fa;
    --color-border: #ddd;
    --font-family: 'Open Sans', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
    --font-heading: 'Montserrat', "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
}

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

*, *:before, *:after { 
    -webkit-box-sizing: border-box; 
    -moz-box-sizing: border-box; 
    box-sizing: border-box; 
}

html {
    font-size: 62.5%;
    width: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body { 
    background: #fff;
    font-family: var(--font-family);
    font-weight: normal; 
    font-style: normal; 
    font-size: 16px; 
    line-height: 1.6;
    color: var(--color-text);
    position: relative; 
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, p, blockquote, th, td { 
    margin: 0; 
    padding: 0; 
    direction: ltr; 
}

h1, h2, h3, h4, h5, h6 { 
    font-family: var(--font-heading);
    font-weight: normal; 
    font-style: normal; 
    color: var(--color-text); 
    text-rendering: optimizeLegibility; 
    line-height: 1.2;
    margin-bottom: 14px; 
    margin-top: 14px; 
}

h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { 
    font-size: 60%; 
    color: #6f6f6f; 
    line-height: 0; 
}

h1 { 
    font-size: 48px;
    font-weight: 700;
}

h2 { 
    font-size: 42px;
    font-weight: 700;
}

h3 { 
    font-size: 24px;
}

h4 { 
    font-size: 20px; 
}

h5 { 
    font-size: 18px; 
}

h6 { 
    font-size: 16px; 
}

p { 
    font-family: inherit; 
    font-weight: normal; 
    font-size: 16px; 
    line-height: 1.6; 
    margin-bottom: 17px; 
}

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

p.lead { 
    font-size: 17.5px; 
    line-height: 1.6; 
    margin-bottom: 17px; 
}

aside p { 
    font-size: 13px; 
    line-height: 1.35; 
    font-style: italic; 
}

.subheader { 
    line-height: 1.3; 
    color: #6f6f6f; 
    font-weight: 300; 
    margin-bottom: 17px; 
}

em, i { 
    font-style: italic; 
    line-height: inherit; 
}

strong, b { 
    font-weight: bold; 
    line-height: inherit; 
}

small { 
    font-size: 60%; 
    line-height: inherit; 
}

code { 
    font-weight: bold; 
    background: #ffff99; 
}

/* ========================================
   LINKS
   ======================================== */

a img { 
    border: none; 
}

a { 
    color: var(--color-primary);
    text-decoration: none; 
    font-weight: bold; 
    line-height: inherit;
    transition: color 0.3s ease;
}

a:hover { 
    color: var(--color-dark); 
    text-decoration: none; 
}

a:focus { 
    color: var(--color-dark); 
}

p a, p a:visited { 
    line-height: inherit; 
}

/* ========================================
   LISTS
   ======================================== */

ul, ol, dl { 
    font-size: 16px; 
    line-height: 1.6; 
    margin-bottom: 17px; 
    list-style-position: outside; 
}

ul ul, ul ol, ol ol, ol ul { 
    margin: 0 0 0 30px; 
}

li { 
    margin-bottom: 8px;
    color: var(--color-text); 
}

dt { 
    margin-bottom: 8px; 
    font-weight: bold; 
}

dd { 
    margin-bottom: 13px; 
}

/* ========================================
   BUTTONS
   ======================================== */

.btn,
button,
input[type="button"],
input[type="submit"] {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary,
.boru-btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover,
.boru-btn-primary:hover {
    background-color: #45B7AA;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
}

.btn-secondary,
.boru-btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover,
.boru-btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.left { 
    float: left; 
}

.right { 
    float: right; 
}

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

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

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

.hide { 
    display: none; 
}

.hide-override { 
    display: none !important; 
}

.highlight { 
    background: #ffff99; 
}

.subtitle {
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.heading {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
}

.description {
    font-size: 18px;
    color: var(--color-text);
    line-height: 1.8;
    margin: 0;
}

/* Spacing */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 10px !important; }
.mt-2 { margin-top: 20px !important; }
.mt-3 { margin-top: 30px !important; }
.mt-4 { margin-top: 40px !important; }
.mt-5 { margin-top: 60px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 10px !important; }
.mb-2 { margin-bottom: 20px !important; }
.mb-3 { margin-bottom: 30px !important; }
.mb-4 { margin-bottom: 40px !important; }
.mb-5 { margin-bottom: 60px !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 10px !important; }
.p-2 { padding: 20px !important; }
.p-3 { padding: 30px !important; }
.p-4 { padding: 40px !important; }

.visible {
    display: block;
}

/* ========================================
   FORMS
   ======================================== */

input,
textarea,
select {
    font-family: var(--font-family);
    font-size: 16px;
}

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   MISCELLANEOUS
   ======================================== */

figure { 
    margin: 0; 
}

hr { 
    border: solid var(--color-border); 
    border-width: 1px 0 0; 
    clear: both; 
    margin: 22px 0 21px; 
    height: 0; 
}

hr.hr2 { 
    border: solid var(--color-border); 
    border-width: 1px 0 0; 
    clear: both; 
    margin: 10px 0 11px; 
    height: 0; 
}

/* Prevent overflow on all major sections */
section,
main,
.container,
.boru-*-container {
    max-width: 100%;
    overflow-x: hidden;
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 22px;
    }

    .heading {
        font-size: 32px;
    }

    .description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 20px;
    }

    .heading {
        font-size: 28px;
    }

    .description {
        font-size: 15px;
    }

    p {
        font-size: 15px;
    }
}