/*
Theme Name: CodeAtoZ
Version: 1.0
*/

/* =============================
   ROOT
============================= */

:root {
    --gold: #E7B455;
    --dark: #111111;
    --text: #444444;
}

/* =============================
   GLOBAL
============================= */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    background: #ffffff;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

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

h1, h2, h3 {
    color: var(--dark);
    margin-top: 0;
}

h1 {
    font-size: 52px;
    line-height: 1.1;
    letter-spacing: -1px;
}

h2 {
    font-size: 34px;
    margin-bottom: 32px;
}

/* =============================
   MASTER VERTICAL RHYTHM
============================= */

/* Default spacing */
section {
    padding: 70px 0;
}

/* Hero slightly larger */
.hero {
    padding: 100px 0 80px;
}

/* Tighten gap between Services → Work */
.services {
    padding: 70px 0 50px;
    background: #fafafa;
}

.work {
    padding: 50px 0 70px;
    background: #f9f9f9;
}

.cta {
    padding: 60px 0 80px;
    background: #f7f7f7;
    text-align: center;
}

/* Remove stacking margin issues */
section h2 {
    margin-top: 0;
}

/* =============================
   BUTTON
============================= */

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--gold);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(231, 180, 85, 0.35);
}

/* =============================
   HEADER
============================= */

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo a {
    font-weight: 700;
    font-size: 22px;
    text-decoration: none;
    color: #111;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 36px;
}

.main-nav ul li a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.main-nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* =============================
   HERO
============================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(#f0f0f0 1px, transparent 1px),
        linear-gradient(90deg, #f0f0f0 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 25px;
}

.hero h1:after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: var(--gold);
    margin-top: 12px;
    border-radius: 2px;
}

.hero p {
    margin-bottom: 30px;
    max-width: 520px;
}

/* =============================
   SERVICES
============================= */

.services .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.services .card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #eee;
    transition: 0.3s ease;
}

.services .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.services .card p {
    color: #666;
}

@media (max-width: 900px) {
    .services .grid {
        grid-template-columns: 1fr;
    }
}

/* =============================
   WORK
============================= */

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.work-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #eee;
    transition: 0.3s ease;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.work-metric {
    display: inline-block;
    background: rgba(231, 180, 85, 0.12);
    color: var(--gold);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 15px;
}

@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================
   FOOTER
============================= */

footer {
    background: #000;
    color: #aaa;
    padding: 45px 0;
}

footer p {
    margin: 6px 0;
    font-size: 14px;
    color: #888;
}

/* =============================
   GENERIC PAGE TEMPLATE
============================= */

.page-section {
    padding: 110px 0 90px;
    background: #fff;
}

.page-title {
    font-size: 48px;
    margin-bottom: 25px;
}

.page-content {
    max-width: 720px;
}

.page-content p {
    margin-bottom: 20px;
}

/* Form styling */
.page-content input,
.page-content select,
.page-content textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}

.page-content input:focus,
.page-content select:focus,
.page-content textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(231, 180, 85, 0.15);
}

.page-content label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}
/* =============================
   GENERIC PAGE STYLING
============================= */

.page-section {
    padding: 110px 0 90px;
}

.page-section h1 {
    font-size: 48px;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.page-content {
    max-width: 720px;
}

/* =============================
   FORM STYLING (Global Fix)
============================= */

.page-content form {
    margin-top: 40px;
}

.page-content label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.page-content input,
.page-content select,
.page-content textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 24px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    font-family: inherit;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.page-content input:focus,
.page-content select:focus,
.page-content textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(231, 180, 85, 0.15);
}

.page-content textarea {
    min-height: 140px;
    resize: vertical;
}

/* Submit Button */
.page-content button,
.page-content input[type="submit"] {
    background: var(--gold);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.page-content button:hover,
.page-content input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 180, 85, 0.3);
}

/* =============================
   CONTACT PAGE (ORIGINAL DESIGN)
============================= */

.contact-wrapper {
    padding: 80px 0;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f9f9f9 60%,
        #f4f4f4 100%
    );
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* LEFT SIDE */

.contact-left h1 {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 25px;
    position: relative;
}

.contact-left h1:after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin-top: 12px;
    border-radius: 2px;
}

.contact-left p {
    font-size: 18px;
    color: #555;
    margin-bottom: 25px;
}

.contact-left ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.contact-left ul li {
    margin-bottom: 10px;
}

.contact-email {
    font-size: 15px;
    color: #444;
}

/* FORM CARD */

.contact-box {
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

/* WPForms Styling */

.contact-box .wpforms-field {
    margin-bottom: 20px;
}

.contact-box input,
.contact-box textarea,
.contact-box select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
}

.contact-box textarea {
    min-height: 140px;
}

.contact-box input:focus,
.contact-box textarea:focus,
.contact-box select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(231, 180, 85, 0.15);
    outline: none;
}

.contact-box .wpforms-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    background: var(--gold);
    color: #000;
    border: none;
    margin-top: 10px;
    transition: 0.25s ease;
}

.contact-box .wpforms-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(231, 180, 85, 0.35);
}

/* Responsive */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-left h1 {
        font-size: 38px;
    }
}

/* =============================
   ABOUT PAGE
============================= */

/* HERO */

.about-section {
    padding: 100px 0;
    background: #ffffff;
}

.about-hero {
    max-width: 900px;
}

.about-hero h1 {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 25px;
    position: relative;
}

.about-hero h1:after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: var(--gold);
    margin-top: 14px;
    border-radius: 2px;
}

.about-hero p {
    font-size: 20px;
    color: #555;
    max-width: 700px;
}

/* PRINCIPLES BLOCK */

.about-block {
    padding: 100px 0;
    background: #f9f9f9;
}

.about-block h2 {
    margin-bottom: 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.about-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 18px;
    border: 1px solid #eee;
    transition: 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.about-card p {
    color: #666;
}

/* TECH STACK */

.tech-stack {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.tech-stack span {
    background: rgba(231, 180, 85, 0.12);
    color: var(--gold);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

/* CTA */

.about-cta {
    padding: 100px 0;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f9f9f9 100%
    );
    text-align: center;
}

.about-cta h2 {
    margin-bottom: 20px;
}

.about-cta p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    color: #555;
}

.about-cta a {
    display: inline-block;
    padding: 16px 32px;
    background: var(--gold);
    color: #000;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.25s ease;
}

.about-cta a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(231, 180, 85, 0.35);
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .about-hero h1 {
        font-size: 38px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================
   SERVICES ARCHIVE PAGE
============================= */

/* HERO */

.services-hero {
    padding: 110px 0 80px;
    background: #ffffff;
}

.services-hero h1 {
    font-size: 56px;
    line-height: 1.05;
    margin-bottom: 20px;
    position: relative;
}

.services-hero h1:after {
    content: "";
    display: block;
    width: 70px;
    height: 4px;
    background: var(--gold);
    margin-top: 14px;
    border-radius: 2px;
}

.services-hero p {
    font-size: 20px;
    max-width: 700px;
    color: #555;
}

/* GRID */

.services-archive {
    padding: 90px 0;
    background: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: #ffffff;
    padding: 45px;
    border-radius: 18px;
    border: 1px solid #eee;
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.service-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.service-excerpt {
    color: #666;
    margin-bottom: 25px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
}

.btn-outline:hover {
    background: var(--gold);
    color: #000;
}

/* CTA */

.services-cta {
    padding: 100px 0;
    background: #ffffff;
    text-align: center;
}

.services-cta h2 {
    margin-bottom: 30px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-hero h1 {
        font-size: 38px;
    }
}
