/* ============================================================
   O2ONE FARM — Stylesheet (mobile-first)
   Brand colors from logo: water blue + sprout green
   ============================================================ */

:root {
  --blue:       #2b9bd8;
  --blue-dark:  #1e7fb5;
  --green:      #59b84a;
  --green-dark: #43932f;
  --ink:        #1f2a2e;
  --ink-soft:   #55636a;
  --line:       #e6ebe8;
  --bg:         #ffffff;
  --bg-alt:     #f4f8f5;
  --white:      #ffffff;
  --radius:     16px;
  --shadow:     0 8px 30px rgba(31, 42, 46, 0.08);
  --shadow-sm:  0 4px 14px rgba(31, 42, 46, 0.06);
  --maxw:       1120px;
  --header-h:   64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Noto Sans KR", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.pc-only { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  box-shadow: 0 8px 20px rgba(43, 155, 216, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(43,155,216,.36); }
.btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
}
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: 40px; object-fit: cover; border-radius: 50%; }
.logo-text { font-weight: 900; font-size: 1.15rem; letter-spacing: -.02em; }

.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block;
  padding: 10px 16px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--blue); background: var(--bg-alt); }
.nav .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 700;
}
.nav .nav-cta:hover { color: #fff; opacity: .92; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2.5px; width: 24px;
  background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 90;
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-backdrop.show { opacity: 1; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 78px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(89,184,74,.28), transparent 60%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 55%, #146a99 100%);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; gap: 30px; align-items: center;
}
.hero-copy { text-align: center; }
.hero-eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  color: rgba(255,255,255,.9); margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(1.8rem, 6.5vw, 2.9rem);
  font-weight: 900; line-height: 1.3; letter-spacing: -.03em;
  margin-bottom: 16px;
}
.hero-title .accent {
  background: linear-gradient(120deg, #d7f8c9, #eafff2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc {
  font-size: clamp(.98rem, 2.6vw, 1.12rem);
  color: rgba(255,255,255,.92); margin-bottom: 26px;
}
.hero-desc b { color: #eafff2; font-weight: 700; }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.hero-actions .btn-primary {
  background: #fff; color: var(--blue-dark);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.hero-actions .btn-primary:hover { color: var(--blue-dark); }
.hero-photo {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,.32);
  border: 4px solid rgba(255,255,255,.55);
  aspect-ratio: 16 / 10;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 50px; z-index: 1;
  background: var(--bg);
  clip-path: ellipse(75% 100% at 50% 100%);
}

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .2em;
  color: var(--green-dark); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 900; letter-spacing: -.02em; margin-bottom: 12px;
}
.section-title::after {
  content: ""; display: block; width: 46px; height: 4px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 4px;
}
.section-sub { color: var(--ink-soft); font-size: 1rem; }

/* ===== Cards (business) ===== */
.cards {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(135deg, rgba(43,155,216,.12), rgba(89,184,74,.12));
  margin-bottom: 16px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .96rem; }

/* ===== Product line-up ===== */
.lineup { display: grid; grid-template-columns: 1fr; gap: 20px; }
.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-img { background: #eef3ef; aspect-ratio: 4 / 3; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 22px 22px 26px; }
.product-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.product-body > p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 14px; }
.product-spec { display: grid; gap: 8px; }
.product-spec li {
  position: relative; padding-left: 22px;
  font-size: .92rem; color: var(--ink);
}
.product-spec li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--green-dark); font-weight: 900;
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.gal-item {
  border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 3; background: #eef3ef;
  box-shadow: var(--shadow-sm);
}
.gal-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.gal-item:hover img { transform: scale(1.06); }
.gal-tall { grid-row: span 2; aspect-ratio: 3 / 4; }

/* ===== Use cases ===== */
.usecase-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.usecase-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  font-weight: 700; font-size: .98rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.uc-emoji { font-size: 1.9rem; }

/* ===== Cases ===== */
.case-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.case {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--c1, #59b84a), var(--c2, #2b9bd8));
  display: grid; place-items: center;
  position: relative;
}
.case-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.3), transparent 55%);
}
.case-thumb span {
  position: relative; z-index: 1;
  color: #fff; font-weight: 700; font-size: 1.15rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.case-body { padding: 20px 22px; }
.case-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.case-meta { color: var(--blue); font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.case-body p { color: var(--ink-soft); font-size: .93rem; }

/* ===== Process steps ===== */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 24px 78px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  position: absolute; left: 22px; top: 22px;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
}
.step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { color: var(--ink-soft); font-size: .93rem; }

/* ===== About ===== */
.section-about { background: var(--bg); }
.about-inner { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.about-lead { font-size: 1.2rem; font-weight: 700; margin: 8px 0 14px; line-height: 1.55; }
.about-text > p { color: var(--ink-soft); }
.about-points { margin-top: 20px; display: grid; gap: 10px; }
.about-points li { font-weight: 500; color: var(--ink); }
.about-visual {
  display: grid; place-items: center;
  background: radial-gradient(circle at center, rgba(43,155,216,.1), transparent 70%);
  border-radius: 24px; padding: 20px;
}
.about-visual img { max-width: 320px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.contact-info {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.contact-info ul { display: grid; gap: 18px; margin-bottom: 24px; }
.contact-info li { display: grid; gap: 3px; }
.ci-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  color: var(--green-dark);
}
.ci-value { font-size: 1.05rem; font-weight: 500; }
a.ci-value:hover { color: var(--blue); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; }
.field label span { color: #e5484d; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  background: #fbfdfb;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43,155,216,.15);
  background: #fff;
}
.field textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: .92rem; font-weight: 500; min-height: 1.2em; }
.form-note.ok { color: var(--green-dark); }
.form-note.err { color: #e5484d; }

/* ===== Footer ===== */
.site-footer { background: #17231f; color: rgba(255,255,255,.75); padding-top: 48px; }
.footer-inner {
  display: grid; grid-template-columns: 1fr; gap: 26px;
  padding-bottom: 34px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; }
.footer-brand p { font-size: .95rem; color: rgba(255,255,255,.85); }
.footer-info p { font-size: .88rem; line-height: 1.9; }
.footer-info b { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.55); text-align: center; }

/* ===== Floating call button (mobile) ===== */
.float-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff; box-shadow: 0 10px 24px rgba(43,155,216,.4);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 10px 24px rgba(43,155,216,.4), 0 0 0 0 rgba(43,155,216,.4); }
  70% { box-shadow: 0 10px 24px rgba(43,155,216,.4), 0 0 0 14px rgba(43,155,216,0); }
  100% { box-shadow: 0 10px 24px rgba(43,155,216,.4), 0 0 0 0 rgba(43,155,216,0); }
}

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Mobile navigation drawer  (< 900px)
   ============================================================ */
@media (max-width: 899px) {
  .nav {
    position: fixed;
    top: 0; right: 0;
    width: 78%; max-width: 320px; height: 100vh;
    background: #fff;
    padding: calc(var(--header-h) + 20px) 24px 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,.12);
    z-index: 95;
  }
  .nav.open { transform: translateX(0); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav .nav-cta { margin-top: 10px; text-align: center; }
}

/* ============================================================
   Tablet / Desktop
   ============================================================ */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .lineup { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .usecase-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; align-items: center; }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
  .pc-only { display: inline; }
  .nav-toggle { display: none; }
  .section { padding: 96px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .about-inner { grid-template-columns: 1.2fr 1fr; }
  .usecase-grid { grid-template-columns: repeat(6, 1fr); }
  .float-call { display: none; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps-4 { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 64px 20px 22px; }
  .step-num { top: 20px; left: 20px; }

  /* Hero two-column */
  .hero { padding: calc(var(--header-h) + 56px) 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 44px; }
  .hero-copy { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-photo { aspect-ratio: auto; }
}
