/* =========================================================
   UrbnestMedia — Main Stylesheet
   ========================================================= */

/* ---------------------------------------------------------
   01. Imports & Design Tokens
   --------------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
    --bg: #f7f7f2;
    --card: #ffffff;
    --ink: #101010;
    --muted: #666666;
    --lime: #c9ff24;
    --lime-dark: #9ec900;
    --line: #deded7;
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.07);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 25px;
    --radius-xl: 30px;

    --container-width: 1180px;
    --transition: 0.25s ease;
}

/* ---------------------------------------------------------
   02. Reset & Base
   --------------------------------------------------------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

p {
    color: var(--muted);
}

/* ---------------------------------------------------------
   03. Typography
   --------------------------------------------------------- */

h1,
h2,
h3,
h4 {
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.05;
}

h1 {
    font-size: clamp(3.2rem, 7vw, 6.7rem);
    letter-spacing: -0.065em;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    letter-spacing: -0.045em;
}

h3 {
    font-size: 1.25rem;
}

.lime-text,
.hero h1 span {
    color: var(--lime-dark);
}

/* ---------------------------------------------------------
   04. Layout Utilities
   --------------------------------------------------------- */

.container {
    width: min(var(--container-width), 92%);
    margin-inline: auto;
}

.section {
    padding: 80px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.section-head p {
    max-width: 500px;
}

.eyebrow {
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

/* ---------------------------------------------------------
   05. Buttons
   --------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 21px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
}

.btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.btn.dark {
    background: var(--ink);
    color: #ffffff;
}

.btn.lime {
    border-color: var(--lime);
    background: var(--lime);
    color: var(--ink);
}

.btn .arrow {
    font-size: 18px;
}

/* ---------------------------------------------------------
   06. Header & Navigation
   --------------------------------------------------------- */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(247, 247, 242, 0.9);
    backdrop-filter: blur(14px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.logo-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 10px;
    background: var(--lime);
    font-size: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 31px;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--lime);
    content: "";
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 11px 17px;
    border-radius: 999px;
    background: var(--ink);
    color: #ffffff;
    font-size: 0.85rem;
}

.nav-cta::after {
    display: none;
}

.menu {
    display: none;
    border: 0;
    background: transparent;
    font-size: 25px;
}

/* ---------------------------------------------------------
   07. Home — Hero
   --------------------------------------------------------- */

.hero {
    padding: 85px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 55px;
}

.hero-copy {
    max-width: 560px;
    margin: 25px 0 31px;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 470px;
    place-items: center;
}

/* Hero illustration */
.art {
    position: relative;
    width: min(500px, 100%);
    height: 430px;
}

.blob {
    position: absolute;
    top: 35px;
    right: 35px;
    width: 370px;
    height: 370px;
    border-radius: 44% 56% 55% 45%;
    background: var(--lime);
    transform: rotate(-9deg);
}

.monitor {
    position: absolute;
    top: 55px;
    right: 35px;
    width: 300px;
    height: 210px;
    border: 5px solid var(--ink);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 18px 18px 0 var(--ink);
    transform: rotate(5deg);
}

.screen {
    position: relative;
    height: 160px;
    margin: 18px;
    padding: 18px;
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 10px;
}

.chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
}

.chart i {
    width: 24px;
    border-radius: 4px 4px 0 0;
    background: var(--ink);
}

.chart i:nth-child(1) {
    height: 25%;
}

.chart i:nth-child(2) {
    height: 50%;
}

.chart i:nth-child(3) {
    height: 40%;
}

.chart i:nth-child(4) {
    height: 75%;
}

.chart i:nth-child(5) {
    height: 100%;
    background: var(--lime-dark);
}

.person {
    position: absolute;
    bottom: 18px;
    left: 30px;
    width: 170px;
    height: 245px;
}

.head {
    position: absolute;
    top: 0;
    left: 52px;
    width: 65px;
    height: 65px;
    border: 4px solid var(--ink);
    border-radius: 50%;
    background: #ffffff;
}

.body {
    position: absolute;
    top: 55px;
    left: 28px;
    width: 105px;
    height: 140px;
    border: 5px solid var(--ink);
    border-radius: 45px 45px 20px 20px;
    background: #ffffff;
    transform: rotate(-7deg);
}

.body::before {
    position: absolute;
    inset: 17px;
    border-radius: 50%;
    background: var(--lime);
    content: "";
}

.leg {
    position: absolute;
    bottom: 23px;
    width: 85px;
    height: 25px;
    border-radius: 20px;
    background: var(--ink);
}

.leg.one {
    left: 25px;
    transform: rotate(58deg);
}

.leg.two {
    right: 4px;
    transform: rotate(-30deg);
}

.star {
    position: absolute;
    font-size: 55px;
    font-weight: 700;
}

.star.one {
    top: 0;
    right: 5px;
}

.star.two {
    top: 100px;
    left: 0;
    font-size: 38px;
}

/* Home statistics */
.stats {
    display: flex;
    margin-top: 52px;
}

.stat {
    padding: 0 28px;
    border-left: 1px solid #bbbbbb;
}

.stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.stat strong {
    display: block;
    font: 700 1.5rem "Space Grotesk", sans-serif;
}

.stat span {
    color: var(--muted);
    font-size: 0.78rem;
}

/* ---------------------------------------------------------
   08. Services
   --------------------------------------------------------- */

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

.service-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #d8d8d0;
    border-radius: var(--radius-md);
    background: var(--card);
    transition: 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-7px);
}

.icon {
    display: grid;
    width: 65px;
    height: 65px;
    margin-bottom: 27px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: var(--lime);
    font-size: 30px;
}

.service-card p {
    margin: 12px 0 22px;
    font-size: 0.9rem;
}

.card-link {
    display: grid;
    width: 36px;
    height: 36px;
    margin-top: auto;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    font-weight: 800;
}

/* ---------------------------------------------------------
   09. CTA Sections
   --------------------------------------------------------- */

.dark-section {
    padding: 60px;
    border-radius: var(--radius-xl);
    background: var(--ink);
    color: #ffffff;
}

.dark-section p {
    color: #bbbbbb;
}

.cta {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.cta-description {
    margin: 18px 0 25px;
}

.cta-art {
    position: relative;
    height: 230px;
}

.cta-laptop {
    position: absolute;
    top: 20px;
    right: 15px;
    width: 280px;
    height: 180px;
    border: 5px solid #ffffff;
    border-radius: 14px;
    transform: rotate(-6deg);
}

.cta-laptop::after {
    position: absolute;
    bottom: -22px;
    left: -30px;
    width: 330px;
    height: 12px;
    border-radius: 20px;
    background: #ffffff;
    content: "";
}

.cta-laptop::before {
    position: absolute;
    top: 45px;
    left: 45px;
    color: var(--lime);
    content: "↗  GROW";
    font: 700 30px "Space Grotesk", sans-serif;
}

/* ---------------------------------------------------------
   10. Inner Page Hero
   --------------------------------------------------------- */

.page-hero {
    padding: 80px 0 55px;
    text-align: center;
}

.page-hero p {
    max-width: 680px;
    margin: 20px auto 0;
    font-size: 1.05rem;
}

/* ---------------------------------------------------------
   11. About Page
   --------------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.about-box {
    min-height: 390px;
    padding: 45px;
    border: 2px solid var(--ink);
    border-radius: 28px;
    background: var(--lime);
}

.about-box h3 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.value {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
}

.value strong {
    display: block;
    margin-bottom: 7px;
}

/* ---------------------------------------------------------
   12. Service Detail Page
   --------------------------------------------------------- */

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) > * {
    direction: ltr;
}

.detail-art {
    display: grid;
    min-height: 280px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 25px;
    background: var(--lime);
    font: 700 5rem "Space Grotesk", sans-serif;
}

.detail-copy p {
    margin: 15px 0 22px;
}

/* ---------------------------------------------------------
   13. Blog Page
   --------------------------------------------------------- */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    transition: 0.3s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.blog-img {
    display: grid;
    height: 190px;
    place-items: center;
    border-bottom: 1px solid var(--ink);
    background: var(--lime);
    font: 700 2.5rem "Space Grotesk", sans-serif;
}

.blog-body {
    padding: 23px;
}

.tag {
    display: inline-block;
    margin-bottom: 13px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eeeeee;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.blog-body p {
    margin: 12px 0 20px;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------
   14. Contact Page
   --------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 35px;
}

.contact-info {
    padding: 38px;
    border-radius: 25px;
    background: var(--ink);
    color: #ffffff;
}

.contact-info p {
    margin: 15px 0 30px;
    color: #bbbbbb;
}

.contact-item {
    padding: 17px 0;
    border-top: 1px solid #333333;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
}

.contact-form {
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: #ffffff;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    margin-bottom: 18px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.8rem;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 15px;
    outline: none;
    border: 1px solid #cccccc;
    border-radius: 12px;
    background: #fafafa;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--ink);
}

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

/* ---------------------------------------------------------
   15. Footer
   --------------------------------------------------------- */

footer {
    margin-top: 70px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.footer-links {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
}

/* ---------------------------------------------------------
   16. Scroll Reveal & Toast
   --------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    display: none;
    padding: 15px 20px;
    border-radius: 12px;
    background: var(--ink);
    color: #ffffff;
}

.toast.show {
    display: block;
}

/* ---------------------------------------------------------
   17. Responsive — Tablet
   --------------------------------------------------------- */

@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 76px;
        left: 0;
        display: none;
        width: 100%;
        padding: 25px 4%;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid var(--line);
        background: var(--bg);
    }

    .nav-links.open {
        display: flex;
    }

    .menu {
        display: block;
    }

    .nav-cta {
        display: none;
    }

    .hero-grid,
    .about-grid,
    .contact-grid,
    .service-detail,
    .cta {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 55px;
    }

    .hero-visual {
        min-height: 390px;
    }

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

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

    .service-detail:nth-child(even) {
        direction: ltr;
    }
}

/* ---------------------------------------------------------
   18. Responsive — Mobile
   --------------------------------------------------------- */

@media (max-width: 600px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero {
        padding: 45px 0;
    }

    .section {
        padding: 55px 0;
    }

    .services-grid,
    .blog-grid,
    .values,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .dark-section {
        padding: 32px 24px;
        border-radius: 22px;
    }

    .section-head {
        display: block;
    }

    .section-head p {
        margin-top: 14px;
    }

    .stats {
        margin-top: 35px;
    }

    .stat {
        padding: 0 15px;
    }

    .stat strong {
        font-size: 1.15rem;
    }

    .blob {
        width: 280px;
        height: 280px;
    }

    .monitor {
        width: 230px;
        height: 160px;
        right: 15px;
    }

    .screen {
        height: 112px;
    }

    .person {
        transform: scale(0.75);
        transform-origin: bottom left;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-4px);
  background: #ff4d00;
}
