/* Resets & Base */
:root {
    /* Colors */
    --color-base: #ffffff;
    --color-contrast: #000000;
    --color-primary: #9DFF20;
    --color-secondary: #345C00;
    --color-tertiary: #F6F6F6;

    /* Fonts */
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-dm-sans: "DM Sans", sans-serif;
    --font-ibm-plex: 'IBM Plex Mono', monospace;
    --font-inter: "Inter", sans-serif;
    --font-source-serif: "Source Serif Pro", serif;

    /* Spacing */
    --spacing-30: clamp(1.5rem, 5vw, 2rem);
    --spacing-40: clamp(1.8rem, 1.8rem + ((1vw - 0.48rem) * 2.885), 3rem);
    --spacing-50: clamp(2.5rem, 8vw, 4.5rem);
    --spacing-60: clamp(3.75rem, 10vw, 7rem);
    --spacing-70: clamp(5rem, 5.25rem + ((1vw - 0.48rem) * 9.096), 8rem);

    /* Content Widths */
    --content-size: 650px;
    --wide-size: 1200px;
}

/* Font Face Definitions */
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/DMSans-Regular.woff2') format('woff2');
}

@font-face {
    font-family: "DM Sans";
    font-style: italic;
    font-weight: 400;
    src: url('assets/fonts/DMSans-Regular-Italic.woff2') format('woff2');
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 700;
    src: url('assets/fonts/DMSans-Bold.woff2') format('woff2');
}

@font-face {
    font-family: "DM Sans";
    font-style: italic;
    font-weight: 700;
    src: url('assets/fonts/DMSans-Bold-Italic.woff2') format('woff2');
}

body {
    margin: 0;
    background-color: var(--color-base);
    color: var(--color-contrast);
    font-family: var(--font-system);
    font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.227), 1.125rem);
    /* Medium size */
    line-height: 1.6;
}

/* Layout Containers */
.container {
    padding: var(--spacing-40) var(--spacing-30);
    max-width: var(--content-size);
    margin-left: auto;
    margin-right: auto;
}

.container.wide {
    max-width: var(--wide-size);
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
    line-height: 1.4;
    margin-top: 0;
}

h1 {
    font-size: clamp(2.032rem, 2.032rem + ((1vw - 0.2rem) * 2.896), 3.625rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(2.625rem, calc(2.625rem + ((1vw - 0.48rem) * 8.4135)), 3.25rem);
    line-height: 1.2;
}

a {
    color: var(--color-contrast);
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* Specific Component Styles from Original */

/* Main Hero Area */
.hero {
    margin-top: var(--spacing-50);
    margin-bottom: var(--spacing-70);
    text-align: center;
}

.hero h1 {
    margin-bottom: var(--spacing-60);
    font-size: clamp(27.894px, 1.743rem + ((1vw - 3.2px) * 2.285), 48px);
    font-weight: 500;
    text-transform: capitalize;
    padding: 0;
    line-height: 1.3;
    background-color: var(--color-base);
}

.hero h1 .highlight {
    color: #39ff14;
    background-color: var(--color-contrast);
    text-decoration: none;
    font-weight: 600;
    padding: 0.25em 0.5em;
    display: inline-block;
    font-family: var(--font-ibm-plex);
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.hero h1 .swoosh-underline {
    position: relative;
    display: inline-block;
}

/* SVG swoosh underline - elegant curved line */
.hero h1 .swoosh-underline::after {
    content: '';
    position: absolute;
    bottom: -0.2em;
    left: 0;
    width: 100%;
    height: 0.3em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath d='M 0 25 Q 75 8, 150 18 T 300 25' stroke='%23000000' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: -1;
    opacity: 0.9;
}

.hero h2 {
    font-size: clamp(25.014px, 1.563rem + ((1vw - 3.2px) * 1.93), 42px);
    font-weight: 800;
    text-transform: capitalize;
}

/* Override for container - don't apply h2 styles */
#container {
    font-size: clamp(1.5rem, 2rem, 2.25rem) !important;
    font-weight: bold !important;
}

.hero p.tagline {
    font-weight: 700;
    word-break: break-word;
    hyphens: auto;
}

/* Container for scrolling services text */
#container {
    color: var(--color-contrast);
    text-transform: uppercase;
    font-size: clamp(1.5rem, 2rem, 2.25rem);
    font-weight: bold;
    padding-top: var(--spacing-30);
    text-align: center;
    display: block;
    font-family: 'Roboto', var(--font-system);
}

/* Services Fade Animation - Static Black Box */
#flip-container {
    position: relative;
    display: block;
    height: 64px;
    min-width: 300px;
    width: fit-content;
    max-width: 90%;
    background-color: var(--color-contrast);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
    margin: 0 auto;
    padding: 0 0.5em;
}

.flip-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5em;
    box-sizing: border-box;
    color: #39ff14;
    font-family: var(--font-ibm-plex);
    font-weight: 600;
    font-size: clamp(1.5rem, 2rem, 2.25rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.flip-item.active {
    opacity: 1;
    z-index: 1;
}

.hero p.contact-label {
    font-size: clamp(1.5rem, 2.25rem, 2.25rem);
    /* x-large */
    line-height: 1.2;
}

/* Contact Section */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-30);
}

/* Horizontal Button + Social Layout */
.button-wrapper-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Social Divider */
.social-divider {
    width: 1px;
    height: 40px;
    background-color: var(--color-contrast);
    opacity: 0.2;
}

/* Inline Social Links */
.social-links-inline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-links-inline a {
    color: var(--color-contrast);
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
}

.social-links-inline a:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.social-links-inline svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}

.button-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-30);
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-primary);
    color: var(--color-contrast);
    padding: calc(0.667em + 2px) calc(1.333em + 2px);
    text-decoration: none;
    font-size: 0.875em;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 0;
    transition: all 0.2s ease;
}

.btn svg {
    transition: transform 0.2s ease;
}

.btn:hover svg {
    transform: translateX(4px);
}

.btn:hover,
.btn:focus {
    background-color: var(--color-contrast);
    color: var(--color-base);
    text-decoration: none;
}

.btn:active {
    background-color: var(--color-secondary);
    color: var(--color-base);
}

/* Footer Group */
.footer-group {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-40);
    background-color: var(--color-contrast);
    color: var(--color-base);
    padding: var(--spacing-30) var(--spacing-50);
}

/* The SVG icon needs to be styled */
.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
}

.social-links a {
    color: var(--color-contrast);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

.social-links svg {
    fill: currentColor;
    width: 24px;
    height: 24px;
}